From owner-freebsd-hackers Wed Aug 15 9: 6: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from web13601.mail.yahoo.com (web13601.mail.yahoo.com [216.136.175.112]) by hub.freebsd.org (Postfix) with SMTP id 3536437B40C for ; Wed, 15 Aug 2001 09:05:59 -0700 (PDT) (envelope-from ioannvelikiy@yahoo.com) Message-ID: <20010815160558.95697.qmail@web13601.mail.yahoo.com> Received: from [193.120.120.162] by web13601.mail.yahoo.com; Wed, 15 Aug 2001 09:05:57 PDT Date: Wed, 15 Aug 2001 09:05:57 -0700 (PDT) From: ioann velikiy Subject: socket question To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi all, little socket question. In Developer Handbook, chapter 5.5, i can see the following: "...If you wanted to be in charge of the low-level protocols (such as IP), or even network interfaces (e.g., the Ethernet), you would need to specify SOCK_RAW ..." PF_INET socket, with type SOCK_RAW, always incapsulates data into IP datagram, so how can i control link level stuff using socket interface ? i looked over PF_LINK socket, so i did socket(PF_LINK, SOCK_RAW, 0); and got `unsupported protocol' error message, quick grep on DOMAIN_SET in /usr/src/sys says that PF_LINK domain is not registered. so, the question is: how can i control link-level headers using socket interface ? thanks, -sergey __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message