Re: [U-Boot] [PATCH 18/28] net: Add NetUpdateEther() to handle ARP or Ping replies (VLAN or SNAP)

2012-02-09 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:25 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 19 January 2012 19:53:21 Joe Hershberger wrote: --- a/net/net.c +++ b/net/net.c +int +NetUpdateEther(struct Ethernet_t *et, uchar *addr, uint prot) +{ +     ushort protlen; + +    

Re: [U-Boot] [PATCH 18/28] net: Add NetUpdateEther() to handle ARP or Ping replies (VLAN or SNAP)

2012-02-03 Thread Mike Frysinger
On Thursday 19 January 2012 19:53:21 Joe Hershberger wrote: --- a/net/net.c +++ b/net/net.c +int +NetUpdateEther(struct Ethernet_t *et, uchar *addr, uint prot) +{ + ushort protlen; + + memcpy(et-et_dest, addr, 6); + memcpy(et-et_src, NetOurEther, 6); + protlen =

[U-Boot] [PATCH 18/28] net: Add NetUpdateEther() to handle ARP or Ping replies (VLAN or SNAP)

2012-01-20 Thread Joe Hershberger
NetUpdateEther() will preserve the original Ethernet packet header and simply replace the src and dest MACs and the protocol Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de --- include/net.h |1 + net/arp.c