OSDN Git Service

Check in released NDK version r4.
[android-x86/prebuilt.git] / ndk / android-ndk-r4 / darwin / platforms / android-8 / arch-arm / usr / include / linux / netfilter_ipv4 / ipt_ULOG.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _IPT_ULOG_H
13 #define _IPT_ULOG_H
14
15 #ifndef NETLINK_NFLOG
16 #define NETLINK_NFLOG 5
17 #endif
18
19 #define ULOG_DEFAULT_NLGROUP 1
20 #define ULOG_DEFAULT_QTHRESHOLD 1
21
22 #define ULOG_MAC_LEN 80
23 #define ULOG_PREFIX_LEN 32
24
25 #define ULOG_MAX_QLEN 50
26
27 struct ipt_ulog_info {
28  unsigned int nl_group;
29  size_t copy_range;
30  size_t qthreshold;
31  char prefix[ULOG_PREFIX_LEN];
32 };
33
34 typedef struct ulog_packet_msg {
35  unsigned long mark;
36  long timestamp_sec;
37  long timestamp_usec;
38  unsigned int hook;
39  char indev_name[IFNAMSIZ];
40  char outdev_name[IFNAMSIZ];
41  size_t data_len;
42  char prefix[ULOG_PREFIX_LEN];
43  unsigned char mac_len;
44  unsigned char mac[ULOG_MAC_LEN];
45  unsigned char payload[0];
46 } ulog_packet_msg_t;
47
48 #endif