End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Socket::Ifaddr#vhid
ifaddr.vhid => Integer
ext/socket/ifaddr.c
View on GitHub ↗
static VALUE
ifaddr_vhid(VALUE self)
{
struct ifaddrs *ifa = get_ifaddrs(self);
if (ifa->ifa_data)
return (INT2FIX(((struct if_data*)ifa->ifa_data)->ifi_vhid));
else
return Qnil;
}
Returns the vhid address of ifaddr. nil is returned if there is no vhid.