*BSD News Article 35231


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.clark.edu!spool.mu.edu!torn!news.unb.ca!angus!phowlett
From: phowlett@angus.ASG.unb.ca (Peter Howlett)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Kernel IP routing
Date: 30 Aug 1994 20:54:10 GMT
Organization: Atlantic Systems Group
Lines: 15
Message-ID: <34069i$9u4@sol.sun.csd.unb.ca>
References: <3405lp$113@sol.sun.csd.unb.ca>
NNTP-Posting-Host: angus.asg.unb.ca
Summary: Grabbing IP packets from raw sockets.
Keywords: IP raw sockets
X-Newsreader: TIN [version 1.2 PL2]

Woops! Sorry about the last post, I was on the wrong host!
The message was supposed to be:

Is it possible to grab IP packets coming in from a certain
interface before the kernel routes them? (through a raw socket
perhaps) Or does this have to be done inside the kernel?

I can grab ICMP packets no problem via a SOCK_RAW using
IPPROTO_ICMP. The socket just hangs on IPPROTO_RAW though.
Any info would be appreciated.

--------------------------------------------------------------------
Peter Howlett				Atlantic Systems Group
E-Mail: phowlett@mailhub.ASG.unb.ca	Fredericton, N.B. Canada