Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 25 of 1109) sorted by relevance

12345678910>>...45

/third_party/openssl/test/
Dwpackettest.c31 static int cleanup(WPACKET *pkt) in cleanup() argument
33 WPACKET_cleanup(pkt); in cleanup()
39 WPACKET pkt; in test_WPACKET_init() local
44 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_init()
45 || !TEST_true(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init()
47 || !TEST_false(WPACKET_close(&pkt)) in test_WPACKET_init()
49 || !TEST_true(WPACKET_finish(&pkt)) in test_WPACKET_init()
54 || !TEST_false(WPACKET_close(&pkt)) in test_WPACKET_init()
55 || !TEST_false(WPACKET_finish(&pkt)) in test_WPACKET_init()
56 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
[all …]
Dpackettest.c19 PACKET pkt; in test_PACKET_remaining() local
21 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_remaining()
22 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN) in test_PACKET_remaining()
23 || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 1)) in test_PACKET_remaining()
24 || !TEST_size_t_eq(PACKET_remaining(&pkt), 1) in test_PACKET_remaining()
25 || !TEST_true(PACKET_forward(&pkt, 1)) in test_PACKET_remaining()
26 || !TEST_size_t_eq(PACKET_remaining(&pkt), 0)) in test_PACKET_remaining()
34 PACKET pkt; in test_PACKET_end() local
36 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_end()
37 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN) in test_PACKET_end()
[all …]
/third_party/node/deps/openssl/openssl/include/internal/
Dpacket.h30 static ossl_inline void packet_forward(PACKET *pkt, size_t len) in packet_forward() argument
32 pkt->curr += len; in packet_forward()
33 pkt->remaining -= len; in packet_forward()
39 static ossl_inline size_t PACKET_remaining(const PACKET *pkt) in PACKET_remaining() argument
41 return pkt->remaining; in PACKET_remaining()
50 static ossl_inline const unsigned char *PACKET_end(const PACKET *pkt) in PACKET_end() argument
52 return pkt->curr + pkt->remaining; in PACKET_end()
59 static ossl_inline const unsigned char *PACKET_data(const PACKET *pkt) in PACKET_data() argument
61 return pkt->curr; in PACKET_data()
69 __owur static ossl_inline int PACKET_buf_init(PACKET *pkt, in PACKET_buf_init() argument
[all …]
/third_party/openssl/include/internal/
Dpacket.h30 static ossl_inline void packet_forward(PACKET *pkt, size_t len) in packet_forward() argument
32 pkt->curr += len; in packet_forward()
33 pkt->remaining -= len; in packet_forward()
39 static ossl_inline size_t PACKET_remaining(const PACKET *pkt) in PACKET_remaining() argument
41 return pkt->remaining; in PACKET_remaining()
50 static ossl_inline const unsigned char *PACKET_end(const PACKET *pkt) in PACKET_end() argument
52 return pkt->curr + pkt->remaining; in PACKET_end()
59 static ossl_inline const unsigned char *PACKET_data(const PACKET *pkt) in PACKET_data() argument
61 return pkt->curr; in PACKET_data()
69 __owur static ossl_inline int PACKET_buf_init(PACKET *pkt, in PACKET_buf_init() argument
[all …]
/third_party/openssl/crypto/
Dpacket.c16 int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes) in WPACKET_allocate_bytes() argument
18 if (!WPACKET_reserve_bytes(pkt, len, allocbytes)) in WPACKET_allocate_bytes()
21 pkt->written += len; in WPACKET_allocate_bytes()
22 pkt->curr += len; in WPACKET_allocate_bytes()
26 int WPACKET_sub_allocate_bytes__(WPACKET *pkt, size_t len, in WPACKET_sub_allocate_bytes__() argument
29 if (!WPACKET_start_sub_packet_len__(pkt, lenbytes) in WPACKET_sub_allocate_bytes__()
30 || !WPACKET_allocate_bytes(pkt, len, allocbytes) in WPACKET_sub_allocate_bytes__()
31 || !WPACKET_close(pkt)) in WPACKET_sub_allocate_bytes__()
43 int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes) in WPACKET_reserve_bytes() argument
46 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes()
[all …]
Dder_writer.c16 static int int_start_context(WPACKET *pkt, int tag) in int_start_context() argument
22 return WPACKET_start_sub_packet(pkt); in int_start_context()
25 static int int_end_context(WPACKET *pkt, int tag) in int_end_context() argument
45 return WPACKET_get_total_written(pkt, &size1) in int_end_context()
46 && WPACKET_close(pkt) in int_end_context()
47 && WPACKET_get_total_written(pkt, &size2) in int_end_context()
48 && (size1 == size2 || WPACKET_put_bytes_u8(pkt, tag)); in int_end_context()
51 int ossl_DER_w_precompiled(WPACKET *pkt, int tag, in ossl_DER_w_precompiled() argument
55 return int_start_context(pkt, tag) in ossl_DER_w_precompiled()
56 && WPACKET_memcpy(pkt, precompiled, precompiled_n) in ossl_DER_w_precompiled()
[all …]
Dasn1_dsa.c39 int ossl_encode_der_length(WPACKET *pkt, size_t cont_len) in ossl_encode_der_length() argument
45 if (!WPACKET_put_bytes_u8(pkt, 0x82) in ossl_encode_der_length()
46 || !WPACKET_put_bytes_u16(pkt, cont_len)) in ossl_encode_der_length()
50 && !WPACKET_put_bytes_u8(pkt, 0x81)) in ossl_encode_der_length()
52 if (!WPACKET_put_bytes_u8(pkt, cont_len)) in ossl_encode_der_length()
66 int ossl_encode_der_integer(WPACKET *pkt, const BIGNUM *n) in ossl_encode_der_integer() argument
85 if (!WPACKET_start_sub_packet(pkt) in ossl_encode_der_integer()
86 || !WPACKET_put_bytes_u8(pkt, ID_INTEGER) in ossl_encode_der_integer()
87 || !ossl_encode_der_length(pkt, cont_len) in ossl_encode_der_integer()
88 || !WPACKET_allocate_bytes(pkt, cont_len, &bnbytes) in ossl_encode_der_integer()
[all …]
/third_party/node/deps/openssl/openssl/crypto/
Dpacket.c16 int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes) in WPACKET_allocate_bytes() argument
18 if (!WPACKET_reserve_bytes(pkt, len, allocbytes)) in WPACKET_allocate_bytes()
21 pkt->written += len; in WPACKET_allocate_bytes()
22 pkt->curr += len; in WPACKET_allocate_bytes()
26 int WPACKET_sub_allocate_bytes__(WPACKET *pkt, size_t len, in WPACKET_sub_allocate_bytes__() argument
29 if (!WPACKET_start_sub_packet_len__(pkt, lenbytes) in WPACKET_sub_allocate_bytes__()
30 || !WPACKET_allocate_bytes(pkt, len, allocbytes) in WPACKET_sub_allocate_bytes__()
31 || !WPACKET_close(pkt)) in WPACKET_sub_allocate_bytes__()
43 int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes) in WPACKET_reserve_bytes() argument
46 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes()
[all …]
Dder_writer.c16 static int int_start_context(WPACKET *pkt, int tag) in int_start_context() argument
22 return WPACKET_start_sub_packet(pkt); in int_start_context()
25 static int int_end_context(WPACKET *pkt, int tag) in int_end_context() argument
45 return WPACKET_get_total_written(pkt, &size1) in int_end_context()
46 && WPACKET_close(pkt) in int_end_context()
47 && WPACKET_get_total_written(pkt, &size2) in int_end_context()
48 && (size1 == size2 || WPACKET_put_bytes_u8(pkt, tag)); in int_end_context()
51 int ossl_DER_w_precompiled(WPACKET *pkt, int tag, in ossl_DER_w_precompiled() argument
55 return int_start_context(pkt, tag) in ossl_DER_w_precompiled()
56 && WPACKET_memcpy(pkt, precompiled, precompiled_n) in ossl_DER_w_precompiled()
[all …]
Dasn1_dsa.c39 int ossl_encode_der_length(WPACKET *pkt, size_t cont_len) in ossl_encode_der_length() argument
45 if (!WPACKET_put_bytes_u8(pkt, 0x82) in ossl_encode_der_length()
46 || !WPACKET_put_bytes_u16(pkt, cont_len)) in ossl_encode_der_length()
50 && !WPACKET_put_bytes_u8(pkt, 0x81)) in ossl_encode_der_length()
52 if (!WPACKET_put_bytes_u8(pkt, cont_len)) in ossl_encode_der_length()
66 int ossl_encode_der_integer(WPACKET *pkt, const BIGNUM *n) in ossl_encode_der_integer() argument
85 if (!WPACKET_start_sub_packet(pkt) in ossl_encode_der_integer()
86 || !WPACKET_put_bytes_u8(pkt, ID_INTEGER) in ossl_encode_der_integer()
87 || !ossl_encode_der_length(pkt, cont_len) in ossl_encode_der_integer()
88 || !WPACKET_allocate_bytes(pkt, cont_len, &bnbytes) in ossl_encode_der_integer()
[all …]
/third_party/ffmpeg/libavcodec/
Davpacket.c35 void av_init_packet(AVPacket *pkt) in av_init_packet() argument
37 pkt->pts = AV_NOPTS_VALUE; in av_init_packet()
38 pkt->dts = AV_NOPTS_VALUE; in av_init_packet()
39 pkt->pos = -1; in av_init_packet()
40 pkt->duration = 0; in av_init_packet()
41 pkt->flags = 0; in av_init_packet()
42 pkt->stream_index = 0; in av_init_packet()
43 pkt->buf = NULL; in av_init_packet()
44 pkt->side_data = NULL; in av_init_packet()
45 pkt->side_data_elems = 0; in av_init_packet()
[all …]
/third_party/mesa3d/src/freedreno/common/
Dfreedreno_pm4.h92 #define pkt_is_type0(pkt) (((pkt)&0XC0000000) == CP_TYPE0_PKT) argument
93 #define type0_pkt_size(pkt) ((((pkt) >> 16) & 0x3FFF) + 1) argument
94 #define type0_pkt_offset(pkt) ((pkt)&0x7FFF) argument
96 #define pkt_is_type2(pkt) ((pkt) == CP_TYPE2_PKT) argument
98 #define pkt_is_type3(pkt) \ argument
99 ((((pkt)&0xC0000000) == CP_TYPE3_PKT) && (((pkt)&0x80FE) == 0))
101 #define cp_type3_opcode(pkt) (((pkt) >> 8) & 0xFF) argument
102 #define type3_pkt_size(pkt) ((((pkt) >> 16) & 0x3FFF) + 1) argument
113 #define pkt_is_type4(pkt) \ argument
114 ((((pkt)&0xF0000000) == CP_TYPE4_PKT) && \
[all …]
/third_party/node/deps/openssl/openssl/ssl/statem/
Dstatem_local.h62 typedef int (*confunc_f) (SSL *s, WPACKET *pkt);
70 int parse_ca_names(SSL *s, PACKET *pkt);
72 int construct_ca_names(SSL *s, const STACK_OF(X509_NAME) *ca_sk, WPACKET *pkt);
83 int ossl_statem_client_construct_message(SSL *s, WPACKET *pkt,
86 MSG_PROCESS_RETURN ossl_statem_client_process_message(SSL *s, PACKET *pkt);
96 int ossl_statem_server_construct_message(SSL *s, WPACKET *pkt,
99 MSG_PROCESS_RETURN ossl_statem_server_process_message(SSL *s, PACKET *pkt);
114 __owur MSG_PROCESS_RETURN tls_process_change_cipher_spec(SSL *s, PACKET *pkt);
115 __owur MSG_PROCESS_RETURN tls_process_finished(SSL *s, PACKET *pkt);
116 __owur int tls_construct_change_cipher_spec(SSL *s, WPACKET *pkt);
[all …]
Dextensions_clnt.c15 EXT_RETURN tls_construct_ctos_renegotiate(SSL *s, WPACKET *pkt, in tls_construct_ctos_renegotiate() argument
23 if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate) in tls_construct_ctos_renegotiate()
24 || !WPACKET_start_sub_packet_u16(pkt) in tls_construct_ctos_renegotiate()
25 || !WPACKET_sub_memcpy_u8(pkt, s->s3.previous_client_finished, in tls_construct_ctos_renegotiate()
27 || !WPACKET_close(pkt)) { in tls_construct_ctos_renegotiate()
35 EXT_RETURN tls_construct_ctos_server_name(SSL *s, WPACKET *pkt, in tls_construct_ctos_server_name() argument
43 if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_name) in tls_construct_ctos_server_name()
45 || !WPACKET_start_sub_packet_u16(pkt) in tls_construct_ctos_server_name()
47 || !WPACKET_start_sub_packet_u16(pkt) in tls_construct_ctos_server_name()
48 || !WPACKET_put_bytes_u8(pkt, TLSEXT_NAMETYPE_host_name) in tls_construct_ctos_server_name()
[all …]
Dextensions_srvr.c41 int tls_parse_ctos_renegotiate(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_renegotiate() argument
48 if (!PACKET_get_1(pkt, &ilen) in tls_parse_ctos_renegotiate()
49 || !PACKET_get_bytes(pkt, &data, ilen)) { in tls_parse_ctos_renegotiate()
94 int tls_parse_ctos_server_name(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_server_name() argument
100 if (!PACKET_as_length_prefixed_2(pkt, &sni) in tls_parse_ctos_server_name()
166 int tls_parse_ctos_maxfragmentlen(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_maxfragmentlen() argument
171 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_ctos_maxfragmentlen()
203 int tls_parse_ctos_srp(SSL *s, PACKET *pkt, unsigned int context, X509 *x, in tls_parse_ctos_srp() argument
208 if (!PACKET_as_length_prefixed_1(pkt, &srp_I) in tls_parse_ctos_srp()
223 int tls_parse_ctos_ec_pt_formats(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_ec_pt_formats() argument
[all …]
/third_party/openssl/ssl/statem/
Dstatem_local.h62 typedef int (*confunc_f) (SSL *s, WPACKET *pkt);
70 int parse_ca_names(SSL *s, PACKET *pkt);
72 int construct_ca_names(SSL *s, const STACK_OF(X509_NAME) *ca_sk, WPACKET *pkt);
83 int ossl_statem_client_construct_message(SSL *s, WPACKET *pkt,
86 MSG_PROCESS_RETURN ossl_statem_client_process_message(SSL *s, PACKET *pkt);
96 int ossl_statem_server_construct_message(SSL *s, WPACKET *pkt,
99 MSG_PROCESS_RETURN ossl_statem_server_process_message(SSL *s, PACKET *pkt);
110 __owur MSG_PROCESS_RETURN tls_process_change_cipher_spec(SSL *s, PACKET *pkt);
111 __owur MSG_PROCESS_RETURN tls_process_finished(SSL *s, PACKET *pkt);
112 __owur int tls_construct_change_cipher_spec(SSL *s, WPACKET *pkt);
[all …]
Dextensions_clnt.c15 EXT_RETURN tls_construct_ctos_renegotiate(SSL *s, WPACKET *pkt, in tls_construct_ctos_renegotiate() argument
23 if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate) in tls_construct_ctos_renegotiate()
24 || !WPACKET_start_sub_packet_u16(pkt) in tls_construct_ctos_renegotiate()
25 || !WPACKET_sub_memcpy_u8(pkt, s->s3.previous_client_finished, in tls_construct_ctos_renegotiate()
27 || !WPACKET_close(pkt)) { in tls_construct_ctos_renegotiate()
35 EXT_RETURN tls_construct_ctos_server_name(SSL *s, WPACKET *pkt, in tls_construct_ctos_server_name() argument
43 if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_name) in tls_construct_ctos_server_name()
45 || !WPACKET_start_sub_packet_u16(pkt) in tls_construct_ctos_server_name()
47 || !WPACKET_start_sub_packet_u16(pkt) in tls_construct_ctos_server_name()
48 || !WPACKET_put_bytes_u8(pkt, TLSEXT_NAMETYPE_host_name) in tls_construct_ctos_server_name()
[all …]
Dextensions_srvr.c41 int tls_parse_ctos_renegotiate(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_renegotiate() argument
48 if (!PACKET_get_1(pkt, &ilen) in tls_parse_ctos_renegotiate()
49 || !PACKET_get_bytes(pkt, &data, ilen)) { in tls_parse_ctos_renegotiate()
94 int tls_parse_ctos_server_name(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_server_name() argument
100 if (!PACKET_as_length_prefixed_2(pkt, &sni) in tls_parse_ctos_server_name()
166 int tls_parse_ctos_maxfragmentlen(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_maxfragmentlen() argument
171 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_ctos_maxfragmentlen()
203 int tls_parse_ctos_srp(SSL *s, PACKET *pkt, unsigned int context, X509 *x, in tls_parse_ctos_srp() argument
208 if (!PACKET_as_length_prefixed_1(pkt, &srp_I) in tls_parse_ctos_srp()
223 int tls_parse_ctos_ec_pt_formats(SSL *s, PACKET *pkt, unsigned int context, in tls_parse_ctos_ec_pt_formats() argument
[all …]
/third_party/ffmpeg/libavformat/
Dmux.c491 static int compute_muxer_pkt_fields(AVFormatContext *s, AVStream *st, AVPacket *pkt) in compute_muxer_pkt_fields() argument
501 (pkt->pts == AV_NOPTS_VALUE || pkt->dts == AV_NOPTS_VALUE)) { in compute_muxer_pkt_fields()
511 …av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(sti->cur_dts), delay, pkt->size, pkt->stream_i… in compute_muxer_pkt_fields()
513 if (pkt->pts == AV_NOPTS_VALUE && pkt->dts != AV_NOPTS_VALUE && delay == 0) in compute_muxer_pkt_fields()
514 pkt->pts = pkt->dts; in compute_muxer_pkt_fields()
517 if ((pkt->pts == 0 || pkt->pts == AV_NOPTS_VALUE) && pkt->dts == AV_NOPTS_VALUE && !delay) { in compute_muxer_pkt_fields()
523 pkt->dts = in compute_muxer_pkt_fields()
525 pkt->pts = sti->priv_pts->val; in compute_muxer_pkt_fields()
529 if (pkt->pts != AV_NOPTS_VALUE && pkt->dts == AV_NOPTS_VALUE && delay <= MAX_REORDER_DELAY) { in compute_muxer_pkt_fields()
530 sti->pts_buffer[0] = pkt->pts; in compute_muxer_pkt_fields()
[all …]
Drtpdec_qt.c37 AVPacket *pkt; member
45 qt->pkt = av_packet_alloc(); in qt_rtp_init()
46 if (!qt->pkt) in qt_rtp_init()
53 AVStream *st, AVPacket *pkt, in qt_rtp_parse_packet() argument
65 int num = qt->pkt->size / qt->bytes_per_frame; in qt_rtp_parse_packet()
67 if ((ret = av_new_packet(pkt, qt->bytes_per_frame)) < 0) in qt_rtp_parse_packet()
69 pkt->stream_index = st->index; in qt_rtp_parse_packet()
70 pkt->flags = qt->pkt->flags; in qt_rtp_parse_packet()
71 memcpy(pkt->data, in qt_rtp_parse_packet()
72 &qt->pkt->data[(num - qt->remaining) * qt->bytes_per_frame], in qt_rtp_parse_packet()
[all …]
Dact.c116 AVPacket *pkt) in read_packet() argument
125 ret=av_new_packet(pkt, 10); in read_packet()
127 ret=av_new_packet(pkt, 11); in read_packet()
139 pkt->data[0]=ctx->audio_buffer[11]; in read_packet()
140 pkt->data[1]=ctx->audio_buffer[0]; in read_packet()
141 pkt->data[2]=ctx->audio_buffer[12]; in read_packet()
142 pkt->data[3]=ctx->audio_buffer[1]; in read_packet()
143 pkt->data[4]=ctx->audio_buffer[13]; in read_packet()
144 pkt->data[5]=ctx->audio_buffer[2]; in read_packet()
145 pkt->data[6]=ctx->audio_buffer[14]; in read_packet()
[all …]
Ddemux.c416 static int probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt) in probe_codec() argument
427 if (pkt) { in probe_codec()
428 uint8_t *new_buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE); in probe_codec()
436 memcpy(pd->buf + pd->buf_size, pkt->data, pkt->size); in probe_codec()
437 pd->buf_size += pkt->size; in probe_codec()
451 if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) { in probe_codec()
469 static int update_wrap_reference(AVFormatContext *s, AVStream *st, int stream_index, AVPacket *pkt) in update_wrap_reference() argument
472 int64_t ref = pkt->dts; in update_wrap_reference()
478 ref = pkt->pts; in update_wrap_reference()
537 int ff_read_packet(AVFormatContext *s, AVPacket *pkt) in ff_read_packet() argument
[all …]
/third_party/lwip/src/netif/ppp/
Ddemand.c146 struct packet *pkt, *nextpkt; in demand_discard() local
156 for (pkt = pend_q; pkt != NULL; pkt = nextpkt) { in demand_discard()
157 nextpkt = pkt->next; in demand_discard()
158 free(pkt); in demand_discard()
289 struct packet *pkt; local
299 pkt = (struct packet *) malloc(sizeof(struct packet) + len);
300 if (pkt != NULL) {
301 pkt->length = len;
302 pkt->next = NULL;
303 memcpy(pkt->data, frame, len);
[all …]
/third_party/ffmpeg/fftools/
Dffmpeg_mux.c44 void of_write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, in of_write_packet() argument
61 av_packet_unref(pkt); in of_write_packet()
73 (ost->muxing_queue_data_size + pkt->size) > ost->muxing_queue_data_threshold; in of_write_packet()
87 ret = av_packet_make_refcounted(pkt); in of_write_packet()
93 av_packet_move_ref(tmp_pkt, pkt); in of_write_packet()
101 pkt->pts = pkt->dts = AV_NOPTS_VALUE; in of_write_packet()
105 if (pkt->duration > 0) in of_write_packet()
107 pkt->duration = av_rescale_q(1, av_inv_q(ost->frame_rate), in of_write_packet()
112 av_packet_rescale_ts(pkt, ost->mux_timebase, ost->st->time_base); in of_write_packet()
115 if (pkt->dts != AV_NOPTS_VALUE && in of_write_packet()
[all …]
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c59 struct ip4_datagram pkt; member
354 struct ip4_datagram pkt; /* sending IPv4 packet */ in create_clean_packet() local
358 memset(&pkt, '\0', sizeof(struct ip4_datagram)); in create_clean_packet()
363 icmp_p = (struct icmp4_segment *)&(pkt.payload); in create_clean_packet()
366 pkt.hdr.version = 4; in create_clean_packet()
367 pkt.hdr.ihl = sizeof(struct iphdr) / 4; in create_clean_packet()
368 pkt.hdr.tos = 0; in create_clean_packet()
369 pkt.hdr.tot_len = htons(pkt_size); in create_clean_packet()
370 pkt.hdr.id = htons(IPV4_PACKET_ID); in create_clean_packet()
371 pkt.hdr.frag_off = htons(IPV4_DEFAULT_FLAG); in create_clean_packet()
[all …]

12345678910>>...45