/* * Returns a hexidecimal encoding, in String form, of the name of the * interface configured by boot(1M) followed by the DHCPACK reply from * the server. */ static VALUE uname_dhcp_cache() { char buf[BUFSIZE]; sysinfo(SI_DHCP_CACHE, buf, BUFSIZE); return rb_str_new2(buf); }