I tried to write program to sniff network. My program based on libpcap checks all devices(eth0,any..) . Then I choose the one of them and do sniffing on it. I compiled and run it. But my program didn't give me any list of devices ..