Implement optional syslog logging using ordinary
[oweals/busybox.git] / networking / udhcp / arpping.h
index 99413aab6d85db299a88cb1403df211daef9bdb4..2990e30f6ebd35e5c9deb848d4d1bd37a107e71b 100644 (file)
@@ -1,3 +1,4 @@
+/* vi: set sw=4 ts=4: */
 /*
  * arpping .h
  */
 #include <netinet/in.h>
 
 struct arpMsg {
-       struct ethhdr ethhdr;                   /* Ethernet header */
+       /* Ethernet header */
+       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) */
        uint8_t  hlen;                          /* hardware address length (must be 6) */
@@ -22,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;
 
 /* function prototypes */
 int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *arp, char *interface);