#include <icmp_header.hpp>
Public Types | |
| enum | { echo_reply = 0, destination_unreachable = 3, source_quench = 4, redirect = 5, echo_request = 8, time_exceeded = 11, parameter_problem = 12, timestamp_request = 13, timestamp_reply = 14, info_request = 15, info_reply = 16, address_request = 17, address_reply = 18 } |
Public Member Functions | |
| unsigned short | checksum () const |
| void | checksum (unsigned short n) |
| unsigned char | code () const |
| void | code (unsigned char n) |
| icmp_header () | |
| unsigned short | identifier () const |
| void | identifier (unsigned short n) |
| unsigned short | sequence_number () const |
| void | sequence_number (unsigned short n) |
| unsigned char | type () const |
| void | type (unsigned char n) |
Private Member Functions | |
| unsigned short | decode (int a, int b) const |
| void | encode (int a, int b, unsigned short n) |
Private Attributes | |
| unsigned char | rep_ [8] |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const icmp_header &header) |
| std::istream & | operator>> (std::istream &is, icmp_header &header) |
Definition at line 33 of file icmp_header.hpp.
| anonymous enum |
| echo_reply | |
| destination_unreachable | |
| source_quench | |
| redirect | |
| echo_request | |
| time_exceeded | |
| parameter_problem | |
| timestamp_request | |
| timestamp_reply | |
| info_request | |
| info_reply | |
| address_request | |
| address_reply |
Definition at line 36 of file icmp_header.hpp.
| icmp_header::icmp_header | ( | ) | [inline] |
Definition at line 41 of file icmp_header.hpp.
| unsigned short icmp_header::checksum | ( | ) | const [inline] |
Definition at line 45 of file icmp_header.hpp.
| void icmp_header::checksum | ( | unsigned short | n | ) | [inline] |
Definition at line 51 of file icmp_header.hpp.
| unsigned char icmp_header::code | ( | ) | const [inline] |
Definition at line 44 of file icmp_header.hpp.
| void icmp_header::code | ( | unsigned char | n | ) | [inline] |
Definition at line 50 of file icmp_header.hpp.
| unsigned short icmp_header::decode | ( | int | a, |
| int | b | ||
| ) | const [inline, private] |
Definition at line 62 of file icmp_header.hpp.
| void icmp_header::encode | ( | int | a, |
| int | b, | ||
| unsigned short | n | ||
| ) | [inline, private] |
Definition at line 65 of file icmp_header.hpp.
| unsigned short icmp_header::identifier | ( | ) | const [inline] |
Definition at line 46 of file icmp_header.hpp.
| void icmp_header::identifier | ( | unsigned short | n | ) | [inline] |
Definition at line 52 of file icmp_header.hpp.
| unsigned short icmp_header::sequence_number | ( | ) | const [inline] |
Definition at line 47 of file icmp_header.hpp.
| void icmp_header::sequence_number | ( | unsigned short | n | ) | [inline] |
Definition at line 53 of file icmp_header.hpp.
| unsigned char icmp_header::type | ( | ) | const [inline] |
Definition at line 43 of file icmp_header.hpp.
| void icmp_header::type | ( | unsigned char | n | ) | [inline] |
Definition at line 49 of file icmp_header.hpp.
| std::ostream& operator<< | ( | std::ostream & | os, |
| const icmp_header & | header | ||
| ) | [friend] |
Definition at line 58 of file icmp_header.hpp.
| std::istream& operator>> | ( | std::istream & | is, |
| icmp_header & | header | ||
| ) | [friend] |
Definition at line 55 of file icmp_header.hpp.
unsigned char icmp_header::rep_[8] [private] |
Definition at line 71 of file icmp_header.hpp.