IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-01-19 17:16:03 (13 years 2 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | ea81e70cf9509feb5df19ab2ff5cc7e2ff8efb35 |
Message: | atrf-txrx: define the pcap file magic number (0xa1b2c3d4) in pcap.h - pcap.h (PCAP_FILE_MAGIC): define the pcap file magic number - atrf-txrx.c (write_pcap_hdr): use PCAP_FILE_MAGIC instead of open-coding the magic number |
Files: |
tools/atrf-txrx/atrf-txrx.c (1 diff) tools/atrf-txrx/pcap.h (1 diff) |
Change Details
tools/atrf-txrx/atrf-txrx.c | ||
---|---|---|
184 | 184 | static void write_pcap_hdr(FILE *file) |
185 | 185 | { |
186 | 186 | struct pcap_file_header hdr = { |
187 | .magic = 0xa1b2c3d4, | |
187 | .magic = PCAP_FILE_MAGIC, | |
188 | 188 | .version_major = 2, |
189 | 189 | .version_minor = 4, |
190 | 190 | .thiszone = 0, |
tools/atrf-txrx/pcap.h | ||
---|---|---|
27 | 27 | #include <sys/time.h> |
28 | 28 | |
29 | 29 | |
30 | #define PCAP_FILE_MAGIC 0xa1b2c3d4 | |
31 | ||
30 | 32 | #define DLT_IEEE802_15_4 195 |
31 | 33 | |
34 | ||
32 | 35 | struct pcap_file_header { |
33 | 36 | uint32_t magic; |
34 | 37 | uint16_t version_major; |