[NTLUG:Discuss] Socket error?

TJ Bell tjbell at usa.net
Mon Dec 20 21:20:34 CST 1999


Mohammad Saman wrote:
> 
<snip>
> 
>    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.

I'm thinking maybe you should have
sockfd = socket(PF_INET, SOCK_STREAM, 0);

-- 
TJ Bell  -aka-  MudPoet
  echo tjbexx at usa.nyz | tr xyz let
  http://tjbell.dhs.org




More information about the Discuss mailing list