Home
last modified time | relevance | path

Searched refs:netif (Results 1 – 1 of 1) sorted by relevance

/titanic_50/usr/src/cmd/ipf/lib/common/
H A Dgetifname.c38 struct ifnet netif; local
50 if (kmemcpy((char *)&netif, (u_long)ptr, sizeof(netif)) == -1)
55 return strdup(netif.if_xname);
57 if (kstrncpy(buf, (u_long)netif.if_name, sizeof(buf)) == -1)
59 if (netif.if_unit < 10)
61 else if (netif.if_unit < 1000)
63 else if (netif.if_unit < 10000)
68 sprintf(buf + strlen(buf), "%d", netif.if_unit % 10000);