iptables-1.2.9-2.3.1.src.rpm
[iptables.git] / include / linux / netfilter_ipv4 / ipt_sctp.h
1 /* iptables module for matching the SCTP header
2  *
3  * (C) 2003 Harald Welte <laforge@gnumonks.org>
4  *
5  * This software is distributed under GNU GPL v2, 1991
6  *
7  * $Id: ipt_sctp.h,v 1.1 2003/05/03 18:05:58 laforge Exp $
8  */
9 #ifndef _IPT_SCTP_H
10 #define _IPT_SCTP_H
11
12 struct ipt_sctp_info {
13         u_int16_t spts[2];                      /* Souce port range */
14         u_int16_t dpts[2];                      /* Destination port range */
15         u_int32_t chunks;                       /* chunks to be matched */
16         u_int32_t chunk_mask;                   /* chunk mask to be matched */
17         u_int8_t invflags;                      /* Inverse flags */
18 };
19
20 #define IPT_SCTP_INV_SRCPT      0x01    /* Invert the sense of source ports */
21 #define IPT_SCTP_INV_DSTPT      0x02    /* Invert the sense of dest ports */
22 #define IPT_SCTP_INV_CHUNKS     0x03    /* Invert the sense of chunks */
23 #define IPT_SCTP_INV_MASK       0x03    /* All possible flags */
24
25 #endif /* _IPT_SCTP_H */