Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2006 10:41:17 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= <jinmei@isl.rdc.toshiba.co.jp>
Cc:        freebsd-net@freebsd.org, freebsd-pf@freebsd.org
Subject:   Re: IPv6 raw socket to send original udp
Message-ID:  <20060517103906.P49041@fledge.watson.org>
In-Reply-To: <y7v64k6qiab.wl%jinmei@isl.rdc.toshiba.co.jp>
References:  <20060508.054451.41688849.yamamoto436@oki.com> <y7v64k6qiab.wl%jinmei@isl.rdc.toshiba.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 16 May 2006, JINMEI Tatuya / [ISO-2022-JP] ¿ÀÌÀãºÈ wrote:

> So, if a program needs to specify an arbitrary source IPv6 address for 
> outgoing packets, it should use other "packet injection" interface such as 
> BPF.

One problem with using BPF for packet injection in IPv4 is that it requires 
the sender to provide the link layer encapsulation, make the routing decision, 
and perform any address resolution.  Using raw sockets with the full header 
option allows the sender to generate a datagram from an arbitrary source yet 
not perform those routing and link layer activities, which require more 
intimate knowledge of the link type.  It might be desirable to add a socket 
option to allow the specification of the source address in order to allow 
packet replay tools, etc, to work without link layer knowledge.

Robert N M Watson

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060517103906.P49041>