diff options
| author | Florian Westphal <fw@strlen.de> | 2013-04-19 00:58:26 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-29 14:09:06 -0400 |
| commit | 7237190df8c4129241697530a4eecabdc4ecc66e (patch) | |
| tree | ef91e17a9510d81f721f7870e5141403fc2ad503 /include/uapi/linux | |
| parent | a5fedd43d5f6c94c71053a66e4c3d2e35f1731a2 (diff) | |
netfilter: nfnetlink_queue: add skb info attribute
Once we allow userspace to receive gso/gro packets, userspace
needs to be able to determine when checksums appear to be
broken, but are not.
NFQA_SKB_CSUMNOTREADY means 'checksums will be fixed in kernel
later, pretend they are ok'.
NFQA_SKB_GSO could be used for statistics, or to determine when
packet size exceeds mtu.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/netfilter/nfnetlink_queue.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/nfnetlink_queue.h b/include/uapi/linux/netfilter/nfnetlink_queue.h index 70ec8c2bc11a..0069da370464 100644 --- a/include/uapi/linux/netfilter/nfnetlink_queue.h +++ b/include/uapi/linux/netfilter/nfnetlink_queue.h | |||
| @@ -45,6 +45,7 @@ enum nfqnl_attr_type { | |||
| 45 | NFQA_CT, /* nf_conntrack_netlink.h */ | 45 | NFQA_CT, /* nf_conntrack_netlink.h */ |
| 46 | NFQA_CT_INFO, /* enum ip_conntrack_info */ | 46 | NFQA_CT_INFO, /* enum ip_conntrack_info */ |
| 47 | NFQA_CAP_LEN, /* __u32 length of captured packet */ | 47 | NFQA_CAP_LEN, /* __u32 length of captured packet */ |
| 48 | NFQA_SKB_INFO, /* __u32 skb meta information */ | ||
| 48 | 49 | ||
| 49 | __NFQA_MAX | 50 | __NFQA_MAX |
| 50 | }; | 51 | }; |
| @@ -98,4 +99,10 @@ enum nfqnl_attr_config { | |||
| 98 | #define NFQA_CFG_F_CONNTRACK (1 << 1) | 99 | #define NFQA_CFG_F_CONNTRACK (1 << 1) |
| 99 | #define NFQA_CFG_F_MAX (1 << 2) | 100 | #define NFQA_CFG_F_MAX (1 << 2) |
| 100 | 101 | ||
| 102 | /* flags for NFQA_SKB_INFO */ | ||
| 103 | /* packet appears to have wrong checksums, but they are ok */ | ||
| 104 | #define NFQA_SKB_CSUMNOTREADY (1 << 0) | ||
| 105 | /* packet is GSO (i.e., exceeds device mtu) */ | ||
| 106 | #define NFQA_SKB_GSO (1 << 1) | ||
| 107 | |||
| 101 | #endif /* _NFNETLINK_QUEUE_H */ | 108 | #endif /* _NFNETLINK_QUEUE_H */ |
