aboutsummaryrefslogtreecommitdiff
path: root/include/linux/netfilter_ipv4/ipt_dccp.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2005-08-09 20:26:55 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 15:54:28 -0700
commit1d3de414eb20d937d82c5219fd13ee4cedc499cb (patch)
tree3e249fc3ecd33bdec336208a29f0a8fdea062439 /include/linux/netfilter_ipv4/ipt_dccp.h
parente2e268665f6c01686b477a6b0cc5a70bab689d54 (diff)
[NETFILTER]: New iptables DCCP protocol header match
Using this new iptables DCCP protocol header match, it is possible to create simplistic stateless packet filtering rules for DCCP. It permits matching of port numbers, packet type and options. Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter_ipv4/ipt_dccp.h')
-rw-r--r--include/linux/netfilter_ipv4/ipt_dccp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv4/ipt_dccp.h b/include/linux/netfilter_ipv4/ipt_dccp.h
new file mode 100644
index 00000000000..3cb3a522e62
--- /dev/null
+++ b/include/linux/netfilter_ipv4/ipt_dccp.h
@@ -0,0 +1,23 @@
+#ifndef _IPT_DCCP_H_
+#define _IPT_DCCP_H_
+
+#define IPT_DCCP_SRC_PORTS 0x01
+#define IPT_DCCP_DEST_PORTS 0x02
+#define IPT_DCCP_TYPE 0x04
+#define IPT_DCCP_OPTION 0x08
+
+#define IPT_DCCP_VALID_FLAGS 0x0f
+
+struct ipt_dccp_info {
+ u_int16_t dpts[2]; /* Min, Max */
+ u_int16_t spts[2]; /* Min, Max */
+
+ u_int16_t flags;
+ u_int16_t invflags;
+
+ u_int16_t typemask;
+ u_int8_t option;
+};
+
+#endif /* _IPT_DCCP_H_ */
+