mirror of https://github.com/dirtbags/fluffy.git
helpful comment
This commit is contained in:
parent
57c1f02825
commit
2fd72a0807
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 streambuf;
|
||||||
struct stream *s = &streambuf;
|
struct stream *s = &streambuf;
|
||||||
|
|
||||||
sinit(s, frame, hdr->caplen, ENDIAN_NETWORK);
|
sinit(s, frame, hdr->caplen, ENDIAN_NETWORK); // pcap.c always outputs network byte order
|
||||||
printf("%u.%u ", hdr->ts.tv_sec, hdr->ts.tv_usec);
|
printf("%u.%u ", hdr->ts.tv_sec, hdr->ts.tv_usec);
|
||||||
switch (p->linktype) {
|
switch (p->linktype) {
|
||||||
case LINKTYPE_ETHERNET:
|
case LINKTYPE_ETHERNET:
|
||||||
|
|
Loading…
Reference in New Issue