diff --git a/include/arp.h b/include/arp.h index 44c15ec..47cf44a 100644 --- a/include/arp.h +++ b/include/arp.h @@ -272,19 +272,6 @@ namespace Tins { * \param total_sz The size of the buffer. */ bool matches_response(uint8_t *ptr, uint32_t total_sz); - - /** - * \brief Clones this pdu, filling the corresponding header with data - * extracted from a buffer. - * - * \deprecated This method is obsolete. - * - * \param ptr The pointer to the from from which the data will be extracted. - * \param total_sz The size of the buffer. - * \return The cloned PDU. - * \sa PDU::clone_packet - */ - TINS_DEPRECATED(PDU *clone_packet(const uint8_t *ptr, uint32_t total_sz)); /** * \sa PDU::clone diff --git a/include/dhcp.h b/include/dhcp.h index b0da952..00032d2 100644 --- a/include/dhcp.h +++ b/include/dhcp.h @@ -140,15 +140,11 @@ namespace Tins { END = 255 }; - TINS_DEPRECATED(typedef OptionTypes Options); - /** * The DHCP option type. */ typedef PDUOption option; - TINS_DEPRECATED(typedef option dhcp_option); - /** * The type used to store the DHCP options. */ diff --git a/include/dhcpv6.h b/include/dhcpv6.h index 5fc5db8..363835f 100644 --- a/include/dhcpv6.h +++ b/include/dhcpv6.h @@ -47,8 +47,6 @@ public: * Represents a DHCPv6 option. */ typedef PDUOption option; - - TINS_DEPRECATED(typedef option dhcpv6_option); /** * The message types. @@ -152,8 +150,6 @@ public: KRB_DEFAULT_REALM_NAME, KRB_KDC }; - - TINS_DEPRECATED(typedef OptionTypes Option); /** * The type used to store the DHCPv6 options. diff --git a/include/dot11.h b/include/dot11.h index 8651cda..6ca1ada 100644 --- a/include/dot11.h +++ b/include/dot11.h @@ -112,8 +112,6 @@ namespace Tins { RSN = 48, EXT_SUPPORTED_RATES = 50 }; - - TINS_DEPRECATED(typedef OptionTypes TaggedOption); /** * \brief Enum for the different subtypes of 802.11 management frames. @@ -173,8 +171,6 @@ namespace Tins { */ typedef PDUOption option; - TINS_DEPRECATED(typedef option dot11_option); - /** * \brief Constructor for creating an 802.11 PDU * @@ -384,12 +380,6 @@ namespace Tins { */ void send(PacketSender &sender, const NetworkInterface &iface); #endif // WIN32 - - /** - * \brief Adds a new option to this Dot11 PDU. - * \param opt The option to be added. - */ - TINS_DEPRECATED(void add_tagged_option(const option &opt)); /** * \brief Adds a new option to this Dot11 PDU. diff --git a/include/dot3.h b/include/dot3.h index 3915db1..6ff808f 100644 --- a/include/dot3.h +++ b/include/dot3.h @@ -166,19 +166,6 @@ namespace Tins { */ PDUType pdu_type() const { return pdu_flag; } - /** - * \brief Clones this pdu, filling the corresponding header with data - * extracted from a buffer. - * - * \deprecated This method is obsolete. - * - * \param ptr The pointer to the from from which the data will be extracted. - * \param total_sz The size of the buffer. - * \return The cloned PDU. - * \sa PDU::clone_packet - */ - TINS_DEPRECATED(PDU *clone_packet(const uint8_t *ptr, uint32_t total_sz)); - /** * \sa PDU::clone */ diff --git a/include/ethernetII.h b/include/ethernetII.h index 33e5d9c..fe6a2c2 100644 --- a/include/ethernetII.h +++ b/include/ethernetII.h @@ -170,19 +170,6 @@ namespace Tins { */ PDUType pdu_type() const { return PDU::ETHERNET_II; } - /** - * \brief Clones this pdu, filling the corresponding header with data - * extracted from a buffer. - * - * \deprecated This method is obsolete. - * - * \param ptr The pointer to the from from which the data will be extracted. - * \param total_sz The size of the buffer. - * \return The cloned PDU. - * \sa PDU::clone_packet - */ - TINS_DEPRECATED(PDU *clone_packet(const uint8_t *ptr, uint32_t total_sz)); - /** * \sa PDU::clone */ diff --git a/include/icmp.h b/include/icmp.h index 5b6ecd6..1cdb06b 100644 --- a/include/icmp.h +++ b/include/icmp.h @@ -287,19 +287,6 @@ namespace Tins { * \sa PDU::pdu_type */ PDUType pdu_type() const { return PDU::ICMP; } - - /** - * \brief Clones this pdu, filling the corresponding header with data - * extracted from a buffer. - * - * \deprecated This method is obsolete. - * - * \param ptr The pointer to the from from which the data will be extracted. - * \param total_sz The size of the buffer. - * \return The cloned PDU. - * \sa PDU::clone_packet - */ - TINS_DEPRECATED(PDU *clone_packet(const uint8_t *ptr, uint32_t total_sz)); /** * \sa PDU::clone diff --git a/include/icmpv6.h b/include/icmpv6.h index 06ef028..f10067a 100644 --- a/include/icmpv6.h +++ b/include/icmpv6.h @@ -122,8 +122,6 @@ public: CARD_REPLY }; - TINS_DEPRECATED(typedef OptionTypes Options); - /** * The type used to store addresses. */ @@ -139,8 +137,6 @@ public: */ typedef PDUOption option; - TINS_DEPRECATED(typedef option icmpv6_option); - /** * The type used to store options. */ diff --git a/include/ip.h b/include/ip.h index c20346a..99e9918 100644 --- a/include/ip.h +++ b/include/ip.h @@ -170,8 +170,6 @@ namespace Tins { * The IP options type. */ typedef PDUOption option; - - TINS_DEPRECATED(typedef option ip_option); /** * The type of the security option. @@ -597,19 +595,6 @@ namespace Tins { */ PDUType pdu_type() const { return PDU::IP; } - /** - * \brief Clones this pdu, filling the corresponding header with data - * extracted from a buffer. - * - * \deprecated This method is obsolete. - * - * \param ptr The pointer to the from from which the data will be extracted. - * \param total_sz The size of the buffer. - * \return The cloned PDU. - * \sa PDU::clone_packet - */ - TINS_DEPRECATED(PDU *clone_packet(const uint8_t *ptr, uint32_t total_sz)); - /** * \sa PDU::clone */ diff --git a/include/ipv6.h b/include/ipv6.h index 2716d1b..b71315a 100644 --- a/include/ipv6.h +++ b/include/ipv6.h @@ -62,8 +62,6 @@ public: */ typedef PDUOption ext_header; - TINS_DEPRECATED(typedef ext_header ipv6_ext_header); - /** * The type used to store the extension headers. */ diff --git a/include/pdu.h b/include/pdu.h index 0fc2e8b..bf22197 100644 --- a/include/pdu.h +++ b/include/pdu.h @@ -346,17 +346,6 @@ namespace Tins { * \return Returns the PDUType corresponding to the PDU. */ virtual PDUType pdu_type() const = 0; - - /** \brief Clones this pdu, filling the corresponding header with data - * extracted from a buffer. - * - * \deprecated This method is obsolete. - * - * \param ptr The pointer to the from from which the data will be extracted. - * \param total_sz The size of the buffer. - * \return The cloned PDU. - */ - TINS_DEPRECATED(virtual PDU *clone_packet(const uint8_t *ptr, uint32_t total_sz)); protected: /** * \brief Copy constructor. diff --git a/include/pdu_cacher.h b/include/pdu_cacher.h index ac9cf59..968b387 100644 --- a/include/pdu_cacher.h +++ b/include/pdu_cacher.h @@ -126,13 +126,6 @@ public: PDUType pdu_type() const { return cached.pdu_type(); } - - /** - * Forwards the call to the cached PDU. \sa PDU::clone_packet. - */ - TINS_DEPRECATED(PDU *clone_packet(const uint8_t *ptr, uint32_t total_sz)) { - return 0; - } private: void write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *parent) { if(cached_serialization.size() != total_sz) { diff --git a/include/tcp.h b/include/tcp.h index 3794a73..517214f 100644 --- a/include/tcp.h +++ b/include/tcp.h @@ -90,8 +90,6 @@ namespace Tins { ALTCHK = 14 }; - TINS_DEPRECATED(typedef OptionTypes Option); - /** * \brief Alternate checksum enum. */ @@ -105,8 +103,6 @@ namespace Tins { * The type used to store TCP options. */ typedef PDUOption option; - - TINS_DEPRECATED(typedef option tcp_option); /** * The type used to store the options. @@ -363,18 +359,6 @@ namespace Tins { * \param value The new value for this flag. Must be 0 or 1. */ void set_flag(Flags tcp_flag, small_uint<1> value); - - /** - * \brief Adds a TCP option. - * - * \deprecated This function is deprecated. The overloads taking - * a TCP::option should be used. - * - * \param option The option type flag to be set. - * \param length The length of this option(optional). - * \param data Pointer to this option's data(optional). - */ - TINS_DEPRECATED(void add_option(OptionTypes opt, uint8_t length = 0, const uint8_t *data = 0)); /** * \brief Adds a TCP option. diff --git a/include/utils.h b/include/utils.h index deea1ea..7872110 100644 --- a/include/utils.h +++ b/include/utils.h @@ -95,16 +95,6 @@ namespace Tins { */ IPv4Address mask; }; - - /** - * \brief Resolves a domain name and returns its corresponding ip address. - * - * If an ip address is given, its integer representation is returned. - * Otherwise, the domain name is resolved and its ip address is returned. - * - * \param to_resolve The domain name/ip address to resolve. - */ - IPv4Address resolve_ip(const std::string &to_resolve); /** * \brief Resolves a domain name and returns its corresponding ip address. @@ -125,21 +115,6 @@ namespace Tins { * \param to_resolve The domain name/ip address to resolve. */ IPv6Address resolve_domain6(const std::string &to_resolve); - - /** - * \brief Resolves the hardware address for a given ip. - * - * \param iface The interface in which the packet will be sent. - * \param ip The ip to resolve, in integer format. - * \param buffer The buffer in which the host's hardware address will be stored. - * \param sender The sender to use to send and receive the ARP requests. - * \return Returns true if the hardware address was resolved successfully, - * false otherwise. - */ - TINS_DEPRECATED( - bool resolve_hwaddr(const NetworkInterface &iface, IPv4Address ip, - HWAddress<6> *address, PacketSender &sender) - ); /** * \brief Resolves the hardware address for a given ip. diff --git a/src/arp.cpp b/src/arp.cpp index 260e5e0..d7c135e 100644 --- a/src/arp.cpp +++ b/src/arp.cpp @@ -119,10 +119,6 @@ bool ARP::matches_response(uint8_t *ptr, uint32_t total_sz) { return arp_ptr->ar_sip == _arp.ar_tip && arp_ptr->ar_tip == _arp.ar_sip; } -PDU *ARP::clone_packet(const uint8_t *ptr, uint32_t total_sz) { - return new ARP(ptr, total_sz); -} - EthernetII ARP::make_arp_request(ipaddress_type target, ipaddress_type sender, const hwaddress_type &hw_snd) { diff --git a/src/dot11.cpp b/src/dot11.cpp index 740c6c9..632c8af 100644 --- a/src/dot11.cpp +++ b/src/dot11.cpp @@ -120,11 +120,6 @@ void Dot11::add_option(const option &opt) { _options.push_back(opt); } -void Dot11::add_tagged_option(const option &opt) { - internal_add_option(opt); - _options.push_back(opt); -} - const Dot11::option *Dot11::search_option(OptionTypes opt) const { for(std::list