Public Member Functions | Private Member Functions | Private Attributes | Friends
ipv4_header Class Reference

#include <ipv4_header.hpp>

List of all members.

Public Member Functions

boost::asio::ip::address_v4 destination_address () const
bool dont_fragment () const
unsigned short fragment_offset () const
unsigned short header_checksum () const
unsigned short header_length () const
unsigned short identification () const
 ipv4_header ()
bool more_fragments () const
unsigned char protocol () const
boost::asio::ip::address_v4 source_address () const
unsigned int time_to_live () const
unsigned short total_length () const
unsigned char type_of_service () const
unsigned char version () const

Private Member Functions

unsigned short decode (int a, int b) const

Private Attributes

unsigned char rep_ [60]

Friends

std::istream & operator>> (std::istream &is, ipv4_header &header)

Detailed Description

Definition at line 51 of file ipv4_header.hpp.


Constructor & Destructor Documentation

Definition at line 54 of file ipv4_header.hpp.


Member Function Documentation

unsigned short ipv4_header::decode ( int  a,
int  b 
) const [inline, private]

Definition at line 96 of file ipv4_header.hpp.

boost::asio::ip::address_v4 ipv4_header::destination_address ( ) const [inline]

Definition at line 75 of file ipv4_header.hpp.

bool ipv4_header::dont_fragment ( ) const [inline]

Definition at line 61 of file ipv4_header.hpp.

unsigned short ipv4_header::fragment_offset ( ) const [inline]

Definition at line 63 of file ipv4_header.hpp.

unsigned short ipv4_header::header_checksum ( ) const [inline]

Definition at line 66 of file ipv4_header.hpp.

unsigned short ipv4_header::header_length ( ) const [inline]

Definition at line 57 of file ipv4_header.hpp.

unsigned short ipv4_header::identification ( ) const [inline]

Definition at line 60 of file ipv4_header.hpp.

bool ipv4_header::more_fragments ( ) const [inline]

Definition at line 62 of file ipv4_header.hpp.

unsigned char ipv4_header::protocol ( ) const [inline]

Definition at line 65 of file ipv4_header.hpp.

boost::asio::ip::address_v4 ipv4_header::source_address ( ) const [inline]

Definition at line 68 of file ipv4_header.hpp.

unsigned int ipv4_header::time_to_live ( ) const [inline]

Definition at line 64 of file ipv4_header.hpp.

unsigned short ipv4_header::total_length ( ) const [inline]

Definition at line 59 of file ipv4_header.hpp.

unsigned char ipv4_header::type_of_service ( ) const [inline]

Definition at line 58 of file ipv4_header.hpp.

unsigned char ipv4_header::version ( ) const [inline]

Definition at line 56 of file ipv4_header.hpp.


Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  is,
ipv4_header header 
) [friend]

Definition at line 82 of file ipv4_header.hpp.


Member Data Documentation

unsigned char ipv4_header::rep_[60] [private]

Definition at line 99 of file ipv4_header.hpp.


The documentation for this class was generated from the following file:


rosping
Author(s): Kei Okada
autogenerated on Wed Jul 10 2019 03:24:14