diff options
author | Michael Brown | 2013-09-01 21:55:18 +0200 |
---|---|---|
committer | Michael Brown | 2013-09-03 03:02:58 +0200 |
commit | 6bf36f57a0f7a22ffa85ae4995933077df62e309 (patch) | |
tree | 46822c3bbedc5fea9c395daf313fd83803131f81 /src/net/ipv4.c | |
parent | [linux] Apply MAC address prior to registering network device (diff) | |
download | ipxe-6bf36f57a0f7a22ffa85ae4995933077df62e309.tar.gz ipxe-6bf36f57a0f7a22ffa85ae4995933077df62e309.tar.xz ipxe-6bf36f57a0f7a22ffa85ae4995933077df62e309.zip |
[tcpip] Pass through network device to transport layer protocols
NDP requires knowledge of the network device on which a packet was
received.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r-- | src/net/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 106e8e79..bd318806 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -469,7 +469,7 @@ static int ipv4_rx ( struct io_buffer *iobuf, dest.sin.sin_addr = iphdr->dest; pshdr_csum = ipv4_pshdr_chksum ( iobuf, TCPIP_EMPTY_CSUM ); iob_pull ( iobuf, hdrlen ); - if ( ( rc = tcpip_rx ( iobuf, iphdr->protocol, &src.st, + if ( ( rc = tcpip_rx ( iobuf, netdev, iphdr->protocol, &src.st, &dest.st, pshdr_csum ) ) != 0 ) { DBGC ( src.sin.sin_addr, "IPv4 received packet rejected by " "stack: %s\n", strerror ( rc ) ); |