Searched refs:buf_copy (Results 1 – 2 of 2) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.c | 155 static __always_inline bool buf_copy(buf_t *buf, void *dst, size_t len) in buf_copy() function 190 return buf_copy(buf, scratch, len) ? scratch : NULL; in buf_assign() 234 if (!buf_copy(pkt, ports, sizeof(*ports))) { in pkt_parse_icmp_l4_ports() 309 if (!buf_copy(pkt, &exthdr, sizeof(exthdr))) { in pkt_skip_ipv6_extension_headers() 599 if (!buf_copy(pkt, next_hop, sizeof(*next_hop))) { in get_next_hop() 718 if (!buf_copy(pkt, &icmp, sizeof(icmp))) { in process_icmpv4() 765 if (!buf_copy(pkt, &icmp6, sizeof(icmp6))) { in process_icmpv6()
|
/external/cronet/net/socket/ |
D | ssl_client_socket_unittest.cc | 367 scoped_refptr<IOBuffer> buf_copy = base::MakeRefCounted<IOBuffer>(len); in ReadIfReady() local 368 int rv = Read(buf_copy.get(), len, in ReadIfReady() 370 base::Unretained(this), buf_copy)); in ReadIfReady() 372 memcpy(buf->data(), buf_copy->data(), rv); in ReadIfReady()
|