When the packet length is greater than the IP expected length, the padding data at the end of the frame will be trimmed.
This commit is contained in:
@@ -6,7 +6,7 @@ static void packet_handler(u_char *user, const struct pcap_pkthdr *h, const u_ch
|
||||
{
|
||||
struct packet pkt;
|
||||
packet_parse(&pkt, (const char *)bytes, h->caplen);
|
||||
packet_print(&pkt);
|
||||
packet_print_table(&pkt);
|
||||
}
|
||||
|
||||
static void usage(char *cmd)
|
||||
|
||||
Reference in New Issue
Block a user