Searched defs:ifa (Results 1 - 25 of 123) sorted by relevance

12345

/freebsd-head/lib/libc/net/
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 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 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...]
H A Dgetifaddrs.c97 struct ifaddrs *ifa, *ift; local
211 ifa = (struct ifaddrs *)(void *)data;
215 memset(ifa, 0, sizeof(struct ifaddrs) * icnt);
216 ift = ifa;
331 if (--ift >= ifa) {
333 *pif = ifa;
336 free(ifa);
/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/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/usr.sbin/ppp/
H A Diface.h35 struct ncprange ifa; /* local address/mask */ member in struct:iface_addr
H A Darp.c289 struct sockaddr_in *ifa, *netmask; local
291 ifa = (struct sockaddr_in *)sa[RTAX_IFA];
300 inet_ntoa(ifa->sin_addr), a);
303 if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) ==
/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...]
/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/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/tools/tools/ifpifa/
H A Difpifa.c88 struct ifaddr ifa; member in union:__anon10541
137 TAILQ_NEXT(&ifaddr.ifa, ifa_link);
140 (unsigned char *) ifaddr.ifa.ifa_addr -
182 addr, ifaddr.ifa.ifa_refcnt);
/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/contrib/traceroute/
H A Dfindsaddr-socket.c111 register struct sockaddr_in *sp, *ifa; local
186 ifa = (struct sockaddr_in *)cp;
187 if (ifa->sin_addr.s_addr != 0) {
188 *from = *ifa;
/freebsd-head/sbin/ifconfig/
H A Daf_link.c60 link_status(int s __unused, const struct ifaddrs *ifa) argument
69 sdl = (struct sockaddr_dl *) ifa->ifa_addr;
101 strncpy(ifr.ifr_name, ifa->ifa_name, sizeof(ifr.ifr_name));
102 memcpy(&ifr.ifr_addr, ifa->ifa_addr, sizeof(ifa->ifa_addr->sa_len));
H A Daf_inet.c63 in_status(int s __unused, const struct ifaddrs *ifa) argument
70 sin = (struct sockaddr_in *)ifa->ifa_addr;
89 if (ifa->ifa_flags & IFF_POINTOPOINT) {
90 sin = (struct sockaddr_in *)ifa->ifa_dstaddr;
96 sin = (struct sockaddr_in *)ifa->ifa_netmask;
116 if (ifa->ifa_flags & IFF_BROADCAST) {
117 sin = (struct sockaddr_in *)ifa->ifa_broadaddr;
122 print_vhid(ifa, " ");
/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...]
/freebsd-head/sys/mips/cavium/octe/
H A Docte.c415 struct ifaddr *ifa; local
422 ifa = (struct ifaddr *)data;
431 if (ifa->ifa_addr->sa_family == AF_INET) {
435 arp_ifinit(ifp, ifa);
/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/nfs/
H A Dnfs_diskless.c172 struct ifaddr *ifa; local
222 ifa = NULL;
228 CK_STAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
229 if (ifa->ifa_addr->sa_family == AF_LINK) {
230 sdl = (struct sockaddr_dl *)ifa->ifa_addr;
/freebsd-head/sys/netinet/
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? */
/freebsd-head/tools/tools/net80211/wlanwds/
H A Dwlanwds.c280 struct ifaddrs *ifap, *ifa; local
289 for (ifa = ifap; ifa != NULL; ifa++) {
290 if (strcmp(ifname, ifa->ifa_name) != 0)
294 if (ifa->ifa_addr == NULL) {
301 sdl = (struct sockaddr_dl *) ifa->ifa_addr;

Completed in 295 milliseconds

12345