Searched refs:nfacct (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/net/netfilter/ |
D | xt_nfacct.c | 26 nfnl_acct_update(skb, info->nfacct); in nfacct_mt() 28 overquota = nfnl_acct_overquota(xt_net(par), info->nfacct); in nfacct_mt() 37 struct nf_acct *nfacct; in nfacct_mt_checkentry() local 39 nfacct = nfnl_acct_find_get(par->net, info->name); in nfacct_mt_checkentry() 40 if (nfacct == NULL) { in nfacct_mt_checkentry() 45 info->nfacct = nfacct; in nfacct_mt_checkentry() 54 nfnl_acct_put(info->nfacct); in nfacct_mt_destroy() 66 .usersize = offsetof(struct xt_nfacct_match_info, nfacct), 77 .usersize = offsetof(struct xt_nfacct_match_info_v1, nfacct),
|
D | nfnetlink_acct.c | 52 struct nf_acct *nfacct, *matching = NULL; in nfnl_acct_new() local 64 list_for_each_entry(nfacct, &net->nfnl_acct_list, head) { in nfnl_acct_new() 65 if (strncmp(nfacct->name, acct_name, NFACCT_NAME_MAX) != 0) in nfnl_acct_new() 71 matching = nfacct; in nfnl_acct_new() 104 nfacct = kzalloc(sizeof(struct nf_acct) + size, GFP_KERNEL); in nfnl_acct_new() 105 if (nfacct == NULL) in nfnl_acct_new() 109 u64 *quota = (u64 *)nfacct->data; in nfnl_acct_new() 112 nfacct->flags = flags; in nfnl_acct_new() 115 nla_strlcpy(nfacct->name, tb[NFACCT_NAME], NFACCT_NAME_MAX); in nfnl_acct_new() 118 atomic64_set(&nfacct->bytes, in nfnl_acct_new() [all …]
|
D | Kconfig | 1406 tristate '"nfacct" match support'
|
/Linux-v5.10/include/uapi/linux/netfilter/ |
D | xt_nfacct.h | 11 struct nf_acct *nfacct; member 16 struct nf_acct *nfacct __attribute__((aligned(8))); member
|
/Linux-v5.10/include/linux/netfilter/ |
D | nfnetlink_acct.h | 18 void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct); 19 int nfnl_acct_overquota(struct net *net, struct nf_acct *nfacct);
|