On Sat, May 20, 2023 at 09:44:51AM +0200, Holger Glaess wrote:
> hi
> 
> 
> looks like that the patch works , but should not print "tunneldomain"
> instead of "rdomain" ?

that's an interesting question.

ifconfig does not aim to produce output that can then be used as input
for ifconfig again. printing it as rdomain is at least consistent with
how it's printed on the tunnel: line for things like etherip and gif,
and i guess the assumption is you can figure out that it's tunneldomain
from the context.

> 
> Holger
> 
> 
> /usr/src/sbin/ifconfig 164>ifconfig mpe1
> mpe1: flags=51<UP,POINTOPOINT,RUNNING> rdomain 200 mtu 1500
> ???? ??index 82 priority 0 llprio 3
> ???? ??encap: txprio 0 rxprio packet
> ???? ??mpls: label 200
> ???? ??groups: mpe
> ???? ??inet 172.16.2.201 --> 0.0.0.0 netmask 0xffffffff
> 09:42:35 Sat May 20
> you are on farin as root
> /usr/src/sbin/ifconfig 165>./ifconfig mpe1
> mpe1: flags=51<UP,POINTOPOINT,RUNNING> rdomain 200 mtu 1500
> ???? ??index 82 priority 0 llprio 3
> ???? ??encap: txprio 0 rxprio packet
> ???? ??mpls: label 200 rdomain 20
> ???? ??groups: mpe
> ???? ??inet 172.16.2.201 --> 0.0.0.0 netmask 0xffffffff
> 09:42:39 Sat May 20
> you are on farin as root
> 
> 
> On 20.05.23 02:22, David Gwynne wrote:
> > +   if (ioctl(sock, SIOCGLIFPHYRTABLE, (caddr_t)&ifr) == 0 &&
> > +       (rdomainid != 0 || ifr.ifr_rdomainid != 0))
> > +           printf(" rdomain %d", ifr.ifr_rdomainid);
> > +

Reply via email to