Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jan 2005 16:16:39 +0100
From:      Ivan Voras <ivoras@fer.hr>
To:        hackers@freebsd.org
Subject:   Raw sockets problem?
Message-ID:  <41DFF957.9040506@fer.hr>

next in thread | raw e-mail | index | archive | help
I've just noticed I can't create a raw socket on 5.3-RELEASE, while the 
same code works on 5.2. I get 'Protocol not supported' error on code 
like this:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <errno.h>

void main() {
     int sock = socket(AF_LINK, SOCK_RAW, 0);
     if (sock < 0)
         printf(strerror(errno));
}

Code like this *seems* ok (and I'm sure it worked on 5.2)... why does it 
fail now?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41DFF957.9040506>