From owner-freebsd-net@FreeBSD.ORG Tue Feb 16 22:32:33 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 1E898106566B for ; Tue, 16 Feb 2010 22:32:33 +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 DF1B78FC17 for ; Tue, 16 Feb 2010 22:32:32 +0000 (UTC) Received: by iwn5 with SMTP id 5so2753261iwn.9 for ; Tue, 16 Feb 2010 14:32:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=R7NHNbvrL4rRKnYiNiqn/x7NLrlIaM+gh4V5BEesB58=; b=psGSSuY25xJ6cX54DvLjSZ8PyHCHFSq0zHSjq9rhWnRGxul3JrEQGXm9f0vT3G92mi Rdx5I2DcUqQrs5FGn1qqrPih+KhPT2NmiZA3lAZOQS5nb+5eb6GoYSbnNDNs/H9aNR2l JdnnskEHynzwIm5ZdCUFy/GJWRkqq9kmvdjU0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=myR+19uGyewjrshBnU41JSRDng7ymv5DEjFDu3Lxgq6/X6lGjjOHJ7QdT/xMV2wIed VBrYzKDTZUmHeBmEzej/GJbHvC2ouBXLXB/jekET0m3ItQDmT3eEFsrSHUrHE2oY4Ak3 YHUZxi25RtLRWKBr6bfyZWGkXzlHRiWQTVlKc= MIME-Version: 1.0 Received: by 10.231.144.15 with SMTP id x15mr11046391ibu.99.1266358169919; Tue, 16 Feb 2010 14:09:29 -0800 (PST) Date: Tue, 16 Feb 2010 19:09:29 -0300 Message-ID: From: Martin Lopreiato To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Tue, 16 Feb 2010 22:32:33 -0000 hello, i want to send a packet with a forged ipv6 address. i tried using sendmsg() with ancilliary data, but it seems I can only select an address that has been configured on my system. if I select an arbitrary ipv6 address that i want to forge, i get "can't assign requested address" (in freebsd). isn't it possible to forge an ipv6 address with sendmsg()? 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. thnx, /m