From aa6dd0995f33ca7c3974c57eb8c35b5ad8890264 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 28 Jun 2005 11:57:06 +0000 Subject: [PATCH] Change protocol for UDP example --- man7/ip.7 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man7/ip.7 b/man7/ip.7 index 836b46e74..d60279882 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.