Fix eth_hdr struct definition

This commit is contained in:
Joseph C. Lehner 2016-02-02 14:31:27 +02:00
parent 36c9e97ad1
commit d54846c848

6
nmrp.c
View file

@ -89,10 +89,10 @@ struct nmrp_msg {
} PACKED; } PACKED;
struct eth_hdr { struct eth_hdr {
uint8_t ether_shost[8]; uint8_t ether_dhost[6];
uint8_t ether_dhost[8]; uint8_t ether_shost[6];
uint16_t ether_type; uint16_t ether_type;
}; } PACKED;
struct nmrp_pkt { struct nmrp_pkt {
struct eth_hdr eh; struct eth_hdr eh;