mirror of https://github.com/dirtbags/fluffy.git
Make pcat work again
This commit is contained in:
parent
e98e734481
commit
57c1f02825
1
Makefile
1
Makefile
|
@ -6,6 +6,7 @@ TARGETS += pyesc
|
|||
TARGETS += printfesc
|
||||
TARGETS += xor
|
||||
TARGETS += unhex
|
||||
TARGETS += pcat
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
|
|
2
pcat.c
2
pcat.c
|
@ -178,7 +178,7 @@ print_frame(struct pcap_file *p, struct pcap_pkthdr *hdr, char const *frame)
|
|||
struct stream streambuf;
|
||||
struct stream *s = &streambuf;
|
||||
|
||||
sinit(s, frame, hdr->caplen);
|
||||
sinit(s, frame, hdr->caplen, ENDIAN_NETWORK);
|
||||
printf("%u.%u ", hdr->ts.tv_sec, hdr->ts.tv_usec);
|
||||
switch (p->linktype) {
|
||||
case LINKTYPE_ETHERNET:
|
||||
|
|
Loading…
Reference in New Issue