Andi Kleen wrote: > The man page was supposed to document the kernel, so it's probably > a bug in the manpage. You should send a patch to the manpages > maintainers, with a warning in NOTES that the Linux behaviour > differs from other OS.
OK. Attached patch fixes this and adds comment to the NOTES. Also comment about SOL_IP portability added to the NOTES and duplicate IP_PKTINFO removed in the VERSIONS section. -- Hasso Tepper Elion Enterprises Ltd. WAN administrator
--- ip.7.orig 2005-07-18 19:02:32.000000000 +0300 +++ ip.7 2005-08-19 11:20:23.000000000 +0300 @@ -285,7 +285,7 @@ Expects a boolean integer flag. .B IP_RECVTTL When this flag is set pass a -.I IP_RECVTTL +.I IP_TTL control message with the time to live field of the received packet as a byte. Not supported for .B SOCK_STREAM @@ -789,6 +789,20 @@ received datagrams. Linux has the more g .I IP_PKTINFO for the same task. .PP +Some BSD sockets implementations also provide +.I IP_RECVTTL +option, but ancillary message with type +.I IP_RECVTTL +is passed with incoming packet. It's different from +.I IP_TTL +used in Linux. +.PP +Using +.I SOL_IP +socket options level isn't portable, BSD-based stacks use +.I IPPROTO_IP +level. +.PP .SH ERRORS .\" XXX document all errors. We should really fix the kernels to give more uniform .\" error returns (ENOMEM vs ENOBUFS, EPERM vs EACCES etc.) @@ -887,7 +901,6 @@ and .IR IP_PKTINFO , .IR IP_MTU , .IR IP_MTU_DISCOVER , -.IR IP_PKTINFO , .I IP_RECVERR and .I IP_ROUTER_ALERT