ok
> On 26 Apr 2023, at 11:10, Masato Asou <a...@soum.co.jp> wrote:
>
> Tne interface of nvgre(4) has SIOC[SGD]IFPARENT as below from man nvgre:
>
> nvgre interfaces support the following ioctl(2) calls:
>
> SIOCSIFPARENT struct if_parent *
> Configure which interface will be joined to the multicast
> group specified by the tunnel destination address. The parent
> interface may only be configured while the interface is down.
>
> SIOCGIFPARENT struct if_parent *
> Get the name of the interface used for multicast
> communication.
>
> SIOCDIFPARENT struct ifreq *
> Remove the configuration of the interface used for multicast
> communication.
>
> Can I append parent option to nvgre in ifconfig.8?
>
> comment, ok?
> --
> ASOU Masato
>
> Index: sbin/ifconfig/ifconfig.8
> ===================================================================
> RCS file: /cvs/src/sbin/ifconfig/ifconfig.8,v
> retrieving revision 1.393
> diff -u -p -r1.393 ifconfig.8
> --- sbin/ifconfig/ifconfig.8 25 Apr 2023 05:02:56 -0000 1.393
> +++ sbin/ifconfig/ifconfig.8 26 Apr 2023 01:02:10 -0000
> @@ -1830,6 +1830,7 @@ for a complete list of the available pro
> .Nm ifconfig
> .Ar tunnel-interface
> .Op Oo Fl Oc Ns Cm keepalive Ar period count
> +.Op Oo Fl Oc Ns Cm parent Ar parent-interface
> .Op Cm rxprio Ar prio
> .Op Oo Fl Oc Ns Cm tunnel Ar src_address dest_address
> .Op Cm tunneladdr Ar src_address
> @@ -1875,6 +1876,16 @@ is 2 since the round-trip time of keepal
> Disable the
> .Xr gre 4
> keepalive mechanism.
> +.It Cm parent Ar parent-interface
> +Associate the
> +.Xr nvgre 4
> +interface with the interface
> +.Ar parent-interface .
> +.It Cm -parent
> +Disassociate from the parent interface.
> +This breaks the link between the
> +.Xr nvgre 4
> +interface and its parent.
> .It Cm rxprio Ar prio
> Configure the source used for the packet priority when decapsulating a packet.
> The value can be a priority number from 0 to 7, or
>