net: Add net_update_ether() to handle ARP and Ping replies
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 07:59:16 +0000 (07:59 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 22:53:04 +0000 (17:53 -0500)
commite71110158124009c043eac704db9d442db43b36d
treeb7404ca02b7a7d831b8e8aeb9582f335a1df5e4d
parentece223b52ae9ab94f7ae83a9ac49b9f6319a94cb
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>
include/net.h
net/arp.c
net/net.c
net/ping.c