Skip to content

Commit

Permalink
vnetid went full u_int64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowman committed Mar 3, 2017
1 parent 88e2905 commit 4232783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion if.c
Expand Up @@ -424,7 +424,7 @@ show_vnet_parent(int ifs, char *ifname)
strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));

if (ioctl(ifs, SIOCGVNETID, (caddr_t)&ifr) != -1)
printf(" vnetid %d,", ifr.ifr_vnetid);
printf(" vnetid %llu,", ifr.ifr_vnetid);
#ifdef SIOCGIFPARENT /* 6.0+ */
if (ioctl(ifs, SIOCGIFPARENT, (caddr_t)&ifp) != -1)
printf(" parent %s,", ifp.ifp_parent);
Expand Down

0 comments on commit 4232783

Please sign in to comment.