From owner-freebsd-questions Sat Mar 29 13:22:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA13949 for questions-outgoing; Sat, 29 Mar 1997 13:22:23 -0800 (PST) Received: from cise.ufl.edu (root@fireant.cise.ufl.edu [128.227.205.210]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA13943 for ; Sat, 29 Mar 1997 13:22:18 -0800 (PST) Received: from tangerine.cise.ufl.edu (ts1@tangerine.cise.ufl.edu [128.227.205.177]) by cise.ufl.edu (8.8.5/8.7.1) with SMTP id QAA24498 for ; Sat, 29 Mar 1997 16:22:13 -0500 (EST) Date: Sat, 29 Mar 1997 16:22:08 -0500 (EST) From: Sudheer Tumuluru Reply-To: Sudheer Tumuluru To: freebsd-questions@FreeBSD.ORG Subject: IP_HDRINCL Option for raw IP sockets Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I have superuser 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 tried 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!