Searched refs:ifa (Results 1 - 25 of 142) sorted by relevance

123456

/freebsd-head/lib/libc/net/
H A Dif_nameindex.c84 struct ifaddrs *ifaddrs, *ifa; local
99 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
100 if (ifa->ifa_addr &&
101 ifa->ifa_addr->sa_family == AF_LINK) {
102 nbytes += strlen(ifa->ifa_name) + 1;
124 for (ifa = ifaddrs; ifa !
[all...]
H A Dif_indextoname.c66 struct ifaddrs *ifaddrs, *ifa; local
72 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
73 if (ifa->ifa_addr &&
74 ifa->ifa_addr->sa_family == AF_LINK &&
75 ifindex == LLINDEX((struct sockaddr_dl*)ifa->ifa_addr))
79 if (ifa == NULL) {
84 strncpy(ifname, ifa
[all...]
H A Dif_nametoindex.c70 struct ifaddrs *ifaddrs, *ifa; local
89 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
90 if (ifa->ifa_addr &&
91 ifa->ifa_addr->sa_family == AF_LINK &&
92 strcmp(ifa->ifa_name, ifname) == 0) {
93 ni = LLINDEX((struct sockaddr_dl*)ifa->ifa_addr);
H A Dgetifmaddrs.c68 struct ifmaddrs *ifa, *ift; local
123 ifa = (struct ifmaddrs *)(void *)data;
126 memset(ifa, 0, sizeof(struct ifmaddrs) * icnt);
127 ift = ifa;
183 if (ift > ifa) {
186 *pif = ifa;
189 free(ifa);
H A Dsourcefilter.c86 struct ifaddrs *ifa; local
104 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
105 psu = (sockunion_t *)ifa->ifa_addr;
108 ifname = ifa->ifa_name;
120 for (ifa = ifaddrs; ifa != NULL; ifa
[all...]
/freebsd-head/lib/libifconfig/
H A Dlibifconfig_inet.c58 const char *name __unused, struct ifaddrs *ifa,
64 if (ifa->ifa_addr == NULL) {
67 addr->sin = (struct sockaddr_in *)ifa->ifa_addr;
71 if (ifa->ifa_flags & IFF_POINTOPOINT) {
72 if (ifa->ifa_dstaddr) {
73 addr->dst = (struct sockaddr_in *)ifa->ifa_dstaddr;
80 if (ifa->ifa_netmask) {
81 addr->netmask = (struct sockaddr_in *)ifa->ifa_netmask;
88 if (ifa->ifa_flags & IFF_BROADCAST) {
89 addr->broadcast = (struct sockaddr_in *)ifa
57 ifconfig_inet_get_addrinfo(ifconfig_handle_t *h __unused, const char *name __unused, struct ifaddrs *ifa, struct ifconfig_inet_addr *addr) argument
[all...]
H A Dlibifconfig_inet6.c64 const char *name, struct ifaddrs *ifa, struct ifconfig_inet6_addr *addr)
72 addr->sin6 = (struct sockaddr_in6 *)ifa->ifa_addr;
75 if (ifa->ifa_flags & IFF_POINTOPOINT) {
76 addr->dstin6 = (struct sockaddr_in6 *)ifa->ifa_dstaddr;
80 netmask = (struct sockaddr_in6 *)ifa->ifa_netmask;
100 if (ifa->ifa_data && ifa->ifa_data) {
101 addr->vhid = ((struct if_data *)ifa->ifa_data)->ifi_vhid;
63 ifconfig_inet6_get_addrinfo(ifconfig_handle_t *h, const char *name, struct ifaddrs *ifa, struct ifconfig_inet6_addr *addr) argument
/freebsd-head/contrib/libpcap/
H A Dfad-getad.c150 struct ifaddrs *ifap, *ifa; local
175 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
187 p = strchr(ifa->ifa_name, ':');
208 if (!(*check_usable)(ifa->ifa_name)) {
222 if (ifa->ifa_addr != NULL) {
223 addr = ifa->ifa_addr;
225 netmask = ifa
[all...]
H A Dpcap-snf.c351 struct snf_ifaddrs *ifaddrs, *ifa; local
380 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->snf_ifa_next) {
413 merge ? 1 << ifa->snf_ifa_portnum : ifa->snf_ifa_portnum);
418 allports |= 1 << ifa->snf_ifa_portnum;
421 * with the name ifa->snf_ifa_name.
423 dev = find_dev(devlistp, ifa
517 struct snf_ifaddrs *ifaddrs, *ifa; local
[all...]
/freebsd-head/contrib/bsnmp/snmp_mibII/
H A DmibII_ipaddr.c73 struct mibifa *ifa; local
92 if ((ifa = mib_create_ifa(upd->ifindex, upd->addr, upd->mask, bcast))
105 modify(struct update *upd, struct mibifa *ifa) argument
109 if ((ifp = mib_find_if(ifa->ifindex)) == NULL)
111 if ((upd->set & UPD_IFINDEX) && upd->ifindex != ifa->ifindex)
114 upd->rb_mask = ifa->inmask;
115 upd->rb_bcast = ifa->inbcast;
116 if (((upd->set & UPD_MASK) && upd->mask.s_addr != ifa->inmask.s_addr) ||
119 ifa->inmask = upd->mask;
121 ifa
145 destroy(struct snmp_context *ctx __unused, struct update *upd, struct mibifa *ifa) argument
162 struct mibifa *ifa; local
224 struct mibifa *ifa; local
[all...]
H A DmibII.c593 struct mibifa *ifa; local
595 TAILQ_FOREACH(ifa, &mibifa_list, link)
596 if (ifp->index == ifa->ifindex)
597 return (ifa);
604 struct mibifa *ifa; local
606 ifa = ifa0;
607 while ((ifa = TAILQ_NEXT(ifa, link)) != NULL)
608 if (ifa->ifindex == ifa0->ifindex)
609 return (ifa);
619 struct mibifa *ifa; local
649 destroy_ifa(struct mibifa *ifa) argument
742 struct mibifa *ifa, *ifa1; local
994 struct mibifa *ifa; local
1046 struct mibifa *ifa; local
1309 struct mibifa *ifa, *ifa1; local
1482 verify_ifa(const char *name, struct mibifa *ifa) argument
1515 mib_undestroy_ifa(struct mibifa *ifa) argument
1534 mib_destroy_ifa(struct mibifa *ifa) argument
1558 mib_unmodify_ifa(struct mibifa *ifa) argument
1579 mib_modify_ifa(struct mibifa *ifa) argument
1609 mib_uncreate_ifa(struct mibifa *ifa) argument
1635 struct mibifa *ifa; local
1694 struct mibifa *ifa; local
[all...]
/freebsd-head/sys/netinet/
H A Dsctp_bsd_addr.c67 MALLOC_DEFINE(SCTP_M_IFA, "sctp_ifa", "sctp ifa struct");
120 sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa) argument
124 ifa6 = (struct in6_ifaddr *)ifa->ifa;
125 ifa->flags = ifa6->ia6_flags;
127 if (ifa->flags &
129 ifa->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE;
131 ifa->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE;
134 ifa->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE;
136 if (ifa
203 struct ifaddr *ifa; local
292 sctp_addr_change(struct ifaddr *ifa, int cmd) argument
361 sctp_addr_change_event_handler(void *arg __unused, struct ifaddr *ifa, int cmd) argument
369 struct ifaddr *ifa; local
[all...]
H A Dsctp_bsd_addr.h52 void sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa);
62 void sctp_addr_change(struct ifaddr *ifa, int cmd);
H A Dip_carp.c164 * pointer to the softc of its vhid, ifa->ifa_carp. That could be either
286 #define IFNET_FOREACH_IFA(ifp, ifa) \
287 CK_STAILQ_FOREACH((ifa), &(ifp)->if_addrhead, ifa_link) \
288 if ((ifa)->ifa_carp != NULL)
290 #define CARP_FOREACH_IFA(sc, ifa) \
294 ((ifa) = sc->sc_ifas[_i]) != NULL; \
339 struct ifaddr *ifa; local
368 CARP_FOREACH_IFA(sc, ifa) {
369 in.s_addr = ifatoia(ifa)->ia_addr.sin_addr.s_addr;
370 if (ifa
612 carp_source_is_self(struct mbuf *m, struct ifaddr *ifa, sa_family_t af) argument
646 struct ifaddr *ifa, *match; local
885 struct ifaddr *ifa, *best; local
907 struct ifaddr *ifa; local
1046 struct ifaddr *ifa; local
1053 carp_ifa_addroute(struct ifaddr *ifa) argument
1077 struct ifaddr *ifa; local
1084 carp_ifa_delroute(struct ifaddr *ifa) argument
1106 carp_master(struct ifaddr *ifa) argument
1122 struct ifaddr *ifa; local
1134 carp_iamatch(struct ifaddr *ifa, uint8_t **enaddr) argument
1152 struct ifaddr *ifa; local
1173 struct ifaddr *ifa; local
1196 struct ifaddr *ifa; local
1875 carp_get_vhid(struct ifaddr *ifa) argument
1885 carp_attach(struct ifaddr *ifa, int vhid) argument
1961 carp_detach(struct ifaddr *ifa, bool keep_cif) argument
[all...]
H A Din_rmx.c156 struct ifaddr *ifa; member in struct:in_ifadown_arg
165 if (rt->rt_ifa != ap->ifa)
175 in_ifadown(struct ifaddr *ifa, int delete) argument
179 KASSERT(ifa->ifa_addr->sa_family == AF_INET,
182 arg.ifa = ifa;
186 ifa->ifa_flags &= ~IFA_ROUTE; /* XXXlocking? */
H A Dsctp_asconf.c1222 sctp_asconf_queue_mgmt(struct sctp_tcb *stcb, struct sctp_ifa *ifa, argument
1230 if (sctp_asconf_addr_match(aa, &ifa->address.sa) == 0)
1247 /* remove the ifa from the restricted list */
1248 sctp_del_local_addr_restricted(stcb, ifa);
1258 /* remove the aa->ifa from the restricted list */
1259 sctp_del_local_addr_restricted(stcb, aa->ifa);
1279 aa->ifa = ifa;
1280 atomic_add_int(&ifa->refcount, 1);
1282 switch (ifa
1348 sctp_asconf_queue_add(struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type) argument
1448 struct sctp_ifa *ifa; local
1896 sctp_addr_mgmt_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type, int addr_locked) argument
2036 struct sctp_ifa *ifa; local
2080 struct sctp_ifa *ifa; local
2114 struct sctp_ifa *ifa; local
2284 struct sctp_ifa *ifa; local
2309 struct sctp_ifa *ifa; local
3185 struct sctp_ifa *ifa; local
[all...]
/freebsd-head/sys/compat/linuxkpi/common/include/linux/
H A Dinetdevice.h41 struct ifaddr *ifa; local
50 ifa = ifa_ifwithaddr((struct sockaddr *)&sin);
52 if (ifa) {
53 ifp = ifa->ifa_ifp;
67 struct ifaddr *ifa; local
81 ifa = ifa_ifwithaddr((struct sockaddr *)&sin6);
83 if (ifa != NULL) {
84 ifp = ifa->ifa_ifp;
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dget_addrs.c100 struct ifaddrs *ifa0, *ifa; local
114 for (ifa = ifa0, num = 0; ifa != NULL; ifa = ifa->ifa_next, num++)
140 for (ifa = ifa0, idx = 0; ifa != NULL; ifa = ifa->ifa_next) {
141 if ((ifa
[all...]
/freebsd-head/usr.bin/netstat/
H A Dif.c274 struct ifaddrs *ifap, *ifa; local
288 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
290 strcmp(ifa->ifa_name, interface) != 0)
292 if (af != AF_UNSPEC && ifa->ifa_addr->sa_family != af)
294 ifn_len = strlen(ifa->ifa_name);
295 if ((ifa->ifa_flags & IFF_UP) == 0)
298 if (ifa
521 struct ifaddrs *ifap, *ifa; local
[all...]
/freebsd-head/contrib/ntp/lib/isc/unix/
H A Difiter_getifaddrs.c141 struct ifaddrs *ifa; local
147 ifa = iter->pos;
162 INSIST(ifa != NULL);
163 INSIST(ifa->ifa_name != NULL);
172 if ((ifa->ifa_flags & IFF_RUNNING) == 0)
176 if (ifa->ifa_addr == NULL)
179 family = ifa->ifa_addr->sa_family;
190 namelen = strlen(ifa->ifa_name);
195 memcpy(iter->current.name, ifa->ifa_name, namelen);
199 if ((ifa
[all...]
/freebsd-head/share/examples/libifconfig/
H A Dstatus.c58 print_carp(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
63 if (ifconfig_carp_get_info(lifh, ifa->ifa_name, carpr, CARP_MAXVHID)) {
75 print_inet4_addr(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
80 if (ifconfig_inet_get_addrinfo(lifh, ifa->ifa_name, ifa, &addr) != 0) {
105 print_inet6_addr(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
112 if (ifconfig_inet6_get_addrinfo(lifh, ifa->ifa_name, ifa, &addr) != 0) {
189 print_link_addr(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
195 sdl = (struct sockaddr_dl *)ifa
213 print_ifaddr(ifconfig_handle_t *lifh, struct ifaddrs *ifa, void *udata __unused) argument
240 print_nd6(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
252 print_fib(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
264 print_lagg(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
332 print_laggport(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
349 print_groups(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
380 print_media(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
455 print_iface(ifconfig_handle_t *lifh, struct ifaddrs *ifa, void *udata __unused) argument
[all...]
/freebsd-head/usr.sbin/rtsold/
H A Dcap_llflags.c67 struct ifaddrs *ifap, *ifa; local
78 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
79 if (strcmp(ifa->ifa_name, ifname) != 0)
81 if (ifa->ifa_addr->sa_family != AF_INET6)
84 sin6 = (struct sockaddr_in6 *)(void *)ifa->ifa_addr;
/freebsd-head/usr.sbin/wake/
H A Dwake.c111 struct ifaddrs *ifap, *ifa; local
122 for (nifs = 0, ifa = ifap; ifa; ifa = ifa->ifa_next)
123 if (ifa->ifa_addr->sa_family == AF_LINK &&
124 ifa->ifa_flags & IFF_UP && ifa->ifa_flags & IFF_RUNNING) {
125 sdl = (struct sockaddr_dl *)ifa->ifa_addr;
127 strlcpy(dst, ifa
[all...]
/freebsd-head/sys/netinet6/
H A Dnd6_nbr.c128 struct ifaddr *ifa; local
135 ifa = NULL;
254 ifa = (*carp_iamatch6_p)(ifp, &taddr6);
256 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &taddr6);
260 if (ifa == NULL) {
284 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(
286 if (ifa)
291 if (ifa == NULL) {
299 myaddr6 = *IFA_IN6(ifa);
300 anycast = ((struct in6_ifaddr *)ifa)
470 struct ifaddr *ifa = NULL; local
623 struct ifaddr *ifa; local
1171 nd6_dad_find(struct ifaddr *ifa, struct nd_opt_nonce *n) argument
1240 nd6_dad_start(struct ifaddr *ifa, int delay) argument
1316 nd6_dad_stop(struct ifaddr *ifa) argument
1337 struct ifaddr *ifa = dp->dad_ifa; local
1447 nd6_dad_duplicated(struct ifaddr *ifa, struct dadq *dp) argument
1533 nd6_dad_ns_input(struct ifaddr *ifa, struct nd_opt_nonce *ndopt_nonce) argument
1552 nd6_dad_na_input(struct ifaddr *ifa) argument
[all...]
/freebsd-head/sys/net/
H A Droute.c592 struct ifaddr *ifa; local
597 ifa = NULL;
604 if ((ifa = ifa_ifwithnet(gateway, 0, fibnum)) == NULL) {
620 if (rt->rt_ifa != ifa && ifa->ifa_addr->sa_family != AF_LINK) {
656 ifa_ref(ifa);
657 info.rti_ifa = ifa;
729 struct ifaddr *ifa; local
741 ifa = NULL;
743 ifa
1242 struct ifaddr *ifa; local
1555 struct ifaddr *ifa; local
1983 rtinit1(struct ifaddr *ifa, int cmd, int flags, int fibnum) argument
2192 rtinit(struct ifaddr *ifa, int cmd, int flags) argument
2218 rt_addrmsg(int cmd, struct ifaddr *ifa, int fibnum) argument
2257 rt_newaddrmsg(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt) argument
2268 rt_newaddrmsg_fib(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt, int fibnum) argument
[all...]

Completed in 432 milliseconds

123456