mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-19 09:59:04 +00:00
1d3de414eb
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>
23 lines
427 B
C
23 lines
427 B
C
#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_ */
|
|
|