parse header
This commit is contained in:
parent
dad4770cd8
commit
5795bc1d32
6 changed files with 123 additions and 79 deletions
|
|
@ -84,14 +84,6 @@ int main(int argc, char *argv[]) {
|
|||
optind++;
|
||||
}
|
||||
|
||||
if (p.src_port != 0) {
|
||||
printf("src_port = %d\n", p.src_port);
|
||||
}
|
||||
|
||||
if (p.dst_port != 0) {
|
||||
printf("dst_port = %d\n", p.dst_port);
|
||||
}
|
||||
|
||||
if (p.run())
|
||||
exit(EXIT_SUCCESS);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue