Unable to open raw socket - User Documentation

50 views
Skip to first unread message

Carlos Jr

unread,
Oct 29, 2018, 7:05:41 PM10/29/18
to ns-3-reviews
I tried to do this command ./waf --run lena-simple-epc-emu --command="%s --ns3::EmuEpcHelper::sgwDeviceName=veth0 --ns3::EmuEpcHelper::enbDeviceName=veth1"

with a default code. So, I received this error:

Waf: Leaving directory `/home/carlos/ns329/ns-allinone-3.29/ns-3.29/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1m30.844s)
../src/fd-net-device/helper/raw-sock-creator.cc: fatal error at line 86: main(): CreateSocket(): Unable to open raw socket
    errno = 1 (Operation not permitted)
msg="EmuFdNetDeviceHelper::CreateFileDescriptor(): socket creator exited normally with status 255", file=../src/fd-net-device/helper/emu-fd-net-device-helper.cc, line=311
terminate called without an active exception
Command ['/home/carlos/ns329/ns-allinone-3.29/ns-3.29/build/src/lte/examples/ns3.29-lena-simple-epc-emu-debug', '--ns3::EmuEpcHelper::sgwDeviceName=veth0', '--ns3::EmuEpcHelper::enbDeviceName=veth1'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

Peter Barnes

unread,
Nov 5, 2018, 5:40:09 PM11/5/18
to ns-3-reviews
This sort of question is better asked on the users' list.  Is it perhaps that you need to execute as root to open a raw socket?  Read the Manual chapter for the File Descriptor NetDevice, specifically this section:

Peter
Reply all
Reply to author
Forward
0 new messages