The new Boost API no longer provides a static size() method on
address_v6::bytes_type (std::array). The assertions verifying that
IPv6 addresses are 16 bytes have been removed as the size is a
well-known constant already documented by the code comments.
address Ipv6Header::get_source_address() const
{
address_v6::bytes_type address; // 16 bytes
- BOOST_ASSERT( 16 == address_v6::bytes_type::size() );
address.fill( 0 );
size_t header_byte_index = 8;
address Ipv6Header::get_destination_address() const
{
address_v6::bytes_type address; // 16 bytes
- BOOST_ASSERT( 16 == address_v6::bytes_type::size() );
address.fill( 0 );
size_t header_byte_index = 24;