From e23cbcdbab77ee432f592da1ea4cec958f436bed Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 21 Jun 2009 21:13:22 +0200 Subject: src: recover some obsolete enums and constants not to break backward This patch partially reverts 76e6042107de23790f0532e3bf3c396cba27e5aa since it recovers some obsolete enums and constants that are required to avoid breaking compilation of old versions of the conntrack-tools. Signed-off-by: Pablo Neira Ayuso --- .../libnetfilter_conntrack_tcp.h | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'include/libnetfilter_conntrack/libnetfilter_conntrack_tcp.h') diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack_tcp.h b/include/libnetfilter_conntrack/libnetfilter_conntrack_tcp.h index 1fd5ef1..35eb114 100644 --- a/include/libnetfilter_conntrack/libnetfilter_conntrack_tcp.h +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack_tcp.h @@ -28,6 +28,37 @@ enum tcp_state { TCP_CONNTRACK_IGNORE }; +/* WARNING: do not use these flags in your new applications, they are obsolete + * and we keep them here to avoid breaking backward compatibility. */ +enum tcp_flags { + TCP_ORIG_SPORT_BIT = 0, + TCP_ORIG_SPORT = (1 << TCP_ORIG_SPORT_BIT), + + TCP_ORIG_DPORT_BIT = 1, + TCP_ORIG_DPORT = (1 << TCP_ORIG_DPORT_BIT), + + TCP_REPL_SPORT_BIT = 2, + TCP_REPL_SPORT = (1 << TCP_REPL_SPORT_BIT), + + TCP_REPL_DPORT_BIT = 3, + TCP_REPL_DPORT = (1 << TCP_REPL_DPORT_BIT), + + TCP_MASK_SPORT_BIT = 4, + TCP_MASK_SPORT = (1 << TCP_MASK_SPORT_BIT), + + TCP_MASK_DPORT_BIT = 5, + TCP_MASK_DPORT = (1 << TCP_MASK_DPORT_BIT), + + TCP_STATE_BIT = 6, + TCP_STATE = (1 << TCP_STATE_BIT), + + TCP_EXPTUPLE_SPORT_BIT = 7, + TCP_EXPTUPLE_SPORT = (1 << TCP_EXPTUPLE_SPORT_BIT), + + TCP_EXPTUPLE_DPORT_BIT = 8, + TCP_EXPTUPLE_DPORT = (1 << TCP_EXPTUPLE_DPORT_BIT) +}; + #ifdef __cplusplus } #endif -- cgit v1.2.3