Searched refs:udp (Results 1 – 2 of 2) sorted by relevance
33 static int udp(void *data, uint64_t tp_off, void *data_end) in udp() function35 struct udphdr *udp = data + tp_off; in udp() local37 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()
32 struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress() local36 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()