capt_get_packet(): check for key press only every 20ms
[iptraf-ng.git] / src / arphdr.h
blob762a5be797f6bf13a32a3fae1d3346f2c162401c
1 #ifndef IPTRAF_NG_ARPHDR_H
2 #define IPTRAF_NG_ARPHDR_H
4 /*
5 * arp header format, stolen from the Linux include files.
6 */
8 struct arp_hdr {
9 unsigned short ar_hrd; /* format of hardware address */
10 unsigned short ar_pro; /* format of protocol address */
11 unsigned char ar_hln; /* length of hardware address */
12 unsigned char ar_pln; /* length of protocol address */
13 unsigned short ar_op; /* ARP opcode (command) */
16 * Ethernet looks like this : This bit is variable sized however...
18 unsigned char ar_sha[ETH_ALEN]; /* sender hardware address */
19 unsigned char ar_sip[4]; /* sender IP address */
20 unsigned char ar_tha[ETH_ALEN]; /* target hardware address */
21 unsigned char ar_tip[4]; /* target IP address */
24 #endif /* IPTRAF_NG_ARPHDR_H */