Yafang Shao

Results 2 issues of Yafang Shao

Once kill() exit, the return value is either 0 or -1. But when it is -1, the $NF is 0xffffffff then rv will be 4294967295. Fix this error printf message...

As we can see, it will capture all the packets match with 'port' as bellow, if (port) sprintf(filter, "tcp port %d", port); pcap_compile(pcap, &bpf, filter, 1, 0) but it doesn't...