Lines Matching defs:fam
1365 static int get_dns_host(struct aafilter *a, const char *addr, int fam)
1376 he = gethostbyname2(addr, fam == AF_UNSPEC ? AF_INET : fam);
1379 if (fam == AF_UNSPEC) {
1419 int fam = preferred_family;
1422 if (fam == AF_UNIX || strncmp(addr, "unix:", 5) == 0) {
1430 fam = AF_UNIX;
1434 if (fam == AF_PACKET || strncmp(addr, "link:", 5) == 0) {
1456 fam = AF_PACKET;
1460 if (fam == AF_NETLINK || strncmp(addr, "netlink:", 8) == 0) {
1482 fam = AF_NETLINK;
1486 if (fam == AF_INET || !strncmp(addr, "inet:", 5)) {
1487 fam = AF_INET;
1490 } else if (fam == AF_INET6 || !strncmp(addr, "inet6:", 6)) {
1491 fam = AF_INET6;
1556 if (get_prefix_1(&a.addr, addr, fam)) {
1557 if (get_dns_host(&a, addr, fam)) {
1565 if (fam != AF_UNSPEC) {
1567 filter_af_set(f, fam);
1867 const struct filter *f, int fam)
1883 if (worker(line, f, fam) < 0)
3092 static int packet_show_line(char *buf, const struct filter *f, int fam)