From owner-freebsd-hackers Fri May 8 05:19:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA11894 for freebsd-hackers-outgoing; Fri, 8 May 1998 05:19:07 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.loa.com (qmailr@[199.171.167.13]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA11889 for ; Fri, 8 May 1998 05:19:02 -0700 (PDT) (envelope-from brian@deity.loa.com) Received: (qmail 20155 invoked by uid 1639); 8 May 1998 12:19:06 -0000 Received: from deity.loa.com (brian@199.171.167.13) by deity.loa.com with SMTP; 8 May 1998 12:19:06 -0000 Date: Fri, 8 May 1998 08:19:04 -0400 (EDT) From: brian mitchell To: CyberPsychotic cc: freebsd-hackers@FreeBSD.ORG Subject: Re: SOCK_RAW In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Use bpf, it is the same as sock packet, except it does not suck nearly as much. On Fri, 8 May 1998, CyberPsychotic wrote: > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message