Searched refs:ifindex (Results 1 - 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
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 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
/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 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,
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,
/illumos-gate/usr/src/uts/common/inet/ip/
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) argument
1152 ill = ill_lookup_on_ifindex(ifindex, isv6, ipst);
1201 ip_leave_allmulti(uint_t ifindex, boolean_t isv6, ip_stack_t *ipst) argument
1206 ill = ill_lookup_on_ifindex(ifindex, isv6, ipst);
1721 * Lookup an ill based on the group, ifindex, ifaddr, and zoneid.
1728 ill_mcast_lookup(const in6_addr_t *group, ipaddr_t ifaddr, uint_t ifindex, argument
1737 if (ifindex !
1791 ip_opt_check(conn_t *connp, const in6_addr_t *v6group, const in6_addr_t *v6src, ipaddr_t ifaddr, uint_t ifindex, ill_t **illpp) argument
1844 uint_t ifindex; local
1935 uint_t ifindex; local
2454 ip_opt_add_group(conn_t *connp, boolean_t checkonly, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, mcast_record_t fmode, const in6_addr_t *v6src) argument
2518 ip_opt_delete_group_excl(conn_t *connp, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, mcast_record_t fmode, const in6_addr_t *v6src) argument
2654 ip_opt_delete_group(conn_t *connp, boolean_t checkonly, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, mcast_record_t fmode, const in6_addr_t *v6src) argument
2696 ilg_add(conn_t *connp, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex, ill_t *ill, mcast_record_t fmode, const in6_addr_t *v6src) argument
3013 ilg_lookup(conn_t *connp, const in6_addr_t *v6group, ipaddr_t ifaddr, uint_t ifindex) argument
3175 uint_t ifindex; local
[all...]
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 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 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 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/lib/libsocket/inet/
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) {
H A Dinterface_id.c108 if_indextoname(uint32_t ifindex, char *ifname) argument
125 if (ifindex == 0) {
195 if (index == 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/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/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.xcl96 msgid "ifindex"
/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/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);
/illumos-gate/usr/src/uts/common/inet/ipnet/
H A Dipnet.c1074 uint64_t ifindex = ipnet->ipnet_if->if_index; local
1082 * If the packet's ifindex matches ours, or the packet's group ifindex
1084 * observing on the group ifindex matches all ifindexes in the group.)
1086 obsif = (ntohl(hdr->hpo_ifindex) == ifindex ||
1087 ntohl(hdr->hpo_grifindex) == ifindex);
1461 uint64_t ifindex; local
1466 ifindex = ipne->ipne_ifindex;
1468 (void) net_getlifflags(ipne->ipne_protocol, ifindex, 0, &ifflags);
1470 if ((ipnetif = ipnetif_getby_index(ifindex, ip
1492 ipnet_unplumb_ev(uint64_t ifindex, ipnet_stack_t *ips, boolean_t isv6) argument
1516 ipnet_lifup_ev(uint64_t ifindex, uint64_t lifindex, net_handle_t nd, ipnet_stack_t *ips, boolean_t isv6) argument
1537 ipnet_lifdown_ev(uint64_t ifindex, uint64_t lifindex, ipnet_stack_t *ips, boolean_t isv6) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.c1551 uint_t ifindex; local
1594 ifindex = 0;
1616 ifindex = sin6->sin6_scope_id;
1619 nsp = sctp_saddr_lookup(sctp, &addr, ifindex);
1693 ifindex = 0;
1703 ifindex = sin6->sin6_scope_id;
1706 nsp = sctp_saddr_lookup(sctp, &addr, ifindex);
1730 uint_t ifindex = 0; local
1750 ifindex = sin6->sin6_scope_id;
1754 sp = sctp_saddr_lookup(sctp, &addr, ifindex);
[all...]
H A Dsctp_addr.c174 boolean_t check_zid, uint_t ifindex, uint_t seqid, boolean_t usable,
195 (ifindex == 0 || ifindex ==
329 uint_t ifindex = 0; local
363 ifindex = sin6->sin6_scope_id;
389 ifindex, 0, B_TRUE, sctp->sctp_sctps);
1304 int ifindex = 0; local
1326 ifindex = sin6->sin6_scope_id;
1331 ifindex, 0, B_TRUE, sctp->sctp_sctps);
1351 sctp_saddr_lookup(sctp_t *sctp, in6_addr_t *addr, uint_t ifindex) argument
173 sctp_lookup_ipif_addr(in6_addr_t *addr, boolean_t refhold, zoneid_t zoneid, boolean_t check_zid, uint_t ifindex, uint_t seqid, boolean_t usable, sctp_stack_t *sctps) argument
1387 sctp_saddr_add_addr(sctp_t *sctp, in6_addr_t *addr, uint_t ifindex) argument
[all...]
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;

Completed in 139 milliseconds

123