diff options
Diffstat (limited to 'networking/udhcp/arpping.h')
-rw-r--r-- | networking/udhcp/arpping.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/networking/udhcp/arpping.h b/networking/udhcp/arpping.h index 92b828db5..99413aab6 100644 --- a/networking/udhcp/arpping.h +++ b/networking/udhcp/arpping.h | |||
@@ -12,19 +12,19 @@ | |||
12 | 12 | ||
13 | struct arpMsg { | 13 | struct arpMsg { |
14 | struct ethhdr ethhdr; /* Ethernet header */ | 14 | struct ethhdr ethhdr; /* Ethernet header */ |
15 | u_short htype; /* hardware type (must be ARPHRD_ETHER) */ | 15 | uint16_t htype; /* hardware type (must be ARPHRD_ETHER) */ |
16 | u_short ptype; /* protocol type (must be ETH_P_IP) */ | 16 | uint16_t ptype; /* protocol type (must be ETH_P_IP) */ |
17 | u_char hlen; /* hardware address length (must be 6) */ | 17 | uint8_t hlen; /* hardware address length (must be 6) */ |
18 | u_char plen; /* protocol address length (must be 4) */ | 18 | uint8_t plen; /* protocol address length (must be 4) */ |
19 | u_short operation; /* ARP opcode */ | 19 | uint16_t operation; /* ARP opcode */ |
20 | u_char sHaddr[6]; /* sender's hardware address */ | 20 | uint8_t sHaddr[6]; /* sender's hardware address */ |
21 | u_char sInaddr[4]; /* sender's IP address */ | 21 | uint8_t sInaddr[4]; /* sender's IP address */ |
22 | u_char tHaddr[6]; /* target's hardware address */ | 22 | uint8_t tHaddr[6]; /* target's hardware address */ |
23 | u_char tInaddr[4]; /* target's IP address */ | 23 | uint8_t tInaddr[4]; /* target's IP address */ |
24 | u_char pad[18]; /* pad for min. Ethernet payload (60 bytes) */ | 24 | uint8_t pad[18]; /* pad for min. Ethernet payload (60 bytes) */ |
25 | }; | 25 | }; |
26 | 26 | ||
27 | /* function prototypes */ | 27 | /* function prototypes */ |
28 | int arpping(u_int32_t yiaddr, u_int32_t ip, unsigned char *arp, char *interface); | 28 | int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *arp, char *interface); |
29 | 29 | ||
30 | #endif | 30 | #endif |