diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-14 16:04:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-15 08:15:21 +0200 |
commit | 22b878d2518a2b31c5991f9c47a2b176f0ac246d (patch) | |
tree | 064b4f54c0febcd3b26b90552c277dbaa0386fe7 /net | |
parent | 75482a0663d789a7bc55eedff4a4f6fed0d3f811 (diff) | |
download | barebox-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |