diff options
author | pdw <> | 2002-10-18 17:29:32 +0000 |
---|---|---|
committer | pdw <> | 2002-10-18 17:29:32 +0000 |
commit | 5ef015aea21fcbf741d43f39fb1a85a00b536689 (patch) | |
tree | c218d38d938aa8505b126b48122caf2864052f42 /ether.h | |
parent | 41f4c93226b3f66f51b91e44d431f54df8003e9e (diff) | |
download | iftop-5ef015aea21fcbf741d43f39fb1a85a00b536689.zip |
Include lots of header files, rather than relying on O/S specific ones.
Diffstat (limited to 'ether.h')
-rw-r--r-- | ether.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#ifndef __ETHER_H_ +#define __ETHER_H_ + +#define ETHERTYPE_PUP 0x0200 +#define ETHERTYPE_IP 0x0800 +#define ETHERTYPE_ARP 0x0806 +#define ETHERTYPE_REVARP 0x8035 + +#define ETHER_ADDR_LEN 6 + +struct ether_header { + u_int8_t ether_dhost[ETHER_ADDR_LEN]; + u_int8_t ether_shost[ETHER_ADDR_LEN]; + u_int16_t ether_type; +}; + +#endif |