*BSD News Article 92505


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!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!rill.news.pipex.net!pipex!usenet.eel.ufl.edu!usenet.cise.ufl.edu!tangerine.cise.ufl.edu!ts1
From: Sudheer Tumuluru <ts1@cise.ufl.edu>
Newsgroups: comp.protocols.tcp-ip,cs.freebsd.current,cs.freebsd.questions,cs.freebsd.hackers,muc.lists.freebsd.questions,comp.unix.bsd.freebsd.misc
Subject: IP_HDRINCL Option for raw IP sockets
Date: Sat, 29 Mar 1997 15:53:25 -0500
Organization: UF Department of Computer & Information Science & Engineering
Lines: 29
Message-ID: <Pine.GSO.3.95.970329153642.21020A-100000@tangerine.cise.ufl.edu>
Reply-To: Sudheer Tumuluru <ts1@cise.ufl.edu>
NNTP-Posting-Host: tangerine.cise.ufl.edu
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Xref: euryale.cc.adfa.oz.au comp.protocols.tcp-ip:52597 comp.unix.bsd.freebsd.misc:38194

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

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*     SUDHEER TUMULURU        *     Research Assistant              *
*     307 SW 16th Avenue      *     E331  CSE                       *
*     Apt. #307               *     Dept. of Computer & Information *
*     Gainesville             *              Sciences & Engineering *
*     FL 32601-8508, USA      *     UNIVERSITY OF FLORIDA           *
* Phone : (352) 335-8869      * Phone : (352) 392-5770              *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  E-mail : ts1@cise.ufl.edu      URL : http://www.cise.ufl.edu/~ts1/

              GO FLORIDA GATORS! 1996 NATIONAL CHAMPIONS!