FD.io VPP
v16.09
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | ip_protocol(n, s) IP_PROTOCOL_##s = n, |
#define | ip_port(s, n) IP_PORT_##s = n, |
#define | foreach_ip_builtin_multicast_group |
#define | ip_csum_update(sum, old, new, type, field) |
Typedefs | |
typedef enum ip_protocol | ip_protocol_t |
typedef uword | ip_csum_t |
Enumerations | |
enum | ip_protocol { ip_protocol, ip_protocol } |
enum | ip_port_t { ip_port, ip_port } |
enum | ip_builtin_protocol_t { IP_BUILTIN_PROTOCOL_UDP, IP_BUILTIN_PROTOCOL_ICMP, IP_BUILTIN_PROTOCOL_UNKNOWN } |
enum | ip_multicast_group_t { foreach_ip_builtin_multicast_group } |
Functions | |
static ip_csum_t | ip_csum_with_carry (ip_csum_t sum, ip_csum_t x) |
static ip_csum_t | ip_csum_add_even (ip_csum_t c, ip_csum_t x) |
static ip_csum_t | ip_csum_sub_even (ip_csum_t c, ip_csum_t x) |
static ip_csum_t | ip_csum_update_inline (ip_csum_t sum, ip_csum_t old, ip_csum_t new, u32 field_byte_offset, u32 field_n_bytes) |
static u16 | ip_csum_fold (ip_csum_t c) |
ip_csum_t | ip_csum_and_memcpy (ip_csum_t sum, void *dst, void *src, uword n_bytes) |
static u16 | ip_csum_and_memcpy_fold (ip_csum_t sum, void *dst) |
ip_csum_t | ip_incremental_checksum (ip_csum_t sum, void *data, uword n_bytes) |
#define foreach_ip_builtin_multicast_group |
Definition at line 66 of file ip_packet.h.
#define ip_csum_update | ( | sum, | |
old, | |||
new, | |||
type, | |||
field | |||
) |
Definition at line 133 of file ip_packet.h.
#define ip_port | ( | s, | |
n | |||
) | IP_PORT_##s = n, |
Definition at line 54 of file ip_packet.h.
#define ip_protocol | ( | n, | |
s | |||
) | IP_PROTOCOL_##s = n, |
Definition at line 47 of file ip_packet.h.
Definition at line 86 of file ip_packet.h.
typedef enum ip_protocol ip_protocol_t |
Enumerator | |
---|---|
IP_BUILTIN_PROTOCOL_UDP | |
IP_BUILTIN_PROTOCOL_ICMP | |
IP_BUILTIN_PROTOCOL_UNKNOWN |
Definition at line 60 of file ip_packet.h.
enum ip_multicast_group_t |
Enumerator | |
---|---|
foreach_ip_builtin_multicast_group |
Definition at line 77 of file ip_packet.h.
enum ip_port_t |
Enumerator | |
---|---|
ip_port | |
ip_port |
Definition at line 53 of file ip_packet.h.
enum ip_protocol |
Enumerator | |
---|---|
ip_protocol | |
ip_protocol |
Definition at line 46 of file ip_packet.h.
Definition at line 97 of file ip_packet.h.
Definition at line 110 of file ip_checksum.c.
Definition at line 138 of file ip_packet.h.
Definition at line 113 of file ip_packet.h.
Definition at line 43 of file ip_checksum.c.