From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 15:17:21 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 517FB16A4CE for ; Sat, 8 Jan 2005 15:17:21 +0000 (GMT) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8706443D48 for ; Sat, 8 Jan 2005 15:17:20 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (localhost.cc.fer.hr [127.0.0.1]) by lara.cc.fer.hr (8.13.1/8.13.1) with ESMTP id j08FGexG074140 for ; Sat, 8 Jan 2005 16:16:40 +0100 (CET) (envelope-from ivoras@fer.hr) Message-ID: <41DFF957.9040506@fer.hr> Date: Sat, 08 Jan 2005 16:16:39 +0100 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: Raw sockets problem? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 15:17:21 -0000 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 #include #include #include #include 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?