c - pcap only picking up on new connections -


i wrote simple c program packet capture using pcap. thing is, picks on small subset of network activity. (i think pattern picks on new tcp connections.)

for instance, picks on bunch of packets when request browser or wget, or when start x-chat irc client , connect.

however, when leave irc client running doesn't pick on packets corresponding text messages. similarly, doesn't pick on arp broadcasts on home network, or ping packets when ping website.

i wondering why picking on small subset of packets sending/receiving. here code. grateful feedback.

code: http://pastebin.com/qdhry6jm

fixed it. when change timeout value -1 else works (ie picks on network activity). don't know what's going on there (haven't thought yet) if please holla.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -