Home
last modified time | relevance | path

Searched refs:udp (Results 1 – 2 of 2) sorted by relevance

/samples/bpf/
Dparse_varlen.c33 static int udp(void *data, uint64_t tp_off, void *data_end) in udp() function
35 struct udphdr *udp = data + tp_off; in udp() local
37 if (udp + 1 > data_end) in udp()
39 if (udp->dest == htons(DEFAULT_PKTGEN_UDP_PORT) || in udp()
40 udp->source == htons(DEFAULT_PKTGEN_UDP_PORT)) { in udp()
74 return udp(data, nh_off + ihl_len, data_end); in parse_ipv4()
108 return udp(data, nh_off + ihl_len, data_end); in parse_ipv6()
Dparse_simple.c32 struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress() local
36 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*udp) > data_end) in handle_ingress()
45 if (udp->dest == htons(DEFAULT_PKTGEN_UDP_PORT)) in handle_ingress()