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