Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 1997 18:11:20 -0800
From:      Julian Elischer <julian@whistle.com>
To:        Brian Somers <brian@awfulhak.demon.co.uk>
Cc:        "Daniel O'Callaghan" <danny@panda.hilink.com.au>, Archie Cobbs <archie@whistle.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: FreeBSD as an ISDN Router
Message-ID:  <32DEDFC8.41C67EA6@whistle.com>
References:  <199701162136.VAA01513@awfulhak.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers wrote:

> At this stage I'd tend to rename the "aliasing" stuff to the "masquerading" stuff - it's less likely to get confused with interface aliasing.
> 
> So, any objections to this ?
make it a port / package first.....
then it can be tested more..

> 
> BTW, where's the divert(4) page ?  I havn't got it in 3.0-current as of yesterday.  I only found some info in the ipfw page.

it just comes up for me...
man 4 divert
DIVERT(4)                 FreeBSD Programmer's Manual               
DIVERT(4)

NAME
     divert - kernel packet diversion mechanism

SYNOPSIS
     #include <sys/socket.h>
     #include <netinet/in.h>

     int
     socket(PF_INET, SOCK_RAW, IPPROTO_DIVERT)

DESCRIPTION
     Divert sockets are similar to raw IP sockets, except that they can
be
     bound to a specific divert port via the bind(2) system call. The IP
ad-
     dress in the bind is ignored; only the port number is significant. 
A di-
     vert socket bound to a divert port will receive all packets
diverted to
     that port by some (here unspecified) kernel mechanism(s).  Packets
may
     also be written to a divert port, in which case they re-enter
kernel IP
     packet processing.

     Divert sockets are normally used in conjunction with FreeBSD's
packet
     filtering implementation and the ipfw(8) program. By reading from
and
     writing to a divert socket, matching packets can be passed through
an ar-
     bitrary ``filter'' as they travel through the host machine, special
rout-
     ing tricks can be done, etc.


etc.
it's in the tree....

> 
> --
> Brian <brian@awfulhak.demon.co.uk>, <brian@freebsd.org>
>       <http://www.awfulhak.demon.co.uk/>;
> Don't _EVER_ lose your sense of humour....



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32DEDFC8.41C67EA6>