From owner-freebsd-net@FreeBSD.ORG Wed Feb 17 00:21:25 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 2CD921065672 for ; Wed, 17 Feb 2010 00:21:25 +0000 (UTC) (envelope-from martin.lopreiato@gmail.com) Received: from mail-iw0-f175.google.com (mail-iw0-f175.google.com [209.85.223.175]) by mx1.freebsd.org (Postfix) with ESMTP id E89C58FC15 for ; Wed, 17 Feb 2010 00:21:24 +0000 (UTC) Received: by iwn5 with SMTP id 5so2834482iwn.9 for ; Tue, 16 Feb 2010 16:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=C5ApO+1Xeq4+mluiMTEPnuw7AE1BsX2tdEKiTjQrlKU=; b=pr8nzIVQ7CxnO3y3+YakUVR/KGOgZkha6DsZLCt7svgSOiOCZzrpvpfa+lzUqvygJn XuHVY1+IAIiQtQkBLgJF3bKFbw96lPaEElIixi835hPDm1cxqUytoViNj1tbCBj5a0q+ MQvI6ei4BqMtKZ85D/30AOuJXgrAqcwl/33r4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mrOm78Lcf4R3d+Px3xMa5VrwhOWM+YqJGNTzmu45eqkUkI+WpbN7lhUePKXcL+QEZM 0PmK8R7VfuIaWJ1sC5iud2HVdSf0M8fEHrxwiQUp4ty+E5kBacHG2y/n7h7fHFEeYVlO +TMWqEHVVTF2prwG69bNfqOds2LePSgFbpwnw= MIME-Version: 1.0 Received: by 10.231.160.149 with SMTP id n21mr2497230ibx.93.1266366084012; Tue, 16 Feb 2010 16:21:24 -0800 (PST) In-Reply-To: References: Date: Tue, 16 Feb 2010 21:21:23 -0300 Message-ID: From: Martin Lopreiato To: Chuck Swiger Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 00:21:25 -0000 hi, 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. > > You're not trying to send this traffic from a jail, by any chance? > no. Consider using PCAP/BPF interface or a wrapper like libnet.... > 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() fwiw, linux seems to have an ipv6 version of ipv5}4 hdrinclude socket option. that's nice, too. thanx, /m