The IPv4 header. More...
#include "rohc_utils.h"#include <stdint.h>#include "config.h"

Go to the source code of this file.
Data Structures | |
| struct | ipv4_hdr |
| The IPv4 header. More... | |
Defines | |
| #define | IPV4_ADDR_FORMAT "%02x%02x%02x%02x (%u.%u.%u.%u)" |
| #define | IPV4_ADDR_RAW(x) |
| #define | IPV4_RF 0x8000 |
| #define | IPV4_DF 0x4000 |
| #define | IPV4_MF 0x2000 |
| #define | IPV4_OFFMASK 0x1fff |
Functions | |
| static bool | ipv4_is_fragment (const struct ipv4_hdr *const ipv4) |
| Whether the IPv4 packet is fragmented or not. | |
The IPv4 header.
| #define IPV4_ADDR_FORMAT "%02x%02x%02x%02x (%u.%u.%u.%u)" |
The format to print an IPv4 address
| #define IPV4_ADDR_RAW | ( | x | ) |
(x)[0], (x)[1], (x)[2], (x)[3], \
(x)[0], (x)[1], (x)[2], (x)[3]
The data to print an IPv4 address in raw format
| #define IPV4_DF 0x4000 |
Mask for Don't Fragment (DF) flag
| #define IPV4_MF 0x2000 |
Mask for More Fragments (MF) flag
| #define IPV4_OFFMASK 0x1fff |
mask for Fragment Offset field
| #define IPV4_RF 0x8000 |
Mask for reserved flag
| static bool ipv4_is_fragment | ( | const struct ipv4_hdr *const | ipv4 | ) | [inline, static] |
Whether the IPv4 packet is fragmented or not.
The IPv4 packet shall be at least sizeof(struct ipv4_hdr) long.
| ipv4 | The IPv4 packet to check |
1.6.1