123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- #ifndef lib_pcap_sll_h
- #define lib_pcap_sll_h
- #define SLL_HDR_LEN 16
- #define SLL_ADDRLEN 8
- #include <pcap/pcap-inttypes.h>
- struct sll_header {
- uint16_t sll_pkttype;
- uint16_t sll_hatype;
- uint16_t sll_halen;
- uint8_t sll_addr[SLL_ADDRLEN];
- uint16_t sll_protocol;
- };
- #define LINUX_SLL_HOST 0
- #define LINUX_SLL_BROADCAST 1
- #define LINUX_SLL_MULTICAST 2
- #define LINUX_SLL_OTHERHOST 3
- #define LINUX_SLL_OUTGOING 4
- #define LINUX_SLL_P_802_3 0x0001
- #define LINUX_SLL_P_802_2 0x0004
- #define LINUX_SLL_P_CAN 0x000C
- #define LINUX_SLL_P_CANFD 0x000D
- #endif
|