*BSD News Article 88390


Return to BSD News archive

#! rnews 1527 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!news-peer.gsl.net!news.gsl.net!spring.edu.tw!news.cc.nctu.edu.tw!news.cis.nctu.edu.tw!usenet
From: "Simon Liu" <jgliu@iii.org.tw>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Raw IP on FreeBsd
Date: 4 Feb 1997 01:17:19 GMT
Organization: Dept. of Computer & Information Science, NCTU, Taiwan
Lines: 30
Message-ID: <01bc1239$ae6016e0$643d5c8c@soloman.iii.org.tw>
References: <01bc0e92$31ed9880$643d5c8c@soloman.iii.org.tw> <32F08CA0.5CFB@metrosol.demon.co.uk>
NNTP-Posting-Host: @140.92.61.100
X-Newsreader: Microsoft Internet News 4.70.1155
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35080



Steve Gailey <steveg@metrosol.demon.co.uk> 次寫入到主題
<32F08CA0.5CFB@metrosol.demon.co.uk>...
> Simon Liu wrote:
> > 
> > Hi,
> > 
> > I create a RAW IP socket on FreeBsd and send
> > packet, but the destination can not receive
> > the packets using recvfrom().
> > 
> > But tcpdump can see it. What's wrong my program?
> > Any comment will be appreciated !
> >
> If you are going to receive useing recvfrom, why are you useing RAW IP
> sockets? If you can see the packets on the net with TCP dump, check that
> the port address (and everything else) is correct.
> 

Finally, I found out what the problem is !
Raw IP does work on FreeBSD. but because the protocol type I used is 
46 (RSVP), I must add additional option setsockopt(IP_RSVP_ON).
Then it works !!

Any way, thanks your comment


Simon Liu