Author: ru Date: Fri Jun 15 09:12:47 2012 New Revision: 237132 URL: http://svn.freebsd.org/changeset/base/237132
Log: Fixed an example that set IP_ONESBCAST socket option to actually work, and not return EINVAL. Modified: head/share/man/man4/ip.4 Modified: head/share/man/man4/ip.4 ============================================================================== --- head/share/man/man4/ip.4 Fri Jun 15 08:50:44 2012 (r237131) +++ head/share/man/man4/ip.4 Fri Jun 15 09:12:47 2012 (r237132) @@ -32,7 +32,7 @@ .\" @(#)ip.4 8.2 (Berkeley) 11/30/93 .\" $FreeBSD$ .\" -.Dd June 12, 2012 +.Dd June 15, 2012 .Dt IP 4 .Os .Sh NAME @@ -227,7 +227,7 @@ configured with the broadcast address 19 .Bd -literal char msg[512]; struct sockaddr_in sin; -u_char onesbcast = 1; /* 0 = disable (default), 1 = enable */ +int onesbcast = 1; /* 0 = disable (default), 1 = enable */ setsockopt(s, IPPROTO_IP, IP_ONESBCAST, &onesbcast, sizeof(onesbcast)); sin.sin_addr.s_addr = inet_addr("192.168.2.255"); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"