CVSROOT:        /cvs
Module name:    src
Changes by:     mich...@cvs.openbsd.org 2009/10/04 10:08:37

Modified files:
        sys/conf       : files 
        etc            : protocols 
        lib/libc/gen   : sysctl.3 
        sbin/pfctl     : parse.y pfctl_parser.c 
        sbin/sysctl    : sysctl.8 sysctl.c 
        share/man/man4 : Makefile 
        share/man/man5 : pf.conf.5 
        sys/net        : pf.c pfvar.h 
        sys/netinet    : in.h in_proto.c 
        sys/sys        : mbuf.h 
        usr.bin/netstat: inet.c main.c netstat.h 
Added files:
        share/man/man4 : divert.4 
        sys/netinet    : ip_divert.c ip_divert.h 

Log message:
Add (again) support for divert sockets. They allow you to:

- queue packets from pf(4) to a userspace application
- reinject packets from the application into the kernel stack.

The divert socket can be bound to a special "divert port" and will
receive every packet diverted to that port by pf(4).

The pf syntax is pretty simple, e.g.:

pass on em0 inet proto tcp from any to any port 80 divert-packet port 1

A lot of discussion have happened since my last commit that resulted
in many changes and improvements.
I would *really* like to thank everyone who took part in the discussion
especially canacar@ who spotted out which are the limitations of this approach.

OpenBSD divert(4) is meant to be compatible with software running on
top of FreeBSD's divert sockets even though they are pretty different and will
become even more with time.

discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@
tested by reyk@ and myself
ok reyk@ claudio@ beck@
manpage help and ok by jmc@

Reply via email to