From owner-freebsd-hackers Fri May 8 04:26:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA05738 for freebsd-hackers-outgoing; Fri, 8 May 1998 04:26:53 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from voland.freenet.bishkek.su (root@voland.freenet.bishkek.su [193.125.230.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA05704 for ; Fri, 8 May 1998 04:26:16 -0700 (PDT) (envelope-from fygrave@freenet.bishkek.su) Received: from freenet.bishkek.su (fygrave@freenet.bishkek.su [193.125.230.1]) by voland.freenet.bishkek.su (8.8.7/8.8.7) with ESMTP id RAA10482; Fri, 8 May 1998 17:26:33 +0600 Received: from localhost (fygrave@localhost) by freenet.bishkek.su (8.8.4/8.6.12) with SMTP id QAA16675; Fri, 8 May 1998 16:38:54 -0500 Date: Fri, 8 May 1998 16:38:53 -0500 (GMT+5) From: CyberPsychotic To: freebsd-hackers@FreeBSD.ORG Subject: SOCK_RAW Message-ID: X-copyright: The content of this message is intellectual property of its author. So are all mistakes. X-lummer: Bill Gates MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello people, Actually this is BSD C-related programming question, but since i didn't find any kind of freebsd-c-programming mailing lists.(time to have one?) I think that's the best place to ask: I came to bsd from linux, and abit got stuck with its raw packet socket programming. I used to use SOCK_PACKET type to get raw stream of data from ethernet infreface running in promisc. mode, but found out that it doesn't work this way under BSD. (well, it doesn't have SOCK_PACKET at all, so i used SOCK_RAW, but still didn't get result i wanted). I would appreciate if anyone could provide me sample code or some links/refernces to online documentation covering this mistery. Thanks beforehands, Best Regards Fyodor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message