Sunday, June 06, 2004

OpenBSD gains pf source routing...

Cedric Berger has committed changes to the OpenBSD routing subsystem that allows packets to be routed based on their source address. Cool stuff.

Here's the commit message:

CVSROOT: /cvs
Module name: src
Changes by: cedric@cvs.openbsd.org 2004/06/06 10:49:09

Modified files:
sys/conf : files
sys/net : pf.c route.c route.h rtsock.c
sys/netinet : in.h in_pcb.c ip_icmp.c ip_input.c ip_output.c
ip_var.h
Added files:
sys/net : route_src.c

Log message:
extend routing table to be able to match and route packets based on their *source* IP address in addition to their destination address. routing table "destination" now contains a "struct sockaddr_rtin" for IPv4 instead of a "struct sockaddr_in". the routing socket has been extended in a backward-compatible way. todo: PMTU enhancements, IPv6. ok deraadt@ mcbride@

No comments: