summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-14 16:04:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-15 08:15:21 +0200
commit22b878d2518a2b31c5991f9c47a2b176f0ac246d (patch)
tree064b4f54c0febcd3b26b90552c277dbaa0386fe7 /net
parent75482a0663d789a7bc55eedff4a4f6fed0d3f811 (diff)
downloadbarebox-22b878d2518a2b31c5991f9c47a2b176f0ac246d.tar.gz
barebox-22b878d2518a2b31c5991f9c47a2b176f0ac246d.tar.xz
net: Pass eth_device to net_receive
So that barebox has the information which interface a packet came from. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 20051bc128..e43a3aba66 100644
--- a/net/net.c
+++ b/net/net.c
@@ -619,7 +619,7 @@ bad:
return 0;
}
-int net_receive(unsigned char *pkt, int len)
+int net_receive(struct eth_device *edev, unsigned char *pkt, int len)
{
struct ethernet *et = (struct ethernet *)pkt;
int et_protlen = ntohs(et->et_protlen);