Searched refs:if_index (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/usb/usba/
H A Dusba_private.h75 * if_index the index in the array of concurrent interfaces
78 * by if_index
115 uint_t if_index,
128 uint_t if_index,
176 uint_t if_index,
188 uint_t if_index,
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.h72 uint_t if_index; /* interface index */ member in struct:ipgpc_packet_s
H A Dclassifierddi.c459 pkt.if_index = ipmp_ill_get_ipmp_ifindex(ill);
461 pkt.if_index = ill->ill_phyint->phyint_ifindex;
465 /* unknown if_index */
466 pkt.if_index = IPGPC_UNSPECIFIED;
H A Dclassifier-objects.h107 uint_t if_index; /* interface index, " " or 0 for wildcard */ member in struct:ipgpc_filter_s
H A Dclassifier.c91 ipgpc_findfilters(IPGPC_TABLE_IF, packet->if_index, fid_table);
683 " if_index = %d, projid = %d, direction = %d", saddrbuf,
685 pkt->dsfield, pkt->uid, pkt->if_index,
695 " if_index = %d, projid = %d, direction = %d", saddrbuf,
697 pkt->dsfield, pkt->uid, pkt->if_index,
H A Dfilters.c624 /* parse if_index */
625 if (nvlist_lookup_uint32(nvlp, IPGPC_IF_INDEX, &filter->if_index)
627 filter->if_index = 0;
1003 fid->filter.if_index) == NORMAL_VALUE) {
1405 fid->filter.if_index);
2301 if (in_filter->if_index != IPGPC_UNSPECIFIED) {
2303 in_filter->if_index)) != 0) {
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinterface_id.c307 interface_entry[physinterf_num].if_index =
310 if (interface_entry[physinterf_num].if_index == 0) {
337 interface_entry[physinterf_num].if_index = 0;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c123 union any_in_addr *gwIPlist, int gw_cnt, uint_t if_index)
172 if (if_index != 0) {
244 if (if_index != 0) {
263 pktinfop->ipi6_ifindex = if_index;
122 set_ancillary_data(struct msghdr *msgp, int hoplimit, union any_in_addr *gwIPlist, int gw_cnt, uint_t if_index) argument
H A Dtraceroute.c147 static uint_t if_index = 0; /* interface index */ variable
351 if_index = (uint_t)strtol(optarg, &ep, 10);
356 if_index = if_nametoindex((const char *)device);
362 if (if_index == 0 && errno != ENXIO) {
375 device = if_indextoname(if_index, device);
389 if (device == NULL || if_index == 0) {
864 " interface\n", prog, device, if_index, pr->name);
1421 if_index);
/illumos-gate/usr/src/uts/common/inet/
H A Dipnet.h105 uint_t if_index; member in struct:ipnetif
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c91 union any_in_addr *gwIPlist, int gw_cnt, uint_t if_index)
102 if (hoplimit == -1 && gw_cnt == 0 && if_index == 0)
145 if (if_index != 0) {
227 if (if_index != 0) {
246 pktinfop->ipi6_ifindex = if_index;
90 set_ancillary_data(struct msghdr *msgp, int hoplimit, union any_in_addr *gwIPlist, int gw_cnt, uint_t if_index) argument
H A Dping.c135 static int if_index = 0; /* outgoing interface index */ variable
654 &if_index, &udp_src_port6, ai_nexthop))
659 if (!setup_socket(AF_INET, &send_sock, &recv_sock, &if_index,
1313 setup_socket(int family, int *send_sockp, int *recv_sockp, int *if_index, argument
1599 *if_index = my_if->index;
1885 eff_num_gw, if_index);
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai_util.c68 * if_index - interface index
79 uint_t if_index,
88 ddi_node_name(dip), if_index, alt_setting);
97 if_index, /* interface index */
121 * if_index - interface index
133 uint_t if_index,
143 ddi_node_name(dip), if_index, alt_setting);
152 if_index, /* interface index */
78 usb_get_if_descr(dev_info_t *dip, uint_t if_index, uint_t alt_setting, usb_if_descr_t *descr) argument
132 usb_get_ep_descr(dev_info_t *dip, uint_t if_index, uint_t alt_setting, uint_t endpoint_index, usb_ep_descr_t *descr) argument
/illumos-gate/usr/src/uts/common/inet/ipnet/
H A Dipnet.c921 uint64_t index = ipnetif->if_index;
956 uint64_t index = ipnetif->if_index;
1074 uint64_t ifindex = ipnet->ipnet_if->if_index;
1306 ipnetif->if_index = (uint_t)index;
1392 uint64_t phyif = ipnetif->if_index;
1870 int64_t index2 = (int64_t)((ipnetif_t *)ipnetifp)->if_index;
2116 *idp = (uint_t)ifp->if_index;
2126 *idp = (uint_t)ifp->if_index;
2363 newif->if_index = ifp->if_index;
[all...]
/illumos-gate/usr/src/boot/include/net/
H A Dif.h289 u_short _ifm_spare1; /* spare space to grow if_index, see if_var.h */
329 u_short _ifam_spare1; /* spare space to grow if_index, see if_var.h */
537 unsigned int if_index; /* 1, 2, ... */ member in struct:if_nameindex
/illumos-gate/usr/src/uts/common/net/
H A Dif.h712 unsigned if_index; /* positive interface index */ member in struct:if_nameindex
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_compat.h790 # define CACHE_HASH(x) ((((struct ifnet *)fin->fin_ifp)->if_index)&7)
870 # define CACHE_HASH(x) ((((struct ifnet *)fin->fin_ifp)->if_index) & 7)
1011 # define CACHE_HASH(x) ((((struct ifnet *)fin->fin_ifp)->if_index)&7)

Completed in 142 milliseconds