aboutsummaryrefslogtreecommitdiffstats
path: root/man7/raw.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2006-01-03 10:58:34 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2006-01-03 10:58:34 +0000
commit56185b42e77e6841bd76fbfff27e7c57855f88f6 (patch)
tree52c058ebb6dd63eae8f7c032b9ebbf2b6540fb38 /man7/raw.7
parentd6d5023908d5626e524662b7e024476a3e13c6f7 (diff)
downloadman-pages-56185b42e77e6841bd76fbfff27e7c57855f88f6.tar.gz
Formatting and source code line break changes (no changes to content!)
Diffstat (limited to 'man7/raw.7')
-rw-r--r--man7/raw.731
1 files changed, 17 insertions, 14 deletions
diff --git a/man7/raw.7 b/man7/raw.7
index c647ebe478..172aa5b0d7 100644
--- a/man7/raw.7
+++ b/man7/raw.7
@@ -42,7 +42,8 @@ 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.
+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.
@@ -126,7 +127,8 @@ 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
+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
@@ -160,19 +162,19 @@ on that particular socket; see
.BR ip (7).
Raw sockets may tap all IP protocols in Linux, even
-protocols like ICMP or TCP which have a protocol module in the kernel. In
-this case the packets are passed to both the kernel module and the raw
+protocols like ICMP or TCP which have a protocol module in the kernel.
+In this case the packets are passed to both the kernel module and the raw
socket(s).
This should not be relied upon in portable programs, many other BSD
socket implementation have limitations here.
-Linux never changes headers passed from the user (except for filling in some
-zeroed fields as described for
+Linux never changes headers passed from the user (except for filling
+in some zeroed fields as described for
.BR IP_HDRINCL ).
This differs from many other implementations of raw sockets.
-RAW sockets are generally rather unportable and should be avoided in programs
-intended to be portable.
+RAW sockets are generally rather unportable and should be avoided in
+programs intended to be portable.
Sending on raw sockets should take the IP protocol from
.BR sin_port ;
@@ -195,12 +197,12 @@ all network errors are saved in the error queue.
.B EMSGSIZE
Packet too big. Either Path MTU Discovery is enabled (the
.B IP_MTU_DISCOVER
-socket flag) or the packet size exceeds the maximum allowed IPv4 packet size
-of 64KB.
+socket flag) or the packet size exceeds the maximum allowed IPv4
+packet size of 64KB.
.TP
.B EACCES
-User tried to send to a broadcast address without having the broadcast flag
-set on the socket.
+User tried to send to a broadcast address without having the
+broadcast flag set on the socket.
.TP
.B EPROTO
An ICMP error has arrived reporting a parameter problem.
@@ -228,8 +230,9 @@ and
are new in Linux 2.2. They are Linux extensions
and should not be used in portable programs.
-Linux 2.0 enabled some bug-to-bug compatibility with BSD in the raw socket
-code when the SO_BSDCOMPAT socket option was set \(em since Linux 2.2,
+Linux 2.0 enabled some bug-to-bug compatibility with BSD in the
+raw socket code when the
+SO_BSDCOMPAT socket option was set \(em since Linux 2.2,
this option no longer has that effect.
.SH BUGS