On Fri, 06 Feb 2004 12:55:06 +0000, Roy Hills wrote:
> The man page for raw(7) contains two conflicting statements for the use of 
> IPPROTO_RAW
> with raw sockets.  One statement says that such a socket is receive only; 
> the other says that
> it is send only.
> 
> In the Description section of raw(7), it says the following regarding 
> IPPROTO_RAW:
> "A  protocol  of IPPROTO_RAW implies enabled IP_HDRINCL and receives all IP 
> protocols. Sending is not allowed."
> 
> Later, in the Notes section, it says this which contradicts the earlier 
> statement:
> "An IPPROTO_RAW socket is send only.  If you really want to 
> receive  all  IP  packets  use a packet(7) socket with the ETH_P_IP protocol."

As of 2.10-1 it reads
| A protocol of
| .B IPPROTO_RAW
| implies enabled
| .B IP_HDRINCL
| and is able to send any IP protocol that is specified in the passed
| header.
| Receiving of all IP protocols via
| .B IPPROTO_RAW
| is not possible using raw sockets.
and
| An
| .B IPPROTO_RAW
| socket is send only.
| If you really want to receive all IP packets use a
| .BR packet (7)
| socket with the
| .B ETH_P_IP
| protocol. Note that packet sockets don't reassemble IP fragments,
| unlike raw sockets.


This has been fixed in the infodrom CVS r1.2-1.6, so I guess this bug
could simply be closed for version 1.58-1.

HTH,
Flo

Attachment: signature.asc
Description: Digital signature

Reply via email to