Searched defs:ifindex (Results 1 - 25 of 48) sorted by relevance

12

/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinterface_id.c108 if_indextoname(uint32_t ifindex, char *ifname) argument
125 if (ifindex == 0) {
195 if (index == ifindex) {
H A Dgetnameinfo.c316 uint32_t ifindex; local
329 ifindex = sa->sin6_scope_id;
331 if ((retstr = if_indextoname(ifindex, zonestr)) != NULL) {
337 * Failed to convert ifindex into an interface name,
338 * simply return the literal value of ifindex as
342 ifindex)) < 0) {
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_l2t.h49 int ifindex; /* interface index */ member in struct:l2t_entry
H A Dt4_l2t.c278 arp_hash(const uint32_t *key, int ifindex) argument
280 return (jhash_2words(*key, ifindex, 0) & L2T_HASH_MASK);
284 ipv6_hash(const uint32_t *key, int ifindex) argument
288 return (L2T_SZ_HALF + (jhash_2words(xor, ifindex, 0) & L2T_HASH_MASK));
292 addr_hash(const uint32_t *addr, int addr_len, int ifindex) argument
294 return (addr_len == 4 ? arp_hash(addr, ifindex) :
295 ipv6_hash(addr, ifindex));
379 ip2m.ip2mac_ifindex = e->ifindex;
504 e->ifindex = index;
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetnameinfo.c288 unsigned int ifindex = (unsigned int)sa6->sin6_scope_id; local
317 char *p = if_indextoname(ifindex, buf);
H A Dgethostent.c646 int ifindex, prefix, flag3, flag4; local
653 address, &ifindex, &prefix, &flag3, &flag4, name) == 6)
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c43 static int setup_listen_sock(int ifindex);
386 setup_listen_sock(int ifindex) argument
400 if (setsockopt(sock, IPPROTO_IPV6, IPV6_BOUND_IF, (char *)&ifindex,
401 sizeof (ifindex)) < 0) {
430 allrouters_mreq.ipv6mr_interface = ifindex;
/illumos-gate/usr/src/common/net/dhcp/
H A Ddhcp_impl.h133 uint_t ifindex; /* received ifindex (if any) */ member in struct:dhcp_list
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6_output.c120 uint_t ifindex; local
227 ifindex = 0;
229 ifindex = nce->nce_common->ncec_ill->ill_phyint->phyint_ifindex;
231 dce = dce_lookup_v6(&dst, ifindex, ipst, NULL);
H A Dip6_ire.c758 uint_t ifindex; local
764 ifindex = dst_ill->ill_usesrc_ifindex;
765 if (ifindex == 0)
772 if (!ipif_zone_avail(ifindex, dst_ill->ill_isv6,
H A Dip_dce.c91 * Note that for IPv6 link-local addresses we record the ifindex since the
381 uint_t ifindex; local
390 ifindex = 0;
392 ifindex = ixa->ixa_nce->nce_common->ncec_ill->
395 return (dce_lookup_v6(&final_dst, ifindex, ixa->ixa_ipst,
442 * ifindex should only be set for link-locals
445 dce_lookup_v6(const in6_addr_t *dst, uint_t ifindex, ip_stack_t *ipst, argument
461 dce->dce_ifindex == ifindex) {
551 * ifindex should only be used with link-local addresses.
554 dce_lookup_and_add_v6(const in6_addr_t *dst, uint_t ifindex, ip_stack_ argument
695 dce_update_uinfo_v6(const in6_addr_t *dst, uint_t ifindex, iulp_t *uinfo, ip_stack_t *ipst) argument
711 dce_update_uinfo(const in6_addr_t *dst, uint_t ifindex, iulp_t *uinfo, ip_stack_t *ipst) argument
955 dce_cleanup(uint_t ifindex, ip_stack_t *ipst) argument
[all...]
H A Dconn_opt.c1183 uint_t ifindex; local
1201 ifindex = 0;
1212 ifindex = ipif->ipif_ill->ill_phyint->phyint_ifindex;
1270 ifindex = *(uint_t *)i1;
1273 if (!ip_xmit_ifindex_valid(ifindex, zoneid, B_FALSE, ipst))
1327 ixa->ixa_multicast_ifindex = ifindex;
1451 ixa->ixa_ifindex = ifindex; /* Send */
1453 connp->conn_incoming_ifindex = ifindex; /* Receive */
1454 connp->conn_bound_if = ifindex; /* getsockopt */
1504 uint_t ifindex; local
[all...]
H A Dip_ftable.c474 * nonzero - ifindex
479 uint_t ifindex = 0; local
504 ifindex = ill->ill_phyint->phyint_ifindex;
510 return (ifindex);
514 * Routine to find the route to a destination. If a ifindex is supplied
515 * it tries to match the route to the corresponding ipif for the ifindex
548 * to a specified dstination (which may be onlink or offlink). The ifindex may
549 * or may not be 0. A non-null ifindex indicates IP Filter has stipulated
573 ipfil_sendpkt(const struct sockaddr *dst_addr, mblk_t *mp, uint_t ifindex, argument
611 ixas.ixa_ifindex = ifindex;
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_conn.c136 sctp_conn_request(sctp_t *sctp, mblk_t *mp, uint_t ifindex, uint_t ip_hdr_len, argument
292 ixa->ixa_scopeid = ifindex;
293 econnp->conn_incoming_ifindex = ifindex;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dinput.c62 uint_t ifindex; local
79 ifindex = *(uint_t *)opt;
80 if ((ifp = ifwithindex(ifindex, _B_TRUE)) != NULL) {
H A Doutput.c111 int ifindex; local
151 * IP_PKTINFO overrides IP_MULTICAST_IF, so we don't set ifindex
154 ifindex = (type != OUT_MULTICAST && type != OUT_QUERY &&
179 res = sendtoif(rip_sock, buf, size, flags, &sin, ifindex);
194 * specific interface (if ifindex is non-zero) using IP_PKTINFO.
198 struct sockaddr_in *sinp, uint_t ifindex)
214 if (ifindex != 0) {
227 ipip->ipi_ifindex = ifindex;
197 sendtoif(int fd, const void *buf, uint_t bufsize, uint_t flags, struct sockaddr_in *sinp, uint_t ifindex) argument
H A Drtquery.c380 uint_t ifindex; local
476 ifindex = incoming_interface(&msg);
477 rip_input(&from, cc, ifindex);
552 rip_input(struct sockaddr_in *from, int size, uint_t ifindex) argument
570 char ifstring[IF_NAMESIZE + 3*sizeof (ifindex) + sizeof (" ()") + 1];
580 if (ifindex == 0) {
583 if (if_indextoname(ifindex, ifname) != NULL)
585 ifname, ifindex);
588 ifindex);
770 uint_t ifindex local
[all...]
H A Dif.c312 if_link(struct interface *ifp, uint32_t ifindex) argument
324 if (ifindex != 0) {
325 for (phyi = HFIRST(&ihash_tbl, &ifindex);
327 if (phyi->phyi_index == ifindex)
335 phyi->phyi_index = ifindex;
1046 uint32_t ifindex; local
1166 ifindex = 0;
1173 ifindex = lifrp->lifr_index;
1382 if ((ifp->int_phys == NULL && ifindex != 0) ||
1384 ifp->int_phys->phyi_index != ifindex) ||
[all...]
H A Drdisc.c1013 int ifindex = 0; local
1056 ifindex = (type != mcast && ifp->int_phys != NULL) ?
1078 if (0 > sendtoif(rdisc_sock, p, p_size, flags, &sin, ifindex)) {
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dutil.c315 update_default_route(uint32_t ifindex, int type, struct in_addr *gateway_nbo, argument
344 rtmsg.rm_ifp.sdl_index = ifindex;
358 add_default_route(uint32_t ifindex, struct in_addr *gateway_nbo) argument
360 return (update_default_route(ifindex, RTM_ADD, gateway_nbo, RTF_UP));
372 del_default_route(uint32_t ifindex, struct in_addr *gateway_nbo) argument
377 return (update_default_route(ifindex, RTM_DELETE, gateway_nbo, 0));
H A Dagent.c1369 uint16_t ifindex; local
1378 ifindex = msg.ifm.ifm_index;
1382 ifindex = msg.ifam.ifam_index;
1388 for (dsmp = lookup_smach_by_uindex(ifindex, NULL, isv6);
1399 dsmnext = lookup_smach_by_uindex(ifindex, dsmp, isv6);
1421 * IFF_DUPLICATE), and we can't trust the ifindex (it's only 16
H A Dinterface.c309 * note: This operates using the 'truncated' (16-bit) ifindex as seen by
311 * 32-bit ifindex from the ioctl interface.
315 lookup_pif_by_uindex(uint16_t ifindex, dhcp_pif_t *pif, boolean_t isv6) argument
323 if ((pif->pif_index & 0xffff) == ifindex)
773 "verify_lif: ifindex on %s changed: %u to %u",
790 dhcpmsg(MSG_DEBUG, "verify_lif: IPMP group ifindex "
1337 uint32_t ifindex; local
1391 ifindex = pif->pif_under_ipmp ? pif->pif_grindex : pif->pif_index;
1392 if (setsockopt(lif->lif_sock_ip_fd, IPPROTO_IP, IP_BOUND_IF, &ifindex,
H A Dstates.c556 lookup_smach_by_uindex(uint16_t ifindex, dhcp_smach_t *dsmp, boolean_t isv6) argument
583 pif = lookup_pif_by_uindex(ifindex, pif, isv6);
1176 uint32_t ifindex; local
1179 ifindex = dsmp->dsm_lif->lif_pif->pif_index;
1181 if (del_default_route(ifindex,
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_prop.c451 uint_t ifindex = 0; local
471 if ((ifindex = if_nametoindex(pval)) == 0)
473 lifr.lifr_index = ifindex;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtables.c76 phyint_lookup_on_index(uint_t ifindex) argument
81 logmsg(LOG_DEBUG, "phyint_lookup_on_index(%d)\n", ifindex);
84 if (pi->pi_index == ifindex)

Completed in 97 milliseconds

12