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;
+
+
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 =
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
3 matches
Mail list logo