*BSD News Article 92610


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!news.corp.sgi.com!news.sgi.com!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.lan.awfulhak.org (Brian Somers)
Newsgroups: comp.protocols.tcp-ip,cs.freebsd.current,cs.freebsd.questions,cs.freebsd.hackers,muc.lists.freebsd.questions,comp.unix.bsd.freebsd.misc
Subject: Re: IP_HDRINCL Option for raw IP sockets
Date: 2 Apr 1997 14:46:22 GMT
Organization: Awfulhak Ltd.
Lines: 27
Message-ID: <5htrfu$l43@ui-gate.utell.co.uk>
References: <Pine.GSO.3.95.970329153642.21020A-100000@tangerine.cise.ufl.edu>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.protocols.tcp-ip:52625 comp.unix.bsd.freebsd.misc:38298

In article <Pine.GSO.3.95.970329153642.21020A-100000@tangerine.cise.ufl.edu>,
	Sudheer Tumuluru <ts1@cise.ufl.edu> writes:
> Hi,
> 	I have root access to a machine and thus have the ability to
> create raw sockets. The OS is FreeBSD 2.2-CURRENT. I am trying to
> reroute an IP packet from one machine to another based on some
> criteria and I don't want to do kernel modification. I tried using the
> IP_HDRINCL option for opening a raw socket, but it doesn't seem to do
> that. I treied to isolate the error and when I tried "perror" the
> error message says "no buffers available". I tried this many times and
> still the same error appears. Any suggestions/ part of code to
> implement this? 
> 
> Thanks in advance,
> 
> Cheers,
> Sudheer
> 

natd is a good example:

    ftp://kn6-045.ktvlpr.inet.fi/pub/natd.

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour !