diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:59:16 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 17:53:04 -0500 |
commit | e71110158124009c043eac704db9d442db43b36d (patch) | |
tree | b7404ca02b7a7d831b8e8aeb9582f335a1df5e4d /include | |
parent | ece223b52ae9ab94f7ae83a9ac49b9f6319a94cb (diff) | |
download | u-boot-imx-e71110158124009c043eac704db9d442db43b36d.zip u-boot-imx-e71110158124009c043eac704db9d442db43b36d.tar.gz u-boot-imx-e71110158124009c043eac704db9d442db43b36d.tar.bz2 |
net: Add net_update_ether() to handle ARP and Ping replies
When the network is VLAN or SNAP, net_update_ether() will preserve
the original Ethernet packet header and simply replace the src and
dest MACs and the protocol
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 09f040f..9564051 100644 --- a/include/net.h +++ b/include/net.h @@ -449,6 +449,7 @@ extern int NetEthHdrSize(void); /* Set ethernet header; returns the size of the header */ extern int NetSetEther(uchar *, uchar *, uint); +extern int net_update_ether(struct ethernet_hdr *et, uchar *addr, uint prot); /* Set IP header */ extern void net_set_ip_header(uchar *pkt, IPaddr_t dest, IPaddr_t source); |