Annotation of embedaddon/iftop/ether.h, revision 1.1.1.2
1.1 misho 1: #ifndef __ETHER_H_
2: #define __ETHER_H_
3:
4: #define ETHERTYPE_PUP 0x0200
5: #define ETHERTYPE_IP 0x0800
6: #define ETHERTYPE_ARP 0x0806
7: #define ETHERTYPE_REVARP 0x8035
8:
9: #define ETHER_ADDR_LEN 6
10:
11: struct ether_header {
12: u_int8_t ether_dhost[ETHER_ADDR_LEN];
13: u_int8_t ether_shost[ETHER_ADDR_LEN];
14: u_int16_t ether_type;
1.1.1.2 ! misho 15: } __attribute__((packed));
! 16:
1.1 misho 17:
18: struct vlan_8021q_header {
19: u_int16_t priority_cfi_vid;
20: u_int16_t ether_type;
21: };
1.1.1.2 ! misho 22:
! 23: /*
! 24: * http://www.gsp.com/cgi-bin/man.cgi?section=9&topic=ieee80211_radiotap
! 25: */
! 26: struct radiotap_header {
! 27: u_int8_t it_version; /* set to 0 */
! 28: u_int8_t it_pad;
! 29: u_int16_t it_len; /* entire length */
! 30: u_int32_t it_present; /* fields present */
! 31: } __attribute__((packed));
1.1 misho 32:
33: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>