From: Michael Kerrisk Date: Tue, 28 Jun 2005 11:57:06 +0000 (+0000) Subject: Change protocol for UDP example X-Git-Tag: man-pages-2.06~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa6dd0995f33ca7c3974c57eb8c35b5ad8890264;p=thirdparty%2Fman-pages.git Change protocol for UDP example --- diff --git a/man7/ip.7 b/man7/ip.7 index 836b46e74d..d602798829 100644 --- a/man7/ip.7 +++ b/man7/ip.7 @@ -19,10 +19,10 @@ ip \- Linux IPv4 protocol implementation .B #include \fR/* superset of previous */ .sp .IB tcp_socket " = socket(PF_INET, SOCK_STREAM, 0);" +.br +.IB udp_socket " = socket(PF_INET, SOCK_DGRAM, 0);" .br .IB raw_socket " = socket(PF_INET, SOCK_RAW, " protocol ");" -.br -.IB udp_socket " = socket(PF_INET, SOCK_DGRAM, " protocol ");" .SH DESCRIPTION Linux implements the Internet Protocol, version 4, described in RFC\ 791 and RFC\ 1122.