Searched refs:length (Results 1 - 25 of 232) sorted by relevance

12345678910

/vpp/src/vnet/udp/
H A Dudp_packet.h49 u16 length; member in struct:__anon59
H A Dudp_pg.c75 udp0->length = clib_host_to_net_u16 (udp_len0);
77 udp_len0 = clib_host_to_net_u16 (udp0->length);
137 pg_edit_t length; member in struct:__anon60
148 _(length);
166 p->length.type = PG_EDIT_UNSPECIFIED;
177 if (unformat (input, "length %U",
178 unformat_pg_edit, unformat_pg_number, &p->length))
219 || p->length.type == PG_EDIT_UNSPECIFIED)
226 if (p->length.type == PG_EDIT_UNSPECIFIED)
H A Dudp.h310 uh->length = clib_host_to_net_u16 (udp_len);
338 length /* changed member */ );
340 ip0->length = new_l0;
342 /* Fix UDP length */
346 udp0->length = new_l0;
359 /* Fix UDP length */
361 udp0->length = new_l0;
434 length /* changed member */ );
436 length /* changed member */ );
441 ip0->length
[all...]
/vpp/src/vnet/ipfix-export/
H A Dipfix_packet.h33 version_length (u16 length) argument
35 return clib_host_to_net_u32 (0x000a0000 | length);
77 ipfix_e_id_length (int e, u16 id, u16 length) argument
80 value = (e << 31) | ((id & 0x7FFF) << 16) | length;
109 * Total length of the Set, in octets, including the Set Header, all
121 ipfix_set_id_length (u16 set_id, u16 length) argument
123 return clib_host_to_net_u32 ((set_id << 16) | length);
H A Dflow_report_classify.c76 #define _(field,mask,item,length) \
77 if (((u8 *)&field >= real_mask) && (memcmp(&field, &mask, length) == 0)) \
114 udp->length = clib_host_to_net_u16 (vec_len (rewrite) - sizeof (*ip));
122 #define _(field,mask,item,length) \
123 if (((u8 *)&field >= real_mask) && (memcmp(&field, &mask, length) == 0)) \
126 item, length); \
145 /* set length in octets */
149 /* message length in octets */
152 ip->length = clib_host_to_net_u16 ((u8 *) f - (u8 *) ip);
261 #define _(field,mask,item,length) \
[all...]
/vpp/src/plugins/ioam/lib-vxlan-gpe/
H A Dvxlan_gpe_ioam_packet.h33 u8 length; member in struct:__anon258
48 u8 length; member in struct:__anon259
H A Dvxlan_gpe_ioam_util.h46 t->next_index, fmt_trace0->length, t->trace_len);
68 format (s, "\n unrecognized option %d length %d", type0,
69 opt0->length);
72 (vxlan_gpe_ioam_option_t *) (((u8 *) opt0) + opt0->length +
104 limit0 = (vxlan_gpe_ioam_option_t *) ((u8 *) gpe_ioam0 + gpe_ioam0->length);
109 if (gpe_ioam0->length > clib_net_to_host_u16 (ip0->length))
140 (vxlan_gpe_ioam_option_t *) (((u8 *) opt0) + opt0->length +
149 u32 trace_len = gpe_ioam0->length;
/vpp/src/vnet/ip/
H A Dip6_hop_by_hop_packet.h26 u8 length; member in struct:__anon1345
40 u8 length; member in struct:__anon1346
H A Dip4_pg.c73 ip0->length =
76 ip1->length =
113 ip0->length =
169 pg_edit_t length; member in struct:__anon354
191 _(length);
240 p->length.type = PG_EDIT_UNSPECIFIED;
263 else if (unformat (input, "header-length %U",
272 else if (unformat (input, "length %U",
273 unformat_pg_edit, unformat_pg_number, &p->length))
332 if (p->length
[all...]
H A Dip_source_and_port_range_check.h129 u32 length,
136 u32 length,
/vpp/extras/vom/vom/
H A Dlldp_global_cmds.cpp46 payload.system_name.buf, m_system_name.c_str(), m_system_name.length());
47 payload.system_name.length = m_system_name.length();
H A Dlldp_binding_cmds.cpp46 memcpy(payload.port_desc.buf, m_port_desc.c_str(), m_port_desc.length());
47 payload.port_desc.length = m_port_desc.length();
/vpp/src/vnet/srv6/
H A Dsr_packet.h59 * o Hdr Ext Len: 8-bit unsigned integer, is the length of the SRH
127 u8 length; member in struct:__anon51
155 u8 length; member in struct:__anon52
/vpp/src/plugins/nsh/nsh-md2-ioam/
H A Dnsh_md2_ioam_util.h57 (nsh_tlv_header_t *) ((u8 *) opt0 + (nsh_hdr->length * 4) -
63 if ((nsh_hdr->length * 4) > clib_net_to_host_u16 (ip0->length))
100 (nsh_tlv_header_t *) (((u8 *) opt0) + opt0->length +
108 clib_memcpy_fast (&(tr->trace_data), nsh_hdr, (nsh_hdr->length * 4));
/vpp/src/plugins/nsh/
H A Dnsh_packet.h49 * Length: total length, in 4 byte words, of the NSH header, including
73 u8 length; //TTL: low 2 bit
90 u8 length;
/vpp/src/plugins/ioam/analyse/ip6/
H A Dip6_ioam_analyse.h69 (ip6_hop_by_hop_option_t *) ((u8 *) hbh0 + ((hbh0->length + 1) << 3));
83 (((u8 *) opt0) + opt0->length + sizeof (ip6_hop_by_hop_option_t));
112 trace0->hdr.length - 2, oneway);
114 trace1->hdr.length - 2, oneway);
/vpp/src/plugins/unittest/
H A Dcrypto_test.c65 exp_pt_data.length = r->plaintext_incremental;
116 if (exp_ct && memcmp (op->dst, exp_ct->data, exp_ct->length) != 0)
120 if (exp_pt && memcmp (op->dst, exp_pt->data, exp_pt->length) != 0)
125 if (exp_tag && memcmp (op->tag, exp_tag->data, exp_tag->length) != 0)
129 memcmp (op->digest, exp_digest->data, exp_digest->length) != 0)
149 format_hexdump, exp_ct->data, exp_ct->length,
150 format_hexdump, op->dst, exp_ct->length);
154 format_hexdump, exp_pt->data, exp_pt->length,
155 format_hexdump, op->dst, exp_pt->length);
156 if (r->tag.length
[all...]
/vpp/src/plugins/unittest/crypto/
H A Dcrypto.h24 u32 length; member in struct:__anon4
63 #define TEST_DATA(n) { .data = (u8 *) n, .length = sizeof (n)}
64 #define TEST_DATA_CHUNK(s,off,n) { .data = (u8 *) s + off, .length = n}
/vpp/src/vpp-api/python/vpp_papi/
H A Dvpp_format.py56 p, length = args.split('/')
58 'len': int(length)}
65 p, length = args.split('/')
67 'len': int(length)}
74 p, length = args.split('/')
76 'len': int(length)}
82 p, length = args.split('/')
84 'len': int(length)}
90 p, length = args.split('/')
92 'len': int(length)}
[all...]
/vpp/src/vnet/adj/
H A Dadj_dp.h33 ip4->length = clib_host_to_net_u16 (vlib_buffer_length_in_chain (vm, b));
41 new = ip4->length;
44 sum = ip_csum_update (sum, old, new, ip4_header_t, length);
/vpp/src/vnet/tcp/
H A Dtcp_format.c96 u32 length = o[1];
100 length = 1;
105 length = 1;
/vpp/src/vcl/
H A Dvcl_test.conf5 vpp-api-q-length 32
6 vpp-api-q-length 65536
/vpp/src/vlibapi/
H A Dapi_types.h37 u32 length; member in struct:__anon11
/vpp/src/vnet/syslog/
H A Dsyslog_udp.c54 ip->length = clib_host_to_net_u16 (ip_length);
58 udp->length = clib_host_to_net_u16 (udp_length);
/vpp/src/plugins/gtpu/
H A Dgtpu_encap.c229 /* Fix the IP4 checksum and length */
234 length /* changed member */);
236 ip4_0->length = new_l0;
241 length /* changed member */);
243 ip4_1->length = new_l1;
248 length /* changed member */);
250 ip4_2->length = new_l2;
255 length /* changed member */);
257 ip4_3->length = new_l3;
259 /* Fix UDP length an
[all...]

Completed in 18 milliseconds

12345678910