diff options
Diffstat (limited to 'man7/raw.7')
| -rw-r--r-- | man7/raw.7 | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/man7/raw.7 b/man7/raw.7 index 2222662882..60ffc70783 100644 --- a/man7/raw.7 +++ b/man7/raw.7 @@ -127,14 +127,23 @@ In addition all socket options valid for datagram sockets are supported. .SH NOTES -Raw sockets fragment a packet when its total length exceeds the -interface MTU -(but see BUGS). -A more network friendly and faster alternative is to implement path MTU -discovery as described in the -.B IP_MTU_DISCOVER -section of -.BR ip (7). +By default raw sockets do path MTU (Maximum Transmission Unit) discovery. +This means the kernel +will keep track of the MTU to a specific target IP address and return +.I EMSGSIZE +when a raw packet write exceeds it. +When this happens the application should decrease the packet size. +Path MTU discovery can be also turned off using the +.B IP_MTU_DISCOVER +socket option or the +.B ip_no_pmtu_disc +sysctl, see +.BR ip(7) +for details. +When turned off raw sockets will fragment outgoing packets +that exceed the interface MTU. +However disabling it is not recommended +for performance and reliability reasons. A raw socket can be bound to a specific local address using the .BR bind (2) |
