Home
last modified time | relevance | path

Searched refs:afmask (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/net/netfilter/ipvs/
Dip_vs_core.c2237 unsigned int afmask; in ip_vs_register_hooks() local
2244 afmask = 2; in ip_vs_register_hooks()
2251 afmask = 1; in ip_vs_register_hooks()
2254 if (!(ipvs->hooks_afmask & afmask)) { in ip_vs_register_hooks()
2257 ipvs->hooks_afmask |= afmask; in ip_vs_register_hooks()
2266 unsigned int afmask; in ip_vs_unregister_hooks() local
2272 afmask = 2; in ip_vs_unregister_hooks()
2279 afmask = 1; in ip_vs_unregister_hooks()
2282 if (ipvs->hooks_afmask & afmask) { in ip_vs_unregister_hooks()
2284 ipvs->hooks_afmask &= ~afmask; in ip_vs_unregister_hooks()
/linux-5.19.10/include/net/
Dip_vs.h1684 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_register_conntrack() local
1687 if (!(svc->conntrack_afmask & afmask)) { in ip_vs_register_conntrack()
1690 svc->conntrack_afmask |= afmask; in ip_vs_register_conntrack()
1701 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_unregister_conntrack() local
1703 if (svc->conntrack_afmask & afmask) { in ip_vs_unregister_conntrack()
1705 svc->conntrack_afmask &= ~afmask; in ip_vs_unregister_conntrack()