End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Socket::Ifaddr#name
ifaddr.name => string
ext/socket/ifaddr.c
View on GitHub ↗
static VALUE
ifaddr_name(VALUE self)
{
struct ifaddrs *ifa = get_ifaddrs(self);
return rb_str_new_cstr(ifa->ifa_name);
}
Returns the interface name of ifaddr.