projects
/
my-code
/
hdw-sniff.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed to monitor 3 again
[my-code/hdw-sniff.git]
/
hdw-sniff.c
diff --git
a/hdw-sniff.c
b/hdw-sniff.c
index
46892b5
..
f6da20f
100644
(file)
--- a/
hdw-sniff.c
+++ b/
hdw-sniff.c
@@
-216,10
+216,14
@@
void pcap_process(u_char *info,const struct pcap_pkthdr *pcap_header,
ntohs(ip_hdr->protocol));
// printf("chksum: %x\n",ntohs(ip_hdr->ip_sum));
}
ntohs(ip_hdr->protocol));
// printf("chksum: %x\n",ntohs(ip_hdr->ip_sum));
}
- printf("all ethernet dump:\n");
+ printf("all ethernet dump:
(hex)
\n");
for(i=p_o+w_o+e_o;i<pcap_header->caplen;i++)
printf("%x ",*(package+i));
printf("\n");
for(i=p_o+w_o+e_o;i<pcap_header->caplen;i++)
printf("%x ",*(package+i));
printf("\n");
+ printf("all ethernet dump: (char)\n");
+ for(i=p_o+w_o+e_o;i<pcap_header->caplen;i++)
+ printf("%c ",*(package+i));
+ printf("\n");
}
int hop_channel(struct info_struct *info,int foo_fd) {
}
int hop_channel(struct info_struct *info,int foo_fd) {