• Home
  • Raw
  • Download

Lines Matching refs:ifa

316 	struct ifaddrs *ifaddrs, *ifa;  in discover_interfaces()  local
342 for (ifa = ifaddrs; ifa; ifa = ifa->ifa_next) { in discover_interfaces()
343 if (ifa->ifa_addr != NULL) { in discover_interfaces()
345 if (ifa->ifa_addr->sa_family != AF_LINK) in discover_interfaces()
348 if (ifa->ifa_addr->sa_family != AF_PACKET) in discover_interfaces()
356 if (strcmp(ifp->name, ifa->ifa_name) == 0) in discover_interfaces()
368 if (strcmp(ifn, ifa->ifa_name) == 0) in discover_interfaces()
371 if (strcmp(argv[i], ifa->ifa_name) == 0) in discover_interfaces()
382 if (argc == -1 && strcmp(argv[0], ifa->ifa_name) != 0) in discover_interfaces()
385 if (!fnmatch(ifdv[i], ifa->ifa_name, 0)) in discover_interfaces()
390 if (!fnmatch(ifav[i], ifa->ifa_name, 0)) in discover_interfaces()
394 p = ifa->ifa_name; in discover_interfaces()
418 } else if (ifa->ifa_addr != NULL) { in discover_interfaces()
420 sdl = (const struct sockaddr_dl *)(void *)ifa->ifa_addr; in discover_interfaces()
426 memcpy(&iflr.addr, ifa->ifa_addr, in discover_interfaces()
427 MIN(ifa->ifa_addr->sa_len, sizeof(iflr.addr))); in discover_interfaces()
452 sll = (const struct sockaddr_ll *)(void *)ifa->ifa_addr; in discover_interfaces()
505 struct ifaddrs *ifaddrs, *ifa; in do_address() local
513 for (ifa = ifaddrs; ifa; ifa = ifa->ifa_next) { in do_address()
514 if (ifa->ifa_addr == NULL || in do_address()
515 ifa->ifa_addr->sa_family != AF_INET || in do_address()
516 strcmp(ifa->ifa_name, ifname) != 0) in do_address()
518 a = (const struct sockaddr_in *)(void *)ifa->ifa_addr; in do_address()
519 n = (const struct sockaddr_in *)(void *)ifa->ifa_netmask; in do_address()
520 if (ifa->ifa_flags & IFF_POINTOPOINT) in do_address()
522 ifa->ifa_dstaddr; in do_address()
530 if ((ifa->ifa_flags & IFF_POINTOPOINT) && d) in do_address()