HomeSort by: relevance | last modified time | path
    Searched refs:ifindex (Results 1 - 25 of 32) sorted by relevancy

1 2

  /src/lib/libc/net/
if_indextoname.c 60 * char *if_indextoname(unsigned int ifindex, char *ifname);
74 if_indextoname(unsigned int ifindex, char *ifname)
85 ifindex == ((struct sockaddr_dl*)
getnameinfo.c 502 unsigned int ifindex; local in function:ip6_sa2str
509 ifindex = (unsigned int)sa6->sin6_scope_id;
525 char *p = if_indextoname(ifindex, buf);
  /src/usr.sbin/ifmcstat/
ifmcstat.c 121 print_ether_mcast(u_short ifindex)
144 sdl_oids[2] = ifindex;
155 ems_oids[3] = ifindex;
180 print_inet6_mcast(u_short ifindex, const char *ifname)
197 mcast_oids[3] = ifindex;
  /src/usr.sbin/mld6query/
mld6.c 62 static u_short ifindex; variable in typeref:typename:u_short
104 ifindex = (u_short)if_nametoindex(argv[0]);
105 if (ifindex == 0)
118 mreq.ipv6mr_interface = ifindex;
131 make_msg(ifindex, &maddr, type);
293 mreq.ipv6mr_interface = ifindex;
  /src/tests/net/can/
t_can.c 105 int ifindex; local in function:ATF_TC_BODY
115 ifindex = can_bind(s, ifname);
159 ATF_CHECK_MSG(sa.can_ifindex == ifindex,
160 "recvfrom provided wrong ifindex %d (!= %d)",
161 sa.can_ifindex, ifindex);
475 int ifindex; local in function:ATF_TC_BODY
499 ifindex = can_bind(s2, ifname);
520 ATF_CHECK_MSG(sa.can_ifindex == ifindex,
521 "recvfrom provided wrong ifindex %d (!= %d)",
522 sa.can_ifindex, ifindex);
611 int ifindex; local in function:ATF_TC_BODY
    [all...]
  /src/sys/netcan/
can_pcb.c 56 #define CANPCBHASH_BIND(table, ifindex) \
58 (ifindex) & (table)->canpt_bindhash]
59 #define CANPCBHASH_CONNECT(table, ifindex) \
61 (ifindex) & (table)->canpt_bindhash]
359 int ifindex = canp->canp_ifp ? canp->canp_ifp->if_index : 0; local in function:can_pcbstate
368 ifindex), canp, canp_hash);
372 ifindex), canp, canp_hash);
  /src/usr.sbin/rtadvd/
if.c 135 if_getflags(unsigned int ifindex, int oifflags)
146 if_indextoname(ifindex, ifr.ifr_name);
197 get_next_msg(char *buf, char *lim, unsigned int ifindex, size_t *lenp,
237 if (ifindex && SDL(gw)->sdl_index != ifindex)
264 if (ifindex && ifam->ifam_index != ifindex)
rtadvd.c 463 int n, type, ifindex = 0, plen; local in function:rtmsg_input
526 ifindex = get_rtm_ifindex(next);
530 ifindex = get_ifam_ifindex(next);
534 ifindex = get_ifan_ifindex(next);
539 if_indextoname(ifindex, ifname));
557 ifindex = get_ifm_ifindex(next);
564 if_indextoname(ifindex, ifname));
569 if ((rai = if_indextorainfo(ifindex)) == NULL) {
575 if_indextoname(ifindex, ifname),
576 ifindex);
727 int ifindex = 0; local in function:rtadvd_input
    [all...]
rtadvd.h 149 uint16_t ifindex; member in struct:rainfo
config.c 242 tmp->ifindex = tmp->sdl->sdl_index;
244 tmp->ifindex = if_nametoindex(intface);
245 if (tmp->ifindex == 0) {
252 tmp->ifflags = if_getflags(tmp->ifindex, 0);
721 if (rai->ifindex == tmp->ifindex) {
969 add_prefix(struct rainfo *rai, int ifindex, const struct in6_addr *addr,
  /src/sys/compat/netinet6/
nd6.h 72 u_long ifindex; member in struct:in6_ndifreq90
  /src/usr.sbin/wlanctl/
wlanctl.c 194 u_int i, ifindex; local in function:dump_nodes
211 ifindex = 0;
212 else if ((ifindex = if_nametoindex(ifname_arg)) == 0) {
224 vname[IEEE80211_SYSCTL_NODENAME_IF] = ifindex;
  /src/usr.bin/netstat/
if.c 213 int ifindex = 0; local in function:intpr_sysctl
257 ifindex = sdl->sdl_index;
314 print_addr(ifindex, rti_info[rtax], rti_info, ifd,
425 mc_print(const int ifindex, const size_t ias, const char *oid, int *mcast_oids,
444 if (mcast_oids[3] == ifindex)
446 mcast_oids[3] = ifindex;
489 mc6_print(const int ifindex)
493 mc_print(ifindex, sizeof(struct in6_addr), "net.inet6.multicast",
505 mc4_print(const int ifindex)
509 mc_print(ifindex, sizeof(struct in_addr), "net.inet.multicast"
    [all...]
  /src/sys/dev/pci/cxgb/
cxgb_l2t.c 81 arp_hash(u32 key, int ifindex, const struct l2t_data *d)
83 return jhash_2words(key, ifindex, 0) & (d->nentries - 1);
280 int hash = arp_hash(e->addr, e->ifindex, d);
356 if (e->addr == addr && e->ifindex == ifidx &&
372 e->ifindex = ifidx;
438 if (e->addr == addr && e->ifindex == ifidx) {
481 int ifidx = neigh->dev->ifindex;
486 if (e->addr == addr && e->ifindex == ifidx) {
cxgb_l2t.h 61 int ifindex; /* neighbor's net_device's ifindex */ member in struct:l2t_entry
  /src/usr.sbin/rpcbind/
util.c 306 unsigned int ifindex; local in function:network_init
362 ifindex = if_nametoindex(ifap->ifa_name);
363 if (ifindex == mreq6.ipv6mr_interface)
368 mreq6.ipv6mr_interface = ifindex;
  /src/sys/net80211/
ieee80211_netbsd.c 336 struct ieee80211_node_sysctl *ns, int ifindex,
341 ns->ns_ifindex = ifindex;
384 u_int cur_ifindex, ifcount, ifindex, last_ifindex, op, arg, hdr_type; local in function:ieee80211_sysctl_node
395 /* ifindex.op.arg.header-type.eltsize.nelt */
398 ifindex = name[IEEE80211_SYSCTL_NODENAME_IF];
417 for (ni = ieee80211_node_walkfirst(&nw, ifindex); ni != NULL;
  /src/sys/net/
link_proto.c 460 sockaddr_dl_alloc(uint16_t ifindex, uint8_t type,
473 if (sockaddr_dl_init(satosdl(sa), len, ifindex, type, name, namelen,
483 sockaddr_dl_init(struct sockaddr_dl *sdl, socklen_t socklen, uint16_t ifindex,
501 sdl->sdl_index = ifindex;
  /src/dist/pf/sbin/pfctl/
pfctl_parser.h 119 u_int32_t ifindex; /* link-local IPv6 addrs */ member in struct:node_host
pfctl_parser.c 1171 n->ifindex = 0;
1202 n->ifindex = ((struct sockaddr_in6 *)
1334 if ((flags & PFI_AFLAG_NETWORK) && p->ifindex > 0)
1374 n->ifindex = p->ifindex;
1553 h->ifindex =
1619 n->ifindex =
parse.y 3517 !$5.src.host->ifindex)
3520 !$5.dst.host->ifindex)
3554 if (!r.af && ! $9->host->ifindex)
4693 (src_host->ifindex && dst_host->ifindex &&
4694 src_host->ifindex != dst_host->ifindex) ||
4695 (src_host->ifindex && *interface->ifname &&
4696 src_host->ifindex != if_nametoindex(interface->ifname)) ||
4697 (dst_host->ifindex && *interface->ifname &
    [all...]
  /src/usr.sbin/altq/libaltq/
altq_qop.h 78 u_int ifindex; /* interface index */ member in struct:ifinfo
quip_server.c 461 ifinfo->ifindex, tmp);
  /src/sys/netinet/
ip_output.c 1693 int ifindex; local in function:ip_multicast_if
1700 ifindex = ntohl(a->s_addr) & 0xffffff;
1701 ifp = if_byindex(ifindex);
1705 *ifindexp = ifindex;
1963 int ifindex, error = 0; local in function:ip_setmoptions
2009 ifp = ip_multicast_if(&addr, &ifindex);
2017 if (ifindex)
  /src/usr.sbin/arp/
arp.c 778 getifname(u_int16_t ifindex, char *ifname, size_t l)
797 if (sdl && sdl->sdl_index == ifindex) {

Completed in 25 milliseconds

1 2