Created
February 28, 2013 12:01
-
-
Save takscape/5056279 to your computer and use it in GitHub Desktop.
libnids, printall.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static struct nids_chksum_ctl chksum_ctl; | |
| int | |
| main () | |
| { | |
| chksum_ctl.netaddr = 0; | |
| chksum_ctl.mask = 0; | |
| chksum_ctl.action = NIDS_DONT_CHKSUM; | |
| nids_register_chksum_ctl(&chksum_ctl, 1); | |
| nids_params.scan_num_hosts = 0; | |
| nids_params.multiproc = 1; | |
| nids_params.pcap_filter = "tcp"; | |
| if (!nids_init ()) | |
| { | |
| fprintf(stderr,"%s\n",nids_errbuf); | |
| exit(1); | |
| } | |
| nids_register_tcp (tcp_callback); | |
| nids_run (); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment