commit 5ef42896e22a5f4d1d2fc6cd8f4e6d981c1fef05 from: Stefan Sperling date: Tue Mar 07 22:44:02 2023 UTC initialize ifp in show_vnet_parent() I am not sure how this ever worked without providing the desired interface name in the ioctl request. commit - 3e900a0e4ce20da82f78e6b5b2ab520729e3e62c commit + 5ef42896e22a5f4d1d2fc6cd8f4e6d981c1fef05 blob - ff37c8bb238a7c157908dcaf8a18acf7bd72bfc7 blob + 6c89a10ac613f10be4fad6c9f1e1c1555b8e824f --- if.c +++ if.c @@ -636,9 +636,10 @@ show_vnet_parent(int ifs, char *ifname) bzero(&ifr, sizeof(ifr)); strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); - if (ioctl(ifs, SIOCGVNETID, (caddr_t)&ifr) != -1) printf(" vnetid %llu,", ifr.ifr_vnetid); + bzero(&ifp, sizeof(ifp)); + strlcpy(ifp.ifp_name, ifname, sizeof(ifp.ifp_name)); if (ioctl(ifs, SIOCGIFPARENT, (caddr_t)&ifp) != -1) printf(" parent %s,", ifp.ifp_parent); }