On Wed, 24 Oct 2007 22:12:18 +0900
"???" <ybim@mmlab.snu.ac.kr> wrote:
> Hello
>=20
> Is there any possible way to do source routing(policy routing) in
> netBSD? As I know, there's no internal command in netBSD which one
> can set a path for a specific destination.
> Or can I do that by using routing protocol commands such as Zebra, or
> using netfilter-like programs which can set TCP option?
> Please, let me know any method related with source routing in netBSD.
>=20
> And one more question, if policy routing is not implemented in netBSD,
> then how does the netBSD process a packet which has a source routing
> option?
>=20
Source routing can, I believe, be set on a per-socket basis with
setsockopt. On received source-routed packets, the reply is (I'm
fairly certain) sent back along the same path, per the RFC.
--Steve Bellovin, http://www.cs.columbia.edu/~smb