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 firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/