class IpHeader4Writer
|
Class for writing data to IPv4 packet header.
More... |
|
|
Public Methods
IpHeader4Writer (uint8_t* data)
| IpHeader4Writer |
Get the buffer data.
Returns: the buffer data.
Reimplemented from IpHeader4.
void set_ip_vhl (uint8_t v)
| set_ip_vhl |
Methods to set various IP header fields.
void set_ip_tos (uint8_t v)
| set_ip_tos |
void set_ip_len (uint16_t v)
| set_ip_len |
void set_ip_id (uint16_t v)
| set_ip_id |
void set_ip_off (uint16_t v)
| set_ip_off |
void set_ip_ttl (uint8_t v)
| set_ip_ttl |
void set_ip_p (uint8_t v)
| set_ip_p |
void set_ip_sum (uint16_t v)
| set_ip_sum |
void set_ip_src (const IPv4& v)
| set_ip_src |
void set_ip_dst (const IPv4& v)
| set_ip_dst |
void compute_checksum ()
| compute_checksum |
A method to compute and set the IP checksum.
void set_ip_len_host (uint16_t v)
| set_ip_len_host |
void set_ip_version (uint8_t v)
| set_ip_version |
Set the IP protocol version of the header.
Parameters:
v | the IP protocol version of the header.
|
void set_ip_header_len (uint8_t v)
| set_ip_header_len |
Set the IPv4 packet header size (including any header options).
Parameters:
v | the IPv4 packet header size (including any header options).
|
void set_ip_fragment_offset (uint16_t v)
| set_ip_fragment_offset |
Set the IPv4 fragment offset (excluding the fragment flags).
Parameters:
v | the IPv4 fragment offset (excluding the fragment flags).
|
void set_ip_fragment_flags (uint16_t v)
| set_ip_fragment_flags |
Set the IPv4 fragment flags.
Parameters:
v | the IPv4 fragment flags.
|
Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:10:46 2009, using kdoc 2.0a54+XORP.