OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Cedric Berger (cedriccvs.openbsd.org)
Date: Sun Jun 06 2004 - 11:49:09 CDT


CVSROOT: /cvs
Module name: src
Changes by: cedriccvs.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