Hello Linux World,
I need to insert a TCP or socket filter that intercepts incoming
user-supplied buffers and do some processing on its contents if it
matches some criterion in the sender. The receiver should do similarly
in the reverse order on the other end of the connection.
I read the Linux Socket Filter Documentation and also the BPF packet
filter man pages and I am feeling that these facilities can not do what
is described above (but I am not sure). I want to use as much as
possible the facilities provided by the Linux Kernel. Ipchains/ipfw will
provide filtering on IP packets which is not what I would like to do. I
would like to intercept/filter traffic incoming into/going out a socket
descriptor through the read/write/send/recv system calls.
Please let me know what to read if what I want to do already exist in
the Socket Filter or other Linux kernel mechanisms.
PS: Please CC me on the replies since I am not a regular subscriber to