*BSD News Article 87846


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!spring.edu.tw!news-peer.nctu.edu.tw!news.nctu.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: 31 Jan 1997 01:14:39 GMT
Organization: Dept. of Computer & Information Science, NCTU, Taiwan
Lines: 32
Message-ID: <01bc0f14$9f3bf300$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
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft Internet News 4.70.1155
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34764



Steve Gailey wrote :
> 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.
> 

Because I want to send/receive raw IP packets, not UDP packet. Is there any
method to 
do this ? The same program can run on Solaris 2.5. So, I don't think it's
program's problem,
or the socket programming is different between FreeBsd and Solaris.

Besides, when use the Raw IP, the port number is not used, right ? The only
useful is
protocol type(such as user defined).


Simon Liu