Searched refs:buf_proto (Results 1 – 2 of 2) sorted by relevance
367 const guint8 *buf_proto; in gst_pcap_parse_scan_frame() local453 buf_proto = buf_ip + ip_header_size; in gst_pcap_parse_scan_frame()457 src_port = GUINT16_FROM_BE (*((guint16 *) (buf_proto + 0))); in gst_pcap_parse_scan_frame()458 dst_port = GUINT16_FROM_BE (*((guint16 *) (buf_proto + 2))); in gst_pcap_parse_scan_frame()462 len = GUINT16_FROM_BE (*((guint16 *) (buf_proto + 4))); in gst_pcap_parse_scan_frame()463 if (len < UDP_HEADER_LEN || buf_proto + len > buf + buf_size) in gst_pcap_parse_scan_frame()466 *payload = buf_proto + UDP_HEADER_LEN; in gst_pcap_parse_scan_frame()469 if (buf_proto + 12 >= buf + buf_size) in gst_pcap_parse_scan_frame()471 len = (buf_proto[12] >> 4) * 4; in gst_pcap_parse_scan_frame()472 if (buf_proto + len > buf + buf_size) in gst_pcap_parse_scan_frame()[all …]
959 buf_proto = test_utils.make_test_protocol(asyncio.BufferedProtocol)961 buf_proto.get_buffer.side_effect = lambda hint: buf963 transport.set_protocol(buf_proto)968 buf_proto.get_buffer.assert_called_with(-1)969 buf_proto.buffer_updated.assert_called_with(10)