~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal-proposed

« back to all changes in this revision

Viewing changes to include/linux/netfilter/nfnetlink_acct.h

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft, Andy Whitcroft
  • Date: 2012-06-21 09:16:38 UTC
  • Revision ID: package-import@ubuntu.com-20120621091638-gubhv4nox8xez1ct
Tags: 3.5.0-1.1
[ Andy Whitcroft]

* Rebuild lowlatency against Ubuntu-3.5.0-1.1
* All new configuration system to allow configuration deltas to be
  exposed via debian.lowlatency/config-delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _NFNL_ACCT_H_
 
2
#define _NFNL_ACCT_H_
 
3
 
 
4
#ifndef NFACCT_NAME_MAX
 
5
#define NFACCT_NAME_MAX         32
 
6
#endif
 
7
 
 
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
 
14
};
 
15
 
 
16
enum nfnl_acct_type {
 
17
        NFACCT_UNSPEC,
 
18
        NFACCT_NAME,
 
19
        NFACCT_PKTS,
 
20
        NFACCT_BYTES,
 
21
        NFACCT_USE,
 
22
        __NFACCT_MAX
 
23
};
 
24
#define NFACCT_MAX (__NFACCT_MAX - 1)
 
25
 
 
26
#ifdef __KERNEL__
 
27
 
 
28
struct nf_acct;
 
29
 
 
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);
 
33
 
 
34
#endif /* __KERNEL__ */
 
35
 
 
36
#endif /* _NFNL_ACCT_H */