33 b->
flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
53 ip->
length = clib_host_to_net_u16 (ip_length);
57 udp->
length = clib_host_to_net_u16 (udp_length);
63 b->
flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
u16 collector_port
UDP port number of remote host (destination)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
u32 fib_index
FIB table index.
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
void syslog_add_udp_transport(vlib_main_t *vm, u32 bi)
Add UDP/IP transport layer by prepending it to existing data.
u16 ip4_tcp_udp_compute_checksum(vlib_main_t *vm, vlib_buffer_t *p0, ip4_header_t *ip0)
syslog_main_t syslog_main
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
ip4_address_t src_address
IPv4 address of sender (source)
VLIB buffer representation.
ip4_address_t collector
IPv4 address of remote host (destination)
#define IP4_HEADER_FLAG_DONT_FRAGMENT
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
static u16 ip4_header_checksum(ip4_header_t *i)