From 1485129b097680be28e41a6f924e37805412b335 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Sat, 25 Aug 2001 09:14:55 +0000 Subject: [PATCH] Document that IFF_MULTICAST should be ORd with IFF_POINTOPOINT or IFF_BROADCAST for the TUNSIFMODE ioctl. --- share/man/man4/tun.4 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/share/man/man4/tun.4 b/share/man/man4/tun.4 index 7626e5fa36d9..85bf2c557a1c 100644 --- a/share/man/man4/tun.4 +++ b/share/man/man4/tun.4 @@ -206,16 +206,19 @@ The argument should be a pointer to an its value must be either .Dv IFF_POINTOPOINT or -.Dv IFF_BROADCAST . +.Dv IFF_BROADCAST +and should have +.Dv IFF_MULTICAST +OR'd into the value if multicast support is required. The type of the corresponding .Dq Li tun Ns Ar N interface is set to the supplied type. -If the value is anything else, an +If the value is outside the above range, an .Er EINVAL -error occurs. +error is returned. The interface must be down at the time; if it is up, an .Er EBUSY -error occurs. +error is returned. .It Dv TUNSLMODE The argument should be a pointer to an .Vt int ;