Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/ipf/lib/
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);
/illumos-gate/usr/src/boot/libsa/
H A Dnetif.h11 int (*netif_match)(struct netif *, void *);
12 int (*netif_probe)(struct netif *, void *);
16 void (*netif_end)(struct netif *);
40 struct netif { struct
53 struct netif *netif_select(void *); argument
54 int netif_probe(struct netif *, void *);
55 void netif_attach(struct netif *, struct iodesc *, void *);
56 void netif_detach(struct netif *);
H A Dnetif.c90 netif_match(struct netif *nif, void *machdep_hint) in netif_match()
102 struct netif *
107 struct netif cur_if; in netif_select()
108 static struct netif best_if; in netif_select()
171 netif_probe(struct netif *nif, void *machdep_hint) in netif_probe()
183 netif_attach(struct netif *nif, struct iodesc *desc, void *machdep_hint) in netif_attach()
203 netif_detach(struct netif *nif) in netif_detach()
223 struct netif *nif = desc->io_netif; in netif_get()
250 struct netif *nif = desc->io_netif; in netif_put()
318 struct netif *nif; in netif_open()
H A Diodesc.h49 struct netif *io_netif;
H A DMakefile.inc250 $(SASRC)/net.c $(SASRC)/udp.c $(SASRC)/netif.c \
252 OBJECTS += arp.o ether.o ip.o inet_ntoa.o in_cksum.o net.o udp.o netif.o rpc.o
/illumos-gate/usr/src/boot/efi/libefi/
H A Definet.c52 static void efinet_end(struct netif *);
55 static int efinet_match(struct netif *, void *);
56 static int efinet_probe(struct netif *, void *);
106 efinet_match(struct netif *nif, void *machdep_hint) in efinet_match()
116 efinet_probe(struct netif *nif, void *machdep_hint __unused) in efinet_probe()
143 struct netif *nif = desc->io_netif; in efinet_put()
173 struct netif *nif = desc->io_netif; in efinet_get()
211 struct netif *nif = desc->io_netif; in efinet_init()
267 efinet_end(struct netif *nif) in efinet_end()
/illumos-gate/usr/src/boot/i386/libi386/
H A Dpxe.c73 static int pxe_netif_match(struct netif *nif, void *machdep_hint);
74 static int pxe_netif_probe(struct netif *nif, void *machdep_hint);
78 static void pxe_netif_end(struct netif *nif);
357 pxe_netif_match(struct netif *nif __unused, void *machdep_hint __unused) in pxe_netif_match()
364 pxe_netif_probe(struct netif *nif __unused, void *machdep_hint __unused) in pxe_netif_probe()
373 pxe_netif_end(struct netif *nif __unused) in pxe_netif_end()