Home
last modified time | relevance | path

Searched refs:ifindex (Results 1 – 25 of 53) sorted by relevance

123

/titanic_44/usr/src/uts/common/inet/ip/
H A Dip_dce.c381 uint_t ifindex; in dce_lookup_pkt() local
390 ifindex = 0; in dce_lookup_pkt()
392 ifindex = ixa->ixa_nce->nce_common->ncec_ill-> in dce_lookup_pkt()
395 return (dce_lookup_v6(&final_dst, ifindex, ixa->ixa_ipst, in dce_lookup_pkt()
445 dce_lookup_v6(const in6_addr_t *dst, uint_t ifindex, ip_stack_t *ipst, in dce_lookup_v6() argument
461 dce->dce_ifindex == ifindex) { in dce_lookup_v6()
554 dce_lookup_and_add_v6(const in6_addr_t *dst, uint_t ifindex, ip_stack_t *ipst) in dce_lookup_and_add_v6() argument
561 ASSERT(!(IN6_IS_ADDR_LINKSCOPE(dst)) || ifindex != 0); in dce_lookup_and_add_v6()
574 dce->dce_ifindex == ifindex) { in dce_lookup_and_add_v6()
594 dce->dce_ifindex = ifindex; in dce_lookup_and_add_v6()
[all …]
H A Dip_multi.c84 uint_t ifindex);
87 ipaddr_t ifaddr, uint_t ifindex, ill_t *ill, mcast_record_t fmode,
93 const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex,
1146 ip_join_allmulti(uint_t ifindex, boolean_t isv6, ip_stack_t *ipst) in ip_join_allmulti() argument
1152 ill = ill_lookup_on_ifindex(ifindex, isv6, ipst); in ip_join_allmulti()
1201 ip_leave_allmulti(uint_t ifindex, boolean_t isv6, ip_stack_t *ipst) in ip_leave_allmulti() argument
1206 ill = ill_lookup_on_ifindex(ifindex, isv6, ipst); in ip_leave_allmulti()
1728 ill_mcast_lookup(const in6_addr_t *group, ipaddr_t ifaddr, uint_t ifindex, in ill_mcast_lookup() argument
1737 if (ifindex != 0) { in ill_mcast_lookup()
1738 ill = ill_lookup_on_ifindex_zoneid(ifindex, zoneid, in ill_mcast_lookup()
[all …]
H A Dconn_opt.c1183 uint_t ifindex; in conn_opt_set_ip() local
1201 ifindex = 0; in conn_opt_set_ip()
1212 ifindex = ipif->ipif_ill->ill_phyint->phyint_ifindex; in conn_opt_set_ip()
1270 ifindex = *(uint_t *)i1; in conn_opt_set_ip()
1273 if (!ip_xmit_ifindex_valid(ifindex, zoneid, B_FALSE, ipst)) in conn_opt_set_ip()
1327 ixa->ixa_multicast_ifindex = ifindex; in conn_opt_set_ip()
1451 ixa->ixa_ifindex = ifindex; /* Send */ in conn_opt_set_ip()
1453 connp->conn_incoming_ifindex = ifindex; /* Receive */ in conn_opt_set_ip()
1454 connp->conn_bound_if = ifindex; /* getsockopt */ in conn_opt_set_ip()
1504 uint_t ifindex; in conn_opt_set_ipv6() local
[all …]
H A Dip6_output.c120 uint_t ifindex; in ip_output_simple_v6() local
227 ifindex = 0; in ip_output_simple_v6()
229 ifindex = nce->nce_common->ncec_ill->ill_phyint->phyint_ifindex; in ip_output_simple_v6()
231 dce = dce_lookup_v6(&dst, ifindex, ipst, NULL); in ip_output_simple_v6()
H A Dip_ftable.c479 uint_t ifindex = 0; in ifindex_lookup() local
504 ifindex = ill->ill_phyint->phyint_ifindex; in ifindex_lookup()
510 return (ifindex); in ifindex_lookup()
573 ipfil_sendpkt(const struct sockaddr *dst_addr, mblk_t *mp, uint_t ifindex, in ipfil_sendpkt() argument
611 ixas.ixa_ifindex = ifindex; in ipfil_sendpkt()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Drtquery.c380 uint_t ifindex; in query_loop() local
476 ifindex = incoming_interface(&msg); in query_loop()
477 rip_input(&from, cc, ifindex); in query_loop()
552 rip_input(struct sockaddr_in *from, int size, uint_t ifindex) in rip_input() argument
570 char ifstring[IF_NAMESIZE + 3*sizeof (ifindex) + sizeof (" ()") + 1]; in rip_input()
580 if (ifindex == 0) { in rip_input()
583 if (if_indextoname(ifindex, ifname) != NULL) in rip_input()
585 ifname, ifindex); in rip_input()
588 ifindex); in rip_input()
770 uint_t ifindex = 0; in incoming_interface() local
[all …]
H A Doutput.c111 int ifindex; in output() local
154 ifindex = (type != OUT_MULTICAST && type != OUT_QUERY && in output()
179 res = sendtoif(rip_sock, buf, size, flags, &sin, ifindex); in output()
198 struct sockaddr_in *sinp, uint_t ifindex) in sendtoif() argument
214 if (ifindex != 0) { in sendtoif()
227 ipip->ipi_ifindex = ifindex; in sendtoif()
H A Dif.c312 if_link(struct interface *ifp, uint32_t ifindex) in if_link() argument
324 if (ifindex != 0) { in if_link()
325 for (phyi = HFIRST(&ihash_tbl, &ifindex); in if_link()
327 if (phyi->phyi_index == ifindex) in if_link()
335 phyi->phyi_index = ifindex; in if_link()
1046 uint32_t ifindex; in ifscan() local
1166 ifindex = 0; in ifscan()
1173 ifindex = lifrp->lifr_index; in ifscan()
1382 if ((ifp->int_phys == NULL && ifindex != 0) || in ifscan()
1384 ifp->int_phys->phyi_index != ifindex) || in ifscan()
[all …]
/titanic_44/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_l2t.c278 arp_hash(const uint32_t *key, int ifindex) in arp_hash() argument
280 return (jhash_2words(*key, ifindex, 0) & L2T_HASH_MASK); in arp_hash()
284 ipv6_hash(const uint32_t *key, int ifindex) in ipv6_hash() argument
288 return (L2T_SZ_HALF + (jhash_2words(xor, ifindex, 0) & L2T_HASH_MASK)); in ipv6_hash()
292 addr_hash(const uint32_t *addr, int addr_len, int ifindex) in addr_hash() argument
294 return (addr_len == 4 ? arp_hash(addr, ifindex) : in addr_hash()
295 ipv6_hash(addr, ifindex)); in addr_hash()
379 ip2m.ip2mac_ifindex = e->ifindex; in t4_l2t_send()
504 e->ifindex = index; in t4_l2t_get()
H A Dt4_l2t.h49 int ifindex; /* interface index */ member
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dutil.c315 update_default_route(uint32_t ifindex, int type, struct in_addr *gateway_nbo, in update_default_route() argument
344 rtmsg.rm_ifp.sdl_index = ifindex; in update_default_route()
358 add_default_route(uint32_t ifindex, struct in_addr *gateway_nbo) in add_default_route() argument
360 return (update_default_route(ifindex, RTM_ADD, gateway_nbo, RTF_UP)); in add_default_route()
372 del_default_route(uint32_t ifindex, struct in_addr *gateway_nbo) in del_default_route() argument
377 return (update_default_route(ifindex, RTM_DELETE, gateway_nbo, 0)); in del_default_route()
H A Dagent.c1369 uint16_t ifindex; in rtsock_event() local
1378 ifindex = msg.ifm.ifm_index; in rtsock_event()
1382 ifindex = msg.ifam.ifam_index; in rtsock_event()
1388 for (dsmp = lookup_smach_by_uindex(ifindex, NULL, isv6); in rtsock_event()
1399 dsmnext = lookup_smach_by_uindex(ifindex, dsmp, isv6); in rtsock_event()
H A Dstates.c556 lookup_smach_by_uindex(uint16_t ifindex, dhcp_smach_t *dsmp, boolean_t isv6) in lookup_smach_by_uindex() argument
583 pif = lookup_pif_by_uindex(ifindex, pif, isv6); in lookup_smach_by_uindex()
1176 uint32_t ifindex; in remove_default_routes() local
1179 ifindex = dsmp->dsm_lif->lif_pif->pif_index; in remove_default_routes()
1181 if (del_default_route(ifindex, in remove_default_routes()
H A Dinterface.c315 lookup_pif_by_uindex(uint16_t ifindex, dhcp_pif_t *pif, boolean_t isv6) in lookup_pif_by_uindex() argument
323 if ((pif->pif_index & 0xffff) == ifindex) in lookup_pif_by_uindex()
1337 uint32_t ifindex; in open_ip_lif() local
1391 ifindex = pif->pif_under_ipmp ? pif->pif_grindex : pif->pif_index; in open_ip_lif()
1392 if (setsockopt(lif->lif_sock_ip_fd, IPPROTO_IP, IP_BOUND_IF, &ifindex, in open_ip_lif()
H A Drequest.c1009 if (pif->pif_index == plp->ifindex || in dhcp_acknak_global()
1010 pif->pif_under_ipmp && pif->pif_grindex == plp->ifindex) in dhcp_acknak_global()
1017 pname, plp->ifindex); in dhcp_acknak_global()
/titanic_44/usr/src/lib/libsocket/inet/
H A Dgetnameinfo.c316 uint32_t ifindex; in getzonestr() local
329 ifindex = sa->sin6_scope_id; in getzonestr()
331 if ((retstr = if_indextoname(ifindex, zonestr)) != NULL) { in getzonestr()
342 ifindex)) < 0) { in getzonestr()
H A Dinterface_id.c108 if_indextoname(uint32_t ifindex, char *ifname) in if_indextoname() argument
125 if (ifindex == 0) { in if_indextoname()
195 if (index == ifindex) { in if_indextoname()
/titanic_44/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) in setup_listen_sock() argument
400 if (setsockopt(sock, IPPROTO_IPV6, IPV6_BOUND_IF, (char *)&ifindex, in setup_listen_sock()
401 sizeof (ifindex)) < 0) { in setup_listen_sock()
430 allrouters_mreq.ipv6mr_interface = ifindex; in setup_listen_sock()
/titanic_44/usr/src/uts/common/inet/ipnet/
H A Dipnet.c1070 uint64_t ifindex = ipnet->ipnet_if->if_index; in ipnet_accept() local
1082 obsif = (ntohl(hdr->hpo_ifindex) == ifindex || in ipnet_accept()
1083 ntohl(hdr->hpo_grifindex) == ifindex); in ipnet_accept()
1457 uint64_t ifindex; in ipnet_plumb_ev() local
1462 ifindex = ipne->ipne_ifindex; in ipnet_plumb_ev()
1464 (void) net_getlifflags(ipne->ipne_protocol, ifindex, 0, &ifflags); in ipnet_plumb_ev()
1466 if ((ipnetif = ipnetif_getby_index(ifindex, ips)) == NULL) { in ipnet_plumb_ev()
1467 ipnetif = ipnetif_create(ifname, ifindex, ips, ifflags); in ipnet_plumb_ev()
1476 if (ip_join_allmulti(ifindex, isv6, in ipnet_plumb_ev()
1488 ipnet_unplumb_ev(uint64_t ifindex, ipnet_stack_t *ips, boolean_t isv6) in ipnet_unplumb_ev() argument
[all …]
/titanic_44/usr/src/lib/libresolv2/common/irs/
H A Dgetnameinfo.c288 unsigned int ifindex = (unsigned int)sa6->sin6_scope_id; in ip6_sa2str() local
317 char *p = if_indextoname(ifindex, buf); in ip6_sa2str()
/titanic_44/usr/src/uts/common/inet/sctp/
H A Dsctp_addr.c174 boolean_t check_zid, uint_t ifindex, uint_t seqid, boolean_t usable, in sctp_lookup_ipif_addr() argument
195 (ifindex == 0 || ifindex == in sctp_lookup_ipif_addr()
329 uint_t ifindex = 0; in sctp_valid_addr_list() local
363 ifindex = sin6->sin6_scope_id; in sctp_valid_addr_list()
389 ifindex, 0, B_TRUE, sctp->sctp_sctps); in sctp_valid_addr_list()
1304 int ifindex = 0; in sctp_del_saddr_list() local
1326 ifindex = sin6->sin6_scope_id; in sctp_del_saddr_list()
1331 ifindex, 0, B_TRUE, sctp->sctp_sctps); in sctp_del_saddr_list()
1351 sctp_saddr_lookup(sctp_t *sctp, in6_addr_t *addr, uint_t ifindex) in sctp_saddr_lookup() argument
1372 (ifindex == 0 || in sctp_saddr_lookup()
[all …]
H A Dsctp_asconf.c1551 uint_t ifindex; in sctp_del_ip() local
1594 ifindex = 0; in sctp_del_ip()
1616 ifindex = sin6->sin6_scope_id; in sctp_del_ip()
1619 nsp = sctp_saddr_lookup(sctp, &addr, ifindex); in sctp_del_ip()
1693 ifindex = 0; in sctp_del_ip()
1703 ifindex = sin6->sin6_scope_id; in sctp_del_ip()
1706 nsp = sctp_saddr_lookup(sctp, &addr, ifindex); in sctp_del_ip()
1730 uint_t ifindex = 0; in sctp_set_peerprim() local
1750 ifindex = sin6->sin6_scope_id; in sctp_set_peerprim()
1754 sp = sctp_saddr_lookup(sctp, &addr, ifindex); in sctp_set_peerprim()
H A Dsctp_conn.c136 sctp_conn_request(sctp_t *sctp, mblk_t *mp, uint_t ifindex, uint_t ip_hdr_len, in sctp_conn_request() argument
292 ixa->ixa_scopeid = ifindex; in sctp_conn_request()
293 econnp->conn_incoming_ifindex = ifindex; in sctp_conn_request()
/titanic_44/usr/src/common/net/dhcp/
H A Ddhcp_impl.h133 uint_t ifindex; /* received ifindex (if any) */ member
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.xcl96 msgid "ifindex"

123