X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=networking%2Fudhcp%2Farpping.h;h=2990e30f6ebd35e5c9deb848d4d1bd37a107e71b;hb=e40c04b82695c1cde8ad9ed1e2aa1756463d73a7;hp=6cbd2979fef63bf23a82ecf2af1700071a0a1161;hpb=3f79300e37d02b1d5df4de97089e89927d1063a2;p=oweals%2Fbusybox.git diff --git a/networking/udhcp/arpping.h b/networking/udhcp/arpping.h index 6cbd2979f..2990e30f6 100644 --- a/networking/udhcp/arpping.h +++ b/networking/udhcp/arpping.h @@ -1,3 +1,4 @@ +/* vi: set sw=4 ts=4: */ /* * arpping .h */ @@ -15,7 +16,7 @@ struct arpMsg { u_char h_dest[6]; /* destination ether addr */ u_char h_source[6]; /* source ether addr */ u_short h_proto; /* packet type ID field */ - + /* ARP packet */ uint16_t htype; /* hardware type (must be ARPHRD_ETHER) */ uint16_t ptype; /* protocol type (must be ETH_P_IP) */ @@ -27,7 +28,7 @@ struct arpMsg { uint8_t tHaddr[6]; /* target's hardware address */ uint8_t tInaddr[4]; /* target's IP address */ uint8_t pad[18]; /* pad for min. Ethernet payload (60 bytes) */ -} __attribute__ ((packed)); +} ATTRIBUTE_PACKED; /* function prototypes */ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *arp, char *interface);