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_icmp.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'include/libnetfilter_conntrack/libnetfilter_conntrack_icmp.h') diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack_icmp.h b/include/libnetfilter_conntrack/libnetfilter_conntrack_icmp.h index 35e5a05..33dcf0d 100644 --- a/include/libnetfilter_conntrack/libnetfilter_conntrack_icmp.h +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack_icmp.h @@ -8,6 +8,25 @@ #ifndef _LIBNETFILTER_CONNTRACK_ICMP_H_ #define _LIBNETFILTER_CONNTRACK_ICMP_H_ -#warning "Please, remove libnetfilter_conntrack_icmp.h from your includes!" +#ifdef __cplusplus +extern "C" { +#endif + +/* WARNING: do not use these flags in your new applications, they are obsolete + * and we keep them here to avoid breaking backward compatibility. */ +enum icmp_flags { + ICMP_TYPE_BIT = 0, + ICMP_TYPE = (1 << ICMP_TYPE_BIT), + + ICMP_CODE_BIT = 1, + ICMP_CODE = (1 << ICMP_CODE_BIT), + + ICMP_ID_BIT = 2, + ICMP_ID = (1 << ICMP_ID_BIT) +}; + +#ifdef __cplusplus +} +#endif #endif -- cgit v1.2.3