[NTLUG:Discuss] Socket error?
Mohammad Saman
Mohammad.Saman at parsons.com
Mon Dec 20 17:08:02 CST 1999
Hi,
I am new to Linux Socket programming. I am trying to open a Raw socket to read ip packets.
with:
sockfd= socket(AF_INET, SOCK_RAW,0)
What happens is that sockfd returns a "-1". I am logged in as root. The SUID bit is set on the executable,and the excutable is owned by root, but I still cannot create a socket. Does anybody have any ideas why ? Thanks in advance.
Regards,
Mohammad Saman
More information about the Discuss
mailing list