Re: LSF and SOCK_PACKET

Garth R Goodson (gg2k+@andrew.cmu.edu)
Sat, 17 Oct 1998 21:48:45 -0400 (EDT)


Excerpts from mail: 17-Oct-98 Re: LSF and SOCK_PACKET by
alan@lxorguk.ukuu.org.uk
> > Has anyone given any thought to having a BIND_TO_TCP_PORT type option
> > for SOCK_PACKET?
>
> Why ?

If one is trying to implement user level networking (TCP/IP stack in
user space) on top of packet sockets then there is a need to ensure that
a TCP port assigned (by the user level library) does not conflict and
will not be used by another application using the kernel's TCP stack.

>
> >
> > traffic monitoring (ie. user level networking) this would be a very
> > useful feature (although it could be argued it breaks all kind of layer
> > abstractions).
> >
> > I would be interested in hearing the best ways of going about this.
>
> Use the attach/detach filter stuff and write yourself a BPF filter that
> checks the port

BPF is useful for the demultiplexing but will not help "reserve" a TCP port.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/