On 8/9/23 08:50, Gautam Thaker wrote:
> I don't know if this is important but on pc858 which is ctl box using
> OpenStack profile, using 'getifaddrs()' call returns 'tun0' interface
> twice, with first time its address->ifa_addr value is NULL.
`getifaddrs` will return an entry for each address family, so this is
expected on most interface types. See pc858:/root/testif{.c} for an
example. And in response to your earlier message about ->ifa_addr being
NULL, this is valid, although uncommon. If you create a new tuntap
device (`sudo ip tuntap add tun99 mode tun`), you'll see this. Most
like this is the point-to-point addr, but I didn't look to verify.
David
> #gethostname:
ctl.openstack-test-2.corbatests.emulab.net
> # Test_start_time: since_epoch 1691592353 asctime Wed Aug 9 14:45:53 2023
> # Interfaces returned by getifaddrs()
> # tun0 address->ifa_addr is NULL Mac : 00:00:00:00:00:00
> # lo IPv4 127.0.0.1 Mac : 00:00:00:00:00:00 Intf. 1, up
> # tun0 IPv4 192.168.0.1 Mac : 00:00:00:00:00:00 Intf. 10,
> up, full duplex, 10 Mbps
> # br-ex IPv4 155.98.36.158 Mac : 44:a8:42:48:11:11 Intf. 12, up
> # br-flat-lan-1 IPv4 10.11.10.1 Mac : a0:36:9f:85:82:2c Intf. 14, up
> # lo IPv6 ::1 Mac : 00:00:00:00:00:00 Intf. 1, up
> # eno1 IPv6 fe80::46a8:42ff:fe48:1111%eno1 Mac :
> 44:a8:42:48:11:11 Intf. 2, up, full duplex, 1000 Mbps
> # enp6s0f0 IPv6 fe80::a236:9fff:fe85:822c%enp6s0f0Mac :
> a0:36:9f:85:82:2c Intf. 5, up, full duplex, 1000 Mbps
> # tun0 IPv6 fe80::cf83:1319:766c:4d61%tun0 Mac :
> 00:00:00:00:00:00 Intf. 10, up, full duplex, 10 Mbps
> # br-ex IPv6 fe80::46a8:42ff:fe48:1111%br-ex Mac :
> 44:a8:42:48:11:11 Intf. 12, up
> # br-flat-lan-1 IPv6 fe80::a236:9fff:fe85:822c%br-flat-lan-1Mac :
> a0:36:9f:85:82:2c Intf. 14, up
> # gre_sys IPv6 fe80::d039:18ff:fe13:5229%gre_sysMac :
> 2e:d4:df:e6:ae:02 Intf. 19, up
> # tapcdee33cf-48 IPv6 fe80::f816:3eff:fecc:d3f0%tapcdee33cf-48Mac :
> fa:16:3e:cc:d3:f0 Intf. 20, up
> # End of Interfaces.
>
> --
> You received this message because you are subscribed to the Google
> Groups "emulab-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
emulab-users...@googlegroups.com
> <mailto:
emulab-users...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/emulab-users/50de9a8b-765d-467f-8524-2da008acf970n%40googlegroups.com <
https://groups.google.com/d/msgid/emulab-users/50de9a8b-765d-467f-8524-2da008acf970n%40googlegroups.com?utm_medium=email&utm_source=footer>.