From ae1e1c2ce27d080be5ea44f6e81f56c22f0022dd Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Tue, 9 Apr 2013 15:40:58 -0300 Subject: [PATCH] Modified some protocols' internal type names. --- include/dhcp.h | 32 +++++++----- include/dhcpv6.h | 24 +++++---- include/dot11.h | 28 ++++++---- include/icmpv6.h | 26 ++++++---- include/ip.h | 20 +++---- include/ipv6.h | 12 +++-- include/pppoe.h | 24 ++++----- include/tcp.h | 32 +++++++----- src/dhcp.cpp | 64 +++++++++++------------ src/dhcpv6.cpp | 88 +++++++++++++++---------------- src/dot11.cpp | 73 ++++++++++++++------------ src/icmpv6.cpp | 106 +++++++++++++++++++------------------- src/ip.cpp | 42 +++++++-------- src/ipv6.cpp | 8 +-- src/pppoe.cpp | 14 ++--- src/tcp.cpp | 50 +++++++++--------- tests/src/dhcp.cpp | 6 +-- tests/src/dot11/dot11.cpp | 4 +- tests/src/icmpv6.cpp | 2 +- tests/src/ip.cpp | 10 ++-- tests/src/ipv6.cpp | 4 +- tests/src/pppoe.cpp | 6 +-- 22 files changed, 356 insertions(+), 319 deletions(-) diff --git a/include/dhcp.h b/include/dhcp.h index 72c0b32..c3ec791 100644 --- a/include/dhcp.h +++ b/include/dhcp.h @@ -67,7 +67,7 @@ namespace Tins { /** * \brief DHCP options enum. */ - enum Options { + enum OptionTypes { PAD, SUBNET_MASK, TIME_OFFSET, @@ -140,15 +140,19 @@ namespace Tins { END = 255 }; + TINS_DEPRECATED(typedef OptionTypes Options); + /** * The DHCP option type. */ - typedef PDUOption dhcp_option; + typedef PDUOption option; + + TINS_DEPRECATED(typedef option dhcp_option); /** * The type used to store the DHCP options. */ - typedef std::list options_type; + typedef std::list