The HyperNews Linux KHG Discussion Pages

Question: Difference between SOCK_RAW SOCK_PACKET

Forum: The Linux Kernel Hackers' Guide
Date: Wed, 07 Jan 1998 14:23:15 GMT
From: Chris Leung <eg_lch@stu.ust.hk>

We are doing a project that required us to change some
chatacteristics of the TCP protocols and/or add a buffer
into the TCP layer also. It seems to us that the SOCK_RAW or
SOCK_PACKET are good choice to override the TCP or even
IP level of the networking software.
Unfortunately, we cannot find any documents or sample programs
about SOCK_RAW or SOCK_PACKET... :~( 
Please help us out ~~~~~~