Home
last modified time | relevance | path

Searched refs:ifg (Results 1 – 8 of 8) sorted by relevance

/freebsd/sbin/ifconfig/
H A Difgroup.c88 struct ifg_req *ifg = &ifgr.ifgr_groups[i]; in getifgroups() local
90 if (strcmp(ifg->ifgrq_group, "all")) { in getifgroups()
94 printf(" %s", ifg->ifgrq_group); in getifgroups()
107 struct ifg_req *ifg; in printgroup() local
130 for (ifg = ifgr.ifgr_groups; ifg && len >= sizeof(struct ifg_req); in printgroup()
131 ifg++) { in printgroup()
133 printf("%s\n", ifg->ifgrq_member); in printgroup()
H A Difconfig.c871 struct ifg_req *ifg; in group_member() local
902 (struct ifg_req *)calloc(len / sizeof(*ifg), sizeof(*ifg)); in group_member()
912 for (ifg = ifgr.ifgr_groups; ifg && len >= sizeof(*ifg); ifg++) { in group_member()
913 len -= sizeof(*ifg); in group_member()
915 matched = !fnmatch(match, ifg->ifgrq_group, 0); in group_member()
917 nomatched = fnmatch(nomatch, ifg->ifgrq_group, 0); in group_member()
/freebsd/sys/netpfil/pf/
H A Dpf_if.c125 struct ifg_group *ifg; in pfi_initialize_vnet() local
135 CK_STAILQ_FOREACH(ifg, &V_ifg_head, ifg_next) in pfi_initialize_vnet()
150 CK_STAILQ_FOREACH(ifg, &V_ifg_head, ifg_next) { in pfi_initialize_vnet()
153 pfi_attach_ifgroup(ifg, kif); in pfi_initialize_vnet()
456 pfi_attach_ifgroup(struct ifg_group *ifg, struct pfi_kkif *kif) in pfi_attach_ifgroup() argument
462 kif = pfi_kkif_attach(kif, ifg->ifg_group); in pfi_attach_ifgroup()
463 kif->pfik_group = ifg; in pfi_attach_ifgroup()
464 ifg->ifg_pf_kif = kif; in pfi_attach_ifgroup()
1057 pfi_attach_group_event(void *arg __unused, struct ifg_group *ifg) in pfi_attach_group_event() argument
1069 pfi_attach_ifgroup(ifg, kif); in pfi_attach_group_event()
[all …]
/freebsd/share/examples/libifconfig/
H A Dstatus.c350 struct ifg_req *ifg; in print_groups() local
358 ifg = ifgr.ifgr_groups; in print_groups()
360 for (; ifg && len >= sizeof(struct ifg_req); ifg++) { in print_groups()
362 if (strcmp(ifg->ifgrq_group, "all")) { in print_groups()
367 printf("%s ", ifg->ifgrq_group); in print_groups()
/freebsd/contrib/wireguard-tools/
H A Dipc-freebsd.h25 struct ifg_req *ifg; in kernel_get_wireguard_interfaces() local
42 for (ifg = ifgr.ifgr_groups; ifg && ifgr.ifgr_len > 0; ++ifg) { in kernel_get_wireguard_interfaces()
43 if ((ret = string_list_add(list, ifg->ifgrq_member)) < 0) in kernel_get_wireguard_interfaces()
/freebsd/sbin/pfctl/
H A Dpfctl_parser.c1383 struct ifg_req *ifg; in ifa_add_groups_to_map() local
1403 ifg = ifgr.ifgr_groups; in ifa_add_groups_to_map()
1404 for (; ifg && len >= sizeof(struct ifg_req); ifg++) { in ifa_add_groups_to_map()
1406 if (strcmp(ifg->ifgrq_group, "all")) { in ifa_add_groups_to_map()
1411 item.key = ifg->ifgrq_group; in ifa_add_groups_to_map()
1420 strlcpy(ifgr2.ifgr_name, ifg->ifgrq_group, in ifa_add_groups_to_map()
1427 item.key = strdup(ifg->ifgrq_group); in ifa_add_groups_to_map()
1603 struct ifg_req *ifg; in ifa_grouplookup() local
1620 for (ifg = ifgr.ifgr_groups; ifg && len >= sizeof(struct ifg_req); in ifa_grouplookup()
1621 ifg++) { in ifa_grouplookup()
[all …]
/freebsd/sys/net/
H A Dif.c1429 struct ifg_group *ifg = NULL; in if_addgroup() local
1455 CK_STAILQ_FOREACH(ifg, &V_ifg_head, ifg_next) in if_addgroup()
1456 if (!strcmp(ifg->ifg_group, groupname)) in if_addgroup()
1459 if (ifg == NULL) { in if_addgroup()
1460 if ((ifg = malloc(sizeof(*ifg), M_TEMP, M_NOWAIT)) == NULL) { in if_addgroup()
1466 strlcpy(ifg->ifg_group, groupname, sizeof(ifg->ifg_group)); in if_addgroup()
1467 ifg->ifg_refcnt = 0; in if_addgroup()
1468 CK_STAILQ_INIT(&ifg->ifg_members); in if_addgroup()
1469 CK_STAILQ_INSERT_TAIL(&V_ifg_head, ifg, ifg_next); in if_addgroup()
1473 ifg->ifg_refcnt++; in if_addgroup()
[all …]
/freebsd/sys/dev/usb/net/
H A Dif_axge.c91 uint8_t ifg; member