From d54846c8489086c15b84ca6f84f5d99873422cb2 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Tue, 2 Feb 2016 14:31:27 +0200 Subject: [PATCH] Fix eth_hdr struct definition --- nmrp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.25.1