diff options
| author | Matias Fontanini <matias.fontanini@gmail.com> | 2013-01-31 16:48:32 -0300 |
|---|---|---|
| committer | Matias Fontanini <matias.fontanini@gmail.com> | 2013-01-31 16:48:32 -0300 |
| commit | a24e0d5a4b4ef380818e7763c2a5885c413c2cd4 (patch) | |
| tree | 2e62c0aac378dadb29380ce270ff801bd1f78096 /include/ip.h | |
| parent | c6dc18d215d2876a6107ebc9841f975306827cca (diff) | |
Done some changes on the build system.v0.3
Diffstat (limited to 'include/ip.h')
| -rw-r--r-- | include/ip.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/ip.h b/include/ip.h index 93ad541..688f892 100644 --- a/include/ip.h +++ b/include/ip.h @@ -215,6 +215,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. * * Both the destination and source IP address can be supplied. @@ -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; }; } |
