From: John Hodge Date: Sat, 10 Aug 2013 12:07:28 +0000 (+0800) Subject: Modules/IPStack - Fixed clobbering of destination MAC X-Git-Tag: rel0.15~286 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=db1f5acae9a3124bcf05cf57e233cac57ccf751d;p=tpg%2Facess2.git Modules/IPStack - Fixed clobbering of destination MAC --- diff --git a/KernelLand/Modules/IPStack/link.c b/KernelLand/Modules/IPStack/link.c index d92504b7..ee7ad12a 100644 --- a/KernelLand/Modules/IPStack/link.c +++ b/KernelLand/Modules/IPStack/link.c @@ -93,7 +93,7 @@ void Link_SendPacket(tAdapter *Adapter, Uint16 Type, tMacAddr To, tIPStackBuffer hdr->Dest = To; memcpy(&hdr->Src, Adapter->HWAddr, 6); // TODO: Remove hard coded 6 hdr->Type = htons(Type); - memset(hdr, 0, ofs+4); // zero padding and checksum + memset(hdr+1, 0, ofs+4); // zero padding and checksum if( (Adapter->Type->Flags & ADAPTERFLAG_OFFLOAD_MAC) ) IPStack_Buffer_AppendSubBuffer(Buffer, sizeof(tEthernetHeader), ofs, hdr, NULL, NULL);