Fix eth_hdr struct definition
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 12:31:27 +0000 (14:31 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 12:31:27 +0000 (14:31 +0200)
nmrp.c

diff --git a/nmrp.c b/nmrp.c
index 7cb36896d9ca7621e55be044273dc4734982c56a..830d6611fc776db4939dc184c90e6934a6d46dbe 100644 (file)
--- 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;