Searched refs:ifa (Results 1 - 25 of 144) 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
77 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
78 if (ifa->ifa_addr &&
79 ifa->ifa_addr->sa_family == AF_LINK &&
80 ifindex == LLINDEX((struct sockaddr_dl*)ifa->ifa_addr))
84 if (ifa == NULL) {
89 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) {
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.c592 struct mibifa *ifa; local
594 TAILQ_FOREACH(ifa, &mibifa_list, link)
595 if (ifp->index == ifa->ifindex)
596 return (ifa);
603 struct mibifa *ifa; local
605 ifa = ifa0;
606 while ((ifa = TAILQ_NEXT(ifa, link)) != NULL)
607 if (ifa->ifindex == ifa0->ifindex)
608 return (ifa);
618 struct mibifa *ifa; local
648 destroy_ifa(struct mibifa *ifa) argument
741 struct mibifa *ifa, *ifa1; local
993 struct mibifa *ifa; local
1045 struct mibifa *ifa; local
1308 struct mibifa *ifa, *ifa1; local
1481 verify_ifa(const char *name, struct mibifa *ifa) argument
1514 mib_undestroy_ifa(struct mibifa *ifa) argument
1533 mib_destroy_ifa(struct mibifa *ifa) argument
1557 mib_unmodify_ifa(struct mibifa *ifa) argument
1578 mib_modify_ifa(struct mibifa *ifa) argument
1608 mib_uncreate_ifa(struct mibifa *ifa) argument
1634 struct mibifa *ifa; local
1693 struct mibifa *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/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
[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 Din_rmx.c168 struct ifaddr *ifa; member in struct:in_ifadown_arg
178 if (nh->nh_ifa != ap->ifa)
188 in_ifadown(struct ifaddr *ifa, int delete) argument
192 KASSERT(ifa->ifa_addr->sa_family == AF_INET,
195 arg.ifa = ifa;
199 ifa->ifa_flags &= ~IFA_ROUTE; /* XXXlocking? */
H A Dip_carp.c164 * pointer to the softc of its vhid, ifa->ifa_carp. That could be either
289 #define IFNET_FOREACH_IFA(ifp, ifa) \
290 CK_STAILQ_FOREACH((ifa), &(ifp)->if_addrhead, ifa_link) \
291 if ((ifa)->ifa_carp != NULL)
293 #define CARP_FOREACH_IFA(sc, ifa) \
297 ((ifa) = sc->sc_ifas[_i]) != NULL; \
342 struct ifaddr *ifa; local
371 CARP_FOREACH_IFA(sc, ifa) {
372 in.s_addr = ifatoia(ifa)->ia_addr.sin_addr.s_addr;
373 if (ifa
615 carp_source_is_self(struct mbuf *m, struct ifaddr *ifa, sa_family_t af) argument
649 struct ifaddr *ifa, *match; local
894 struct ifaddr *ifa, *best; local
916 struct ifaddr *ifa; local
1056 struct ifaddr *ifa; local
1063 carp_ifa_addroute(struct ifaddr *ifa) argument
1087 struct ifaddr *ifa; local
1094 carp_ifa_delroute(struct ifaddr *ifa) argument
1116 carp_master(struct ifaddr *ifa) argument
1132 struct ifaddr *ifa; local
1146 carp_iamatch(struct ifaddr *ifa, uint8_t **enaddr) argument
1164 struct ifaddr *ifa; local
1185 struct ifaddr *ifa; local
1208 struct ifaddr *ifa; local
1892 carp_get_vhid(struct ifaddr *ifa) argument
1902 carp_attach(struct ifaddr *ifa, int vhid) argument
1978 carp_detach(struct ifaddr *ifa, bool keep_cif) argument
[all...]
H A Dsctp_asconf.c1219 sctp_asconf_queue_mgmt(struct sctp_tcb *stcb, struct sctp_ifa *ifa, argument
1227 if (sctp_asconf_addr_match(aa, &ifa->address.sa) == 0)
1244 /* remove the ifa from the restricted list */
1245 sctp_del_local_addr_restricted(stcb, ifa);
1255 /* remove the aa->ifa from the restricted list */
1256 sctp_del_local_addr_restricted(stcb, aa->ifa);
1276 aa->ifa = ifa;
1277 atomic_add_int(&ifa->refcount, 1);
1279 switch (ifa
1345 sctp_asconf_queue_add(struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type) argument
1445 struct sctp_ifa *ifa; local
1892 sctp_addr_mgmt_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type, int addr_locked) argument
2032 struct sctp_ifa *ifa; local
2076 struct sctp_ifa *ifa; local
2110 struct sctp_ifa *ifa; local
2274 struct sctp_ifa *ifa; local
2299 struct sctp_ifa *ifa; local
3171 struct sctp_ifa *ifa; local
[all...]
/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...]
H A Dcommon.c95 struct ifaddrs *ifap, *ifa; local
108 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
110 if (ifa->ifa_addr->sa_family != AF_LINK)
113 sdl = (struct sockaddr_dl *)ifa->ifa_addr;
131 strlcpy(ifmap[ifindex].ifname, ifa->ifa_name, IFNAMSIZ);
/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.c124 struct ifaddr *ifa; local
131 ifa = NULL;
250 ifa = (*carp_iamatch6_p)(ifp, &taddr6);
252 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &taddr6);
256 if (ifa == NULL) {
280 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(
282 if (ifa)
287 if (ifa == NULL) {
295 myaddr6 = *IFA_IN6(ifa);
296 anycast = ((struct in6_ifaddr *)ifa)
466 struct ifaddr *ifa = NULL; local
619 struct ifaddr *ifa; local
1173 nd6_dad_find(struct ifaddr *ifa, struct nd_opt_nonce *n) argument
1242 nd6_dad_start(struct ifaddr *ifa, int delay) argument
1318 nd6_dad_stop(struct ifaddr *ifa) argument
1339 struct ifaddr *ifa = dp->dad_ifa; local
1449 nd6_dad_duplicated(struct ifaddr *ifa, struct dadq *dp) argument
1535 nd6_dad_ns_input(struct ifaddr *ifa, struct nd_opt_nonce *ndopt_nonce) argument
1554 nd6_dad_na_input(struct ifaddr *ifa) argument
[all...]

Completed in 130 milliseconds

123456