From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 17:30:25 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 8178A16A4D4 for ; Sat, 8 Jan 2005 17:30:25 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0731C43D31 for ; Sat, 8 Jan 2005 17:30:25 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id j08HQUF2045858; Sat, 8 Jan 2005 12:26:30 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)j08HQU44045855; Sat, 8 Jan 2005 17:26:30 GMT (envelope-from robert@fledge.watson.org) Date: Sat, 8 Jan 2005 17:26:29 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ivan Voras In-Reply-To: <41DFF957.9040506@fer.hr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: 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 17:30:25 -0000 On Sat, 8 Jan 2005, Ivan Voras wrote: > 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: I've not got a 5.2 box on hand, but this appears not to work on 4.x. There isn't a domain handler for AF_LINK, so you shouldn't be able to create a socket of that type, so if it was possible in 5.2, it was likely a bug. Robert N M Watson > > #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? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >