mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
ceb98d03ea
This patch adds the match that allows to perform extended accounting. It requires the new nfnetlink_acct infrastructure. # iptables -I INPUT -p tcp --sport 80 -m nfacct --nfacct-name http-traffic # iptables -I OUTPUT -p tcp --dport 80 -m nfacct --nfacct-name http-traffic Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
13 lines
238 B
C
13 lines
238 B
C
#ifndef _XT_NFACCT_MATCH_H
|
|
#define _XT_NFACCT_MATCH_H
|
|
|
|
#include <linux/netfilter/nfnetlink_acct.h>
|
|
|
|
struct nf_acct;
|
|
|
|
struct xt_nfacct_match_info {
|
|
char name[NFACCT_NAME_MAX];
|
|
struct nf_acct *nfacct;
|
|
};
|
|
|
|
#endif /* _XT_NFACCT_MATCH_H */
|