I'm trying to send/recv raw ethernet under Ubuntu.
I've no problem running code in c through the terminal.
However when i've tried to convert the code to c++ using Netbeans IDE 6.9 it fails to open the raw socket. calling:
socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) == -1)
always return -1. error : "operation not permitted"