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 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: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:37 2008, using kdoc 2.0a54+XORP.