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 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; >> + >> +     memcpy(et->e

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); > + protl

[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 Cc: Joe Hershberger Cc: Wolfgang Denk --- include/net.h |1 + net/arp.c |2 +- net/net.c | 22 ++