/third_party/lwip/src/core/ |
D | inet_chksum.c | 260 inet_cksum_pseudo_base(struct pbuf *p, u8_t proto, u16_t proto_len, u32_t acc) in inet_cksum_pseudo_base() argument 286 acc += (u32_t)lwip_htons(proto_len); in inet_cksum_pseudo_base() 310 inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, in inet_chksum_pseudo() argument 326 return inet_cksum_pseudo_base(p, proto, proto_len, acc); in inet_chksum_pseudo() 343 ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, in ip6_chksum_pseudo() argument 362 return inet_cksum_pseudo_base(p, proto, proto_len, acc); in ip6_chksum_pseudo() 379 ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, in ip_chksum_pseudo() argument 384 return ip6_chksum_pseudo(p, proto, proto_len, ip_2_ip6(src), ip_2_ip6(dest)); in ip_chksum_pseudo() 392 return inet_chksum_pseudo(p, proto, proto_len, ip_2_ip4(src), ip_2_ip4(dest)); in ip_chksum_pseudo() 399 inet_cksum_pseudo_partial_base(struct pbuf *p, u8_t proto, u16_t proto_len, in inet_cksum_pseudo_partial_base() argument [all …]
|
/third_party/lwip/src/include/lwip/ |
D | inet_chksum.h | 81 u16_t inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 84 u16_t proto_len, u16_t chksum_len, const ip4_addr_t *src, const ip4_addr_t *dest); 88 u16_t ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 90 u16_t ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, 95 u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 97 u16_t ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len,
|
/third_party/gstreamer/gstplugins_bad/ext/webrtc/ |
D | webrtcdatachannel.c | 114 gsize proto_len = strlen (channel->parent.protocol); in construct_open_packet() local 115 gsize size = 12 + label_len + proto_len; in construct_open_packet() 167 if (!gst_byte_writer_put_uint16_be (&w, (guint16) proto_len)) in construct_open_packet() 173 proto_len)) in construct_open_packet() 408 guint16 priority, label_len, proto_len; in _parse_control_packet() local 433 if (!gst_byte_reader_get_uint16_be (&r, &proto_len)) in _parse_control_packet() 437 proto = g_new0 (gchar, (gsize) proto_len + 1); in _parse_control_packet() 443 if (!gst_byte_reader_get_data (&r, proto_len, &src)) in _parse_control_packet() 445 memcpy (proto, src, proto_len); in _parse_control_packet() 446 proto[proto_len] = '\0'; in _parse_control_packet()
|
/third_party/openssl/test/helpers/ |
D | handshake.c | 1414 unsigned int proto_len = 0; in do_handshake_internal() local 1648 SSL_get0_next_proto_negotiated(client.ssl, &proto, &proto_len); in do_handshake_internal() 1649 ret->client_npn_negotiated = dup_str(proto, proto_len); in do_handshake_internal() 1651 SSL_get0_next_proto_negotiated(server.ssl, &proto, &proto_len); in do_handshake_internal() 1652 ret->server_npn_negotiated = dup_str(proto, proto_len); in do_handshake_internal() 1655 SSL_get0_alpn_selected(client.ssl, &proto, &proto_len); in do_handshake_internal() 1656 ret->client_alpn_negotiated = dup_str(proto, proto_len); in do_handshake_internal() 1658 SSL_get0_alpn_selected(server.ssl, &proto, &proto_len); in do_handshake_internal() 1659 ret->server_alpn_negotiated = dup_str(proto, proto_len); in do_handshake_internal()
|
/third_party/ffmpeg/libavformat/ |
D | avio.c | 258 size_t proto_len = strspn(filename, URL_SCHEME_CHARS); in url_find_protocol() local 261 if (filename[proto_len] != ':' && in url_find_protocol() 262 (strncmp(filename, "subfile,", 8) || !strchr(filename + proto_len + 1, ':')) || in url_find_protocol() 267 FFMIN(proto_len + 1, sizeof(proto_str))); in url_find_protocol()
|
/third_party/nghttp2/src/ |
D | shrpx_tls.cc | 689 auto proto_len = *p; in alpn_select_proto_cb() local 691 if (proto_id + proto_len <= end && in alpn_select_proto_cb() 692 util::streq(target_proto_id, StringRef{proto_id, proto_len})) { in alpn_select_proto_cb() 695 *outlen = proto_len; in alpn_select_proto_cb() 700 p += 1 + proto_len; in alpn_select_proto_cb() 723 auto proto_len = *p; in quic_alpn_select_proto_cb() local 725 if (alpn.size() == proto_len && in quic_alpn_select_proto_cb() 728 *outlen = proto_len; in quic_alpn_select_proto_cb() 733 p += 1 + proto_len; in quic_alpn_select_proto_cb()
|
/third_party/openssl/apps/ |
D | s_client.c | 3281 unsigned int proto_len; in print_stuff() local 3282 SSL_get0_next_proto_negotiated(s, &proto, &proto_len); in print_stuff() 3284 BIO_write(bio, proto, proto_len); in print_stuff() 3290 unsigned int proto_len; in print_stuff() local 3291 SSL_get0_alpn_selected(s, &proto, &proto_len); in print_stuff() 3292 if (proto_len > 0) { in print_stuff() 3294 BIO_write(bio, proto, proto_len); in print_stuff()
|
/third_party/python/Modules/_ctypes/ |
D | _ctypes.c | 2073 Py_ssize_t proto_len; in PyCSimpleType_new() local 2095 proto_str = PyUnicode_AsUTF8AndSize(proto, &proto_len); in PyCSimpleType_new() 2103 if (proto_len != 1) { in PyCSimpleType_new()
|