NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/48612: Correct errors in multicast.4



>Number:         48612
>Category:       misc
>Synopsis:       Correct errors in multicast.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 22 12:00:01 +0000 2014
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Use the correct socket in examples .
>How-To-Repeat:

>Fix:
diff -u -p -r1.6 multicast.4
--- share/man/man4/multicast.4  13 Mar 2012 19:25:40 -0000      1.6
+++ share/man/man4/multicast.4  16 Feb 2014 06:20:28 -0000
@@ -312,7 +312,7 @@ mc.mf6cc_parent = iif_index;
 for (i = 0; i \*[Lt] maxvifs; i++)
     if (oifs_ttl[i] \*[Gt] 0)
         IF_SET(i, \*[Am]mc.mf6cc_ifset);
-setsockopt(mrouter_s4, IPPROTO_IPV6, MRT6_ADD_MFC,
+setsockopt(mrouter_s6, IPPROTO_IPV6, MRT6_ADD_MFC,
            (void *)\*[Am]mc, sizeof(mc));
 .Ed
 .Pp
@@ -351,7 +351,7 @@ struct mf6cctl mc;
 memset(\*[Am]mc, 0, sizeof(mc));
 memcpy(\*[Am]mc.mf6cc_origin, \*[Am]source_addr, sizeof(mc.mf6cc_origin));
 memcpy(\*[Am]mc.mf6cc_mcastgrp, \*[Am]group_addr, sizeof(mf6cc_mcastgrp));
-setsockopt(mrouter_s4, IPPROTO_IPV6, MRT6_DEL_MFC,
+setsockopt(mrouter_s6, IPPROTO_IPV6, MRT6_DEL_MFC,
            (void *)\*[Am]mc, sizeof(mc));
 .Ed
 .Pp



Home | Main Index | Thread Index | Old Index