Greetings, I'm new to OpenWRT socket programming. I've followed one Unix Socket programming tutorial. On WhiteRussian, I was able to listen to an interface without trouble. Even though sometimes going through the following problem, which is happening more frequently now in Kamikaze 8.09:
I'm using the toolchain to compile C scripts. I can run small scripts without problem. Sending packets is also not a problem, I've written a small udp packet sender. The problem is with the sniffing. I'm using the following code : http://www.security-freak.net/raw-sockets/sniffer_eth.c (I changed bzero to memset) when I run the script to show at least 100 packets, nothing happens!. I added a printf before "while(packets_to_sniff--)" in the main function: printf("running..."); it prompts ONE packet. It's almost like there's a need to do a printf in the main() in order to see something. However, it prompts only one packet, not everything. If I compile the same code with my CentOS gcc, no problem, it prints every incomming packet. Is there something I should do in order to correctly printf every incomming packet in OpenWRT? Thank you
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
