Skip to content

Commit

Permalink
Capture all packets with -O argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaian committed Oct 16, 2014
1 parent cefe909 commit 7dd22d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ parse_packet(u_char *mode, const struct pcap_pkthdr *header, const u_char *packe
// Total packet size
int size_packet;

// Store this packets in output file
dump_packet(pd, header, packet);

// Get link header size from datalink type
size_link = datalink_size(linktype);

Expand Down Expand Up @@ -278,8 +281,6 @@ parse_packet(u_char *mode, const struct pcap_pkthdr *header, const u_char *packe
pcap_breakloop(handle);
}

// Store this packets in output file
dump_packet(pd, header, packet);
}

void
Expand Down

0 comments on commit 7dd22d8

Please sign in to comment.