Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/pcap-linux.c b/pcap-linux.c
- index ba9b125..885f6d5 100644
- --- a/pcap-linux.c
- +++ b/pcap-linux.c
- @@ -523,6 +523,15 @@ pcap_read_packet(pcap_t *handle, pcap_handler callback, u_char *userdata)
- return -1;
- }
- }
- +
- + char *lol;
- +
- + lol = bp + offset;
- +
- + fprintf(stderr, "%02hhX:%02hhX:%02hhX:%02hhX:%02hhX:%02hhX => %02hhX:%02hhX:%02hhX:%02hhX:%02hhX:%02hhX\n",
- + lol[6], lol[7], lol[8], lol[9], lol[10], lol[11],
- + lol[0], lol[1], lol[2], lol[3], lol[4], lol[5]);
- + fflush(stderr);
- #ifdef HAVE_PF_PACKET_SOCKETS
- if (!handle->md.sock_packet) {
Advertisement
Add Comment
Please, Sign In to add comment