Searched refs:hdr (Results 1 - 25 of 58) sorted by relevance

123

/vpp/src/vnet/mpls/
H A Dmpls_lookup.h41 mpls_compute_flow_hash (const mpls_unicast_header_t * hdr, argument
52 ho_label = clib_net_to_host_u32(hdr->label_exp_s_ttl);
58 hdr++;
59 ho_label = clib_net_to_host_u32(hdr->label_exp_s_ttl);
90 hdr++;
92 switch (((u8*)hdr)[0] >> 4)
96 hash ^= ip4_compute_flow_hash ((const ip4_header_t *)hdr,
101 hash ^= ip6_compute_flow_hash ((const ip6_header_t *)hdr,
106 hash ^= bier_compute_flow_hash ((const bier_hdr_t *)hdr);
H A Dmpls.c101 mpls_unicast_header_t hdr = va_arg (*args, mpls_unicast_header_t); local
105 vnet_mpls_uc_get_label(hdr.label_exp_s_ttl),
106 vnet_mpls_uc_get_ttl(hdr.label_exp_s_ttl),
107 vnet_mpls_uc_get_exp(hdr.label_exp_s_ttl),
109 vnet_mpls_uc_get_s(hdr.label_exp_s_ttl)));
/vpp/src/vnet/bier/
H A Dbier_fwd.h23 bier_compute_flow_hash (const bier_hdr_t *hdr) argument
25 u32 first_word = clib_net_to_host_u32(hdr->bh_first_word);
H A Dbier_hdr_inlines.h85 bier_hdr_1st_nibble (bier_hdr_t *hdr) argument
87 hdr->bh_first_word &= ~(BIER_HDR_1ST_NIBBLE_MASK);
88 hdr->bh_first_word |= (BIER_HDR_1ST_NIBBLE_VALUE <<
93 bier_hdr_get_1st_nibble (bier_hdr_t *hdr) argument
95 return ((hdr->bh_first_word & BIER_HDR_1ST_NIBBLE_MASK) >>
100 bier_hdr_set_version (bier_hdr_t *hdr, argument
103 hdr->bh_first_word &= ~(BIER_HDR_VERSION_FIELD_MASK);
104 hdr->bh_first_word |= (version << BIER_HDR_VERSION_FIELD_SHIFT);
108 bier_hdr_set_len_id (bier_hdr_t *hdr, argument
111 hdr
116 bier_hdr_set_entropy(bier_hdr_t *hdr, bier_hdr_entropy_t entropy) argument
[all...]
/vpp/src/plugins/ioam/encap/
H A Dip6_ioam_pot.h23 ip6_hop_by_hop_option_t hdr;
H A Dip6_ioam_trace.h26 ip6_hop_by_hop_option_t hdr;
H A Dip6_ioam_e2e.h24 ip6_hop_by_hop_option_t hdr;
H A Dip6_ioam_e2e.c92 e2e_option->hdr.type = HBH_OPTION_TYPE_IOAM_EDGE_TO_EDGE
94 e2e_option->hdr.length = sizeof (ioam_e2e_option_t) -
/vpp/src/vnet/udp/
H A Dudp_input.c105 udp_connection_accept (udp_connection_t * listener, session_dgram_hdr_t * hdr, argument
111 ip_copy (&uc->c_lcl_ip, &hdr->lcl_ip, hdr->is_ip4);
112 ip_copy (&uc->c_rmt_ip, &hdr->rmt_ip, hdr->is_ip4);
113 uc->c_lcl_port = hdr->lcl_port;
114 uc->c_rmt_port = hdr->rmt_port;
115 uc->c_is_ip4 = hdr->is_ip4;
171 udp_parse_and_lookup_buffer (vlib_buffer_t * b, session_dgram_hdr_t * hdr, argument
182 hdr
[all...]
/vpp/src/plugins/dpdk/device/
H A Dflow.c215 ip4[0].hdr.src_addr = l2tp->src_addr.addr.as_u32;
216 ip4[1].hdr.src_addr = l2tp->src_addr.mask.as_u32;
217 ip4[0].hdr.dst_addr = l2tp->dst_addr.addr.as_u32;
218 ip4[1].hdr.dst_addr = l2tp->dst_addr.mask.as_u32;
236 ip4[0].hdr.src_addr = tesp->src_addr.addr.as_u32;
237 ip4[1].hdr.src_addr = tesp->src_addr.mask.as_u32;
238 ip4[0].hdr.dst_addr = tesp->dst_addr.addr.as_u32;
239 ip4[1].hdr.dst_addr = tesp->dst_addr.mask.as_u32;
257 ip4[0].hdr.src_addr = tah->src_addr.addr.as_u32;
258 ip4[1].hdr
[all...]
/vpp/src/vnet/devices/virtio/
H A Dvhost_user_output.c237 virtio_net_hdr_t * hdr)
257 hdr->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
258 hdr->csum_start = gho.l4_hdr_offset;
259 hdr->csum_offset = offsetof (udp_header_t, checksum);
266 hdr->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
267 hdr->csum_start = gho.l4_hdr_offset;
268 hdr->csum_offset = offsetof (tcp_header_t, checksum);
282 hdr->gso_size = vnet_buffer2 (b)->gso_size;
283 hdr->gso_type = VIRTIO_NET_HDR_GSO_TCPV4;
288 hdr
236 vhost_user_handle_tx_offload(vhost_user_intf_t * vui, vlib_buffer_t * b, virtio_net_hdr_t * hdr) argument
493 virtio_net_hdr_mrg_rxbuf_t *hdr = &cpu->tx_headers[tx_headers_len]; local
579 virtio_net_hdr_mrg_rxbuf_t *hdr = local
829 virtio_net_hdr_mrg_rxbuf_t *hdr = &cpu->tx_headers[tx_headers_len]; local
870 virtio_net_hdr_mrg_rxbuf_t *hdr = local
[all...]
H A Dnode.c60 struct virtio_net_hdr_v1 hdr; member in struct:__anon2
76 t->hdr.flags, t->hdr.gso_type, t->hdr.hdr_len, t->hdr.gso_size,
77 t->hdr.csum_start, t->hdr.csum_offset, t->hdr.num_buffers);
145 virtio_needs_csum (vlib_buffer_t * b0, struct virtio_net_hdr_v1 *hdr, argument
148 if (hdr
235 fill_gso_buffer_flags(vlib_buffer_t * b0, struct virtio_net_hdr_v1 *hdr, u8 l4_proto, u8 l4_hdr_sz) argument
295 struct virtio_net_hdr_v1 *hdr; local
[all...]
H A Ddevice.c191 set_checksum_offsets (vlib_buffer_t * b, struct virtio_net_hdr_v1 *hdr, argument
200 hdr->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
201 hdr->csum_start = gho.l4_hdr_offset; // 0x22;
204 hdr->csum_offset = STRUCT_OFFSET_OF (tcp_header_t, checksum);
208 hdr->csum_offset = STRUCT_OFFSET_OF (udp_header_t, checksum);
225 hdr->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
226 hdr->csum_start = gho.l4_hdr_offset; // 0x36;
229 hdr->csum_offset = STRUCT_OFFSET_OF (tcp_header_t, checksum);
233 hdr->csum_offset = STRUCT_OFFSET_OF (udp_header_t, checksum);
239 set_gso_offsets (vlib_buffer_t * b, struct virtio_net_hdr_v1 *hdr, in argument
288 struct virtio_net_hdr_v1 *hdr = vlib_buffer_get_current (b) - hdr_sz; local
[all...]
H A Dvhost_user_input.c103 virtio_net_hdr_mrg_rxbuf_t *hdr; local
129 if (!hdr_desc || !(hdr = map_guest_mem (vui, hdr_desc->addr, &hint)))
136 memcpy (&t->hdr, hdr, len > hdr_desc->len ? hdr_desc->len : len);
250 virtio_net_hdr_t * hdr)
273 vnet_buffer (b0)->l4_hdr_offset = hdr->csum_start;
308 if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP)
310 vnet_buffer2 (b0)->gso_size = hdr->gso_size;
314 else if (hdr->gso_type == VIRTIO_NET_HDR_GSO_TCPV4)
316 vnet_buffer2 (b0)->gso_size = hdr
249 vhost_user_handle_rx_offload(vlib_buffer_t * b0, u8 * b0_data, virtio_net_hdr_t * hdr) argument
580 virtio_net_hdr_mrg_rxbuf_t *hdr; local
794 virtio_net_hdr_mrg_rxbuf_t *hdr; local
930 virtio_net_hdr_mrg_rxbuf_t *hdr; local
[all...]
H A Dvhost_user_inline.h242 t->hdr.hdr.flags, t->hdr.hdr.gso_type);
246 format_white_space, indent, t->hdr.num_buffers);
339 virtio_net_hdr_mrg_rxbuf_t * hdr,
344 *n_descs_processed -= (hdr->num_buffers - 1);
345 for (i = 0; i < hdr->num_buffers - 1; i++)
338 vhost_user_dequeue_descs(vhost_user_vring_t * rxvq, virtio_net_hdr_mrg_rxbuf_t * hdr, u16 * n_descs_processed) argument
/vpp/src/vnet/session/
H A Dsession_node.c602 session_dgram_hdr_t *hdr = &ctx->hdr; local
604 deq_now = clib_min (hdr->data_length - hdr->data_offset,
606 n_bytes_read = svm_fifo_peek (f, hdr->data_offset, deq_now,
610 hdr->data_offset += n_bytes_read;
611 if (hdr->data_offset == hdr->data_length)
613 u32 offset = hdr->data_length + SESSION_CONN_HDR_LEN;
616 svm_fifo_peek (ctx->s->tx_fifo, 0, sizeof (ctx->hdr),
678 session_dgram_hdr_t *hdr = &ctx->hdr; local
813 session_dgram_hdr_t hdr; local
[all...]
H A Dapplication_interface.h610 session_dgram_hdr_t hdr; local
619 hdr.data_length = actual_write;
620 hdr.data_offset = 0;
621 clib_memcpy_fast (&hdr.rmt_ip, &at->rmt_ip, sizeof (ip46_address_t));
622 hdr.is_ip4 = at->is_ip4;
623 hdr.rmt_port = at->rmt_port;
624 clib_memcpy_fast (&hdr.lcl_ip, &at->lcl_ip, sizeof (ip46_address_t));
625 hdr.lcl_port = at->lcl_port;
626 rv = svm_fifo_enqueue (f, sizeof (hdr), (u8 *) & hdr);
[all...]
/vpp/src/plugins/ioam/analyse/ip6/
H A Dip6_ioam_analyse.h112 trace0->hdr.length - 2, oneway);
114 trace1->hdr.length - 2, oneway);
/vpp/src/plugins/igmp/
H A Digmp_format.c82 igmp_header_t *hdr = va_arg (*args, igmp_header_t *); local
86 if (max_header_bytes < sizeof (hdr[0]))
94 format_igmp_type, hdr->type, hdr->code,
95 clib_net_to_host_u16 (hdr->checksum));
/vpp/src/vpp-api/python/vpp_papi/
H A Dvpp_transport_socket.py120 hdr, length = self.parent.header.unpack(msg, 0)
121 if hdr.msgid != 16:
217 hdr = self._read_fixed(16)
218 if not hdr:
220 (_, hdrlen, _) = self.header.unpack(hdr) # If at head of message
/vpp/src/vnet/fib/
H A Dmpls_fib.h122 const mpls_unicast_header_t *hdr)
128 label = clib_net_to_host_u32(hdr->label_exp_s_ttl);
121 mpls_fib_table_forwarding_lookup(u32 mpls_fib_index, const mpls_unicast_header_t *hdr) argument
/vpp/src/plugins/dpdk/
H A Dbuffer.c106 struct rte_mempool_objhdr *hdr; local
109 hdr = (struct rte_mempool_objhdr *) RTE_PTR_SUB (mb, sizeof (*hdr));
110 hdr->mp = mp;
111 hdr->iova = (iova_mode == RTE_IOVA_VA) ?
113 STAILQ_INSERT_TAIL (&mp->elt_list, hdr, next);
114 STAILQ_INSERT_TAIL (&nmp->elt_list, hdr, next);
/vpp/src/plugins/ikev2/
H A Dikev2_payload.c101 ike_payload_header_t *hdr = local
106 hdr->nextpayload = payload_type;
112 hdr = (ike_payload_header_t *) tmp;
113 clib_memset (hdr, 0, len);
115 hdr->length = clib_host_to_net_u16 (len);
117 return hdr;
124 ike_payload_header_t *hdr; local
127 hdr = (ike_payload_header_t *) & c->data[c->last_hdr_off];
128 len = clib_net_to_host_u16 (hdr->length);
129 hdr
[all...]
/vpp/src/plugins/ioam/udp-ping/
H A Dudp_ping_util.c107 trace_option->hdr.type = HBH_OPTION_TYPE_IOAM_TRACE_DATA_LIST |
109 trace_option->hdr.length = trace_len;
116 current += trace_option->hdr.length + sizeof (ip6_hop_by_hop_option_t);
120 e2e->hdr.type = HBH_OPTION_TYPE_IOAM_EDGE_TO_EDGE;
121 e2e->hdr.length = e2e_len;
/vpp/src/vnet/tcp/
H A Dtcp.c526 ip4_tcp_hdr_t hdr;
527 clib_memset (&hdr, 0, sizeof (hdr));
528 hdr.ip.protocol = IP_PROTOCOL_TCP;
529 hdr.ip.address_pair.src.as_u32 = tc->c_lcl_ip.ip4.as_u32;
530 hdr.ip.address_pair.dst.as_u32 = tc->c_rmt_ip.ip4.as_u32;
531 hdr.tcp.src_port = tc->c_lcl_port;
532 hdr.tcp.dst_port = tc->c_rmt_port;
533 hash = ip4_compute_flow_hash (&hdr.ip, lb->lb_hash_config);
537 ip6_tcp_hdr_t hdr;
[all...]

Completed in 29 milliseconds

123