1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 13:04:28 +01:00

Done some changes on the build system.

This commit is contained in:
Matias Fontanini
2013-01-31 16:48:32 -03:00
parent c6dc18d215
commit a24e0d5a4b
15 changed files with 138 additions and 14 deletions

View File

@@ -504,6 +504,14 @@ public:
* \return The stored link address field.
*/
const ipaddress_type &link_address() const { return link_addr; }
/**
* \brief Getter for the DHCPv6 options.
*
* \return The stored options.
*/
const options_type &options() const { return options_; }
;
// Setters
/**

View File

@@ -583,6 +583,14 @@ public:
return _dest_address;
}
/**
* \brief Getter for the ICMPv6 options.
* \return The stored options.
*/
const options_type &options() const {
return _options;
}
// Setters
/**

View File

@@ -214,6 +214,11 @@ namespace Tins {
*/
typedef generic_route_option_type record_route_type;
/**
* The type used to store IP options.
*/
typedef std::list<ip_option> options_type;
/**
* \brief Constructor for building the IP PDU.
*
@@ -318,6 +323,12 @@ namespace Tins {
*/
small_uint<4> version() const { return _ip.version; }
/**
* \brief Getter for the IP options.
* \return The stored options.
*/
const options_type &options() const { return _ip_options; }
/* Setters */
/**
@@ -616,7 +627,7 @@ namespace Tins {
generic_route_option_type search_route_option(option_identifier id) const;
iphdr _ip;
std::list<ip_option> _ip_options;
options_type _ip_options;
uint32_t _options_size, _padded_options_size;
};
}

View File

@@ -192,6 +192,14 @@ public:
return _header.dst_addr;
}
/**
* \brief Getter for the IPv6 extension headers.
* \return The stored headers.
*/
const headers_type& headers() const {
return ext_headers;
}
// Setters
/**