Skip to content

Commit

Permalink
Merge pull request #47 from tsvehagen/fix-pcap-magic
Browse files Browse the repository at this point in the history
Fix pcap magic number for nanoseconds
  • Loading branch information
dominicgs authored Mar 1, 2017
2 parents 088a90e + f1381c6 commit a4e1501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ typedef struct __attribute__((packed)) pcap_hdr_s {

FILE *btbb_pcap_open(const char *filename, uint32_t dlt, uint32_t snaplen) {
pcap_hdr_t pcap_header = {
.magic_number = 0xa1b2c3d4,
.magic_number = 0xa1b23c4d,
.version_major = 2,
.version_minor = 4,
.thiszone = 0,
Expand Down

0 comments on commit a4e1501

Please sign in to comment.