From owner-freebsd-hackers Fri Jun 26 14:05:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA01667 for freebsd-hackers-outgoing; Fri, 26 Jun 1998 14:05:35 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA01145; Fri, 26 Jun 1998 14:03:24 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id OAA22869; Fri, 26 Jun 1998 14:02:48 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma022865; Fri Jun 26 14:02:44 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id OAA01182; Fri, 26 Jun 1998 14:02:44 -0700 (PDT) From: Archie Cobbs Message-Id: <199806262102.OAA01182@bubba.whistle.com> Subject: Re: Apparent bug in sendto() with raw sockets In-Reply-To: from andrewr at "Jun 26, 98 09:38:33 am" To: andrewr@slack.net (andrewr) Date: Fri, 26 Jun 1998 14:02:44 -0700 (PDT) Cc: fenner@parc.xerox.com, nate@almond.elite.net, nate@elite.net, julian@whistle.com, freebsd-bugs@FreeBSD.ORG, freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG andrewr writes: > Speaking of IP_HDRINCL, after reading raw_ip.c and noticing the protection > against spoofing (can't use IP_HDRINCL in certain situations), I started > thinking about actually comparing the user dsupplied ip->ip_src with the > actual IP address defined for the outgoing interface. While looking for a What's wrong with being able to spoof an IP address? If I have root access (required to open a raw socket), and I want to do so, the kernel shouldn't prevent me. There are legitimate reasons for wanting to send spoofed source IP addresses (eg, testing situations). -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message