From owner-freebsd-net@FreeBSD.ORG Wed Feb 17 03:16:27 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B83111065670 for ; Wed, 17 Feb 2010 03:16:27 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [64.13.141.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9EDA68FC14 for ; Wed, 17 Feb 2010 03:16:27 +0000 (UTC) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id o1H3F5Bx099107; Tue, 16 Feb 2010 19:15:05 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from [192.168.0.12] (cpe-68-175-72-246.nyc.res.rr.com [68.175.72.246]) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.3) with ESMTP id o1H3F4dg077445 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 16 Feb 2010 19:15:05 -0800 (PST) (envelope-from gnn@neville-neil.com) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: George Neville-Neil In-Reply-To: Date: Tue, 16 Feb 2010 22:15:04 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <977CA846-505E-4D96-8555-6D1A21F2BC18@neville-neil.com> References: To: Martin Lopreiato X-Mailer: Apple Mail (2.1077) Cc: freebsd-net@freebsd.org Subject: Re: Forging ipv6 addresses? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 03:16:27 -0000 On Feb 16, 2010, at 19:21 , Martin Lopreiato wrote: > hi, >=20 > On Feb 16, 2010, at 2:09 PM, Martin Lopreiato wrote: >>> note: if i use a configured address, my code works perfectly. so the >>> error message i'm getting when trying to forge an ipv6 address does >>> not seem to be related to a bug in my code. >>=20 >> You're not trying to send this traffic from a jail, by any chance? >>=20 >=20 > no. >=20 >=20 > Consider using PCAP/BPF interface or a wrapper like libnet.... >>=20 >=20 > pcap/bpf wouldn't do: i'd have to take care of neighbor-discovery and > routing myself. libnet would probably do, but.. hey! it's a simple = ipv6 > packet. and at this point, i'm curious about whether there's a = limitation on > the addresses you can "forge" with sendmsg() >=20 > fwiw, linux seems to have an ipv6 version of ipv5}4 hdrinclude socket > option. that's nice, too. >=20 I'd recommend pcs (http://pcs.sf.net) which has a lot of IPv6 support. Best, George=