From 25b2d74cebc9680dde4028f2f50aec396b29559e Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org" Date: Sat, 3 Dec 2005 22:50:27 +0000 Subject: o Fixed bugs in UDP and SCTP protocol handlers (parse_proto) o Added the comparison infrastructure for layer-4 protocols o Added libnetfilter_conntrack_[tcp|udp|icmp|sctp].h that contains the protocol flags used by the comparison infrastructure o Added nfct_conntrack_compare to compare two conntracks based on flags o Killed nfct_event_netlink_handler o nfct_event_[conntrack|expect] requires ROOT privileges (reason: netlink multicast) o Bumped version to 0.29 --- .../libnetfilter_conntrack_sctp.h | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/libnetfilter_conntrack/libnetfilter_conntrack_sctp.h (limited to 'include/libnetfilter_conntrack/libnetfilter_conntrack_sctp.h') diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack_sctp.h b/include/libnetfilter_conntrack/libnetfilter_conntrack_sctp.h new file mode 100644 index 0000000..366bc9c --- /dev/null +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack_sctp.h @@ -0,0 +1,34 @@ +/* + * (C) 2005 by Pablo Neira Ayuso + * + * This software may be used and distributed according to the terms + * of the GNU General Public License, incorporated herein by reference. + */ + +#ifndef _LIBNETFILTER_CONNTRACK_SCTP_H_ +#define _LIBNETFILTER_CONNTRACK_SCTP_H_ + +enum sctp_flags { + SCTP_ORIG_SPORT_BIT = 0, + SCTP_ORIG_SPORT = (1 << SCTP_ORIG_SPORT_BIT), + + SCTP_ORIG_DPORT_BIT = 1, + SCTP_ORIG_DPORT = (1 << SCTP_ORIG_DPORT_BIT), + + SCTP_REPL_SPORT_BIT = 2, + SCTP_REPL_SPORT = (1 << SCTP_REPL_SPORT_BIT), + + SCTP_REPL_DPORT_BIT = 3, + SCTP_REPL_DPORT = (1 << SCTP_REPL_DPORT_BIT), + + SCTP_MASK_SPORT_BIT = 4, + SCTP_MASK_SPORT = (1 << SCTP_MASK_SPORT_BIT), + + SCTP_MASK_DPORT_BIT = 5, + SCTP_MASK_DPORT = (1 << SCTP_MASK_DPORT_BIT), + + SCTP_STATE_BIT = 6, + SCTP_STATE = (1 << SCTP_STATE_BIT) +}; + +#endif -- cgit v1.2.3