From: Joseph C. Lehner Date: Tue, 2 Feb 2016 12:31:27 +0000 (+0200) Subject: Fix eth_hdr struct definition X-Git-Tag: v0.9~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d54846c8489086c15b84ca6f84f5d99873422cb2;p=oweals%2Fnmrpflash.git Fix eth_hdr struct definition --- diff --git a/nmrp.c b/nmrp.c index 7cb3689..830d661 100644 --- a/nmrp.c +++ b/nmrp.c @@ -89,10 +89,10 @@ struct nmrp_msg { } PACKED; struct eth_hdr { - uint8_t ether_shost[8]; - uint8_t ether_dhost[8]; + uint8_t ether_dhost[6]; + uint8_t ether_shost[6]; uint16_t ether_type; -}; +} PACKED; struct nmrp_pkt { struct eth_hdr eh;