Hi,

"mcast" promise isn't documented (used in eigrpd, ldpd, ospfd, and
route6d).

This promise allows only some options with getsockopt(2)/setsockopt(2):

  - IPV6_MULTICAST_IF : Get or set the interface from which multicast
    packets will be sent.
  - IPV6_JOIN_GROUP : Join a multicast group
  - IPV6_LEAVE_GROUP : Leave a multicast group

  - IP_MULTICAST_IF : same but for ipv4
  - IP_ADD_MEMBERSHIP
  - IP_DROP_MEMBERSHIP

Comments ?
-- 
Sebastien Marie

Index: lib/libc/sys/pledge.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/pledge.2,v
retrieving revision 1.29
diff -u -p -r1.29 pledge.2
--- lib/libc/sys/pledge.2       12 Apr 2016 12:47:46 -0000      1.29
+++ lib/libc/sys/pledge.2       12 Apr 2016 15:07:10 -0000
@@ -297,6 +297,20 @@ domains:
 .Pp
 .Xr setsockopt 2
 has been reduced in functionality substantially.
+.It Va "mcast"
+Allows to configure an interface from which multicast packets will be sent and
+to join/leave a multicast group. The following options of
+.Xr getsockopt 2
+and
+.Xr setsockopt 2
+are permitted:
+.Pp
+.Dv IP_MULTICAST_IF ,
+.Dv IP_ADD_MEMBERSHIP ,
+.Dv IP_DROP_MEMBERSHIP ,
+.Dv IPV6_MULTICAST_IF ,
+.Dv IPV6_JOIN_GROUP ,
+.Dv IPV6_LEAVE_GROUP .
 .It Va "fattr"
 The following system calls are allowed to make explicit changes
 to fields in

Reply via email to