OMAPDSS: VENC: fix NULL pointer dereference in DSS2 VENC sysfs debug attr on OMAP4
[zen-stable.git] / include / linux / netfilter / nfnetlink_acct.h
blob7c4279b4ae7a9a2ccc95289e52ce65d97db30865
1 #ifndef _NFNL_ACCT_H_
2 #define _NFNL_ACCT_H_
4 #ifndef NFACCT_NAME_MAX
5 #define NFACCT_NAME_MAX 32
6 #endif
8 enum nfnl_acct_msg_types {
9 NFNL_MSG_ACCT_NEW,
10 NFNL_MSG_ACCT_GET,
11 NFNL_MSG_ACCT_GET_CTRZERO,
12 NFNL_MSG_ACCT_DEL,
13 NFNL_MSG_ACCT_MAX
16 enum nfnl_acct_type {
17 NFACCT_UNSPEC,
18 NFACCT_NAME,
19 NFACCT_PKTS,
20 NFACCT_BYTES,
21 NFACCT_USE,
22 __NFACCT_MAX
24 #define NFACCT_MAX (__NFACCT_MAX - 1)
26 #ifdef __KERNEL__
28 struct nf_acct;
30 extern struct nf_acct *nfnl_acct_find_get(const char *filter_name);
31 extern void nfnl_acct_put(struct nf_acct *acct);
32 extern void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct);
34 #endif /* __KERNEL__ */
36 #endif /* _NFNL_ACCT_H */