IPTOS values are defined in netinet/ip.h, not netinet/in.h.

This commit is contained in:
briggs 2008-09-23 14:58:05 +00:00
parent 916a606f2a
commit d36327b66c
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ip.4,v 1.22 2006/12/23 06:58:20 wiz Exp $ .\" $NetBSD: ip.4,v 1.23 2008/09/23 14:58:05 briggs Exp $
.\" .\"
.\" Copyright (c) 1983, 1991, 1993 .\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\" .\"
.\" @(#)ip.4 8.2 (Berkeley) 11/30/93 .\" @(#)ip.4 8.2 (Berkeley) 11/30/93
.\" .\"
.Dd December 5, 2006 .Dd September 23, 2008
.Dt IP 4 .Dt IP 4
.Os .Os
.Sh NAME .Sh NAME
@ -94,7 +94,7 @@ and
sockets. sockets.
For example, For example,
.Bd -literal .Bd -literal
int tos = IPTOS_LOWDELAY; /* see \*[Lt]netinet/in.h\*[Gt] */ int tos = IPTOS_LOWDELAY; /* see \*[Lt]netinet/ip.h\*[Gt] */
setsockopt(s, IPPROTO_IP, IP_TOS, \*[Am]tos, sizeof(tos)); setsockopt(s, IPPROTO_IP, IP_TOS, \*[Am]tos, sizeof(tos));
int ttl = 60; /* max = 255 */ int ttl = 60; /* max = 255 */