Lines Matching defs:udph

73 	struct udphdr *udph = NULL;
92 sizeof(*udph));
105 udph = data + sizeof(*iph) + sizeof(*eth);
110 sizeof(*udph));
123 udph = data + sizeof(*ipv6h) + sizeof(*eth);
128 if (udph + 1 > (struct udphdr *)data_end)
131 if (udph->dest != bpf_htons(port))
136 return udph;
141 struct udphdr *udph = NULL;
143 udph = filter_udphdr(ctx, port);
144 if (!udph)
154 struct udphdr *udph = NULL;
156 udph = filter_udphdr(ctx, port);
157 if (!udph)
177 struct udphdr *udph = NULL;
197 sizeof(*udph));
210 udph = data + sizeof(*iph) + sizeof(*eth);
212 if (udph + 1 > (struct udphdr *)data_end)
214 if (udph->dest != bpf_htons(port))
234 sizeof(*udph));
247 udph = data + sizeof(*ipv6h) + sizeof(*eth);
249 if (udph + 1 > (struct udphdr *)data_end)
251 if (udph->dest != bpf_htons(port))
275 struct udphdr *udph = NULL;
291 udph = (void *)eth + sizeof(*iph) + sizeof(*eth);
292 if (!udph || udph + 1 > (struct udphdr *)data_end)
295 len_new = bpf_htons(bpf_ntohs(udph->len) + offset);
303 udph = (void *)eth + sizeof(*ipv6h) + sizeof(*eth);
304 if (!udph || udph + 1 > (struct udphdr *)data_end)
307 *udp_csum = ~((__u32)udph->check);
316 len = udph->len;
317 len_new = bpf_htons(bpf_ntohs(udph->len) + offset);
324 udph->len = len_new;
326 return udph;
339 struct udphdr *udph = NULL;
342 udph = update_pkt(ctx, 0 - offset, &udp_csum);
343 if (!udph)
362 udph->check = (__u16)csum_fold_helper(udp_csum);
375 struct udphdr *udph;
386 udph = update_pkt(ctx, offset, &udp_csum);
387 if (!udph)
406 udph->check = (__u16)csum_fold_helper(udp_csum);
423 struct udphdr *udph = NULL;
430 udph = filter_udphdr(ctx, port);
431 if (!udph)
434 hdr_len = (void *)udph - (void *)(long)ctx->data +
462 struct udphdr *udph;
473 udph = update_pkt(ctx, (__s16)(0 - offset), &udp_csum);
474 if (!udph)
487 udph->check = (__u16)csum_fold_helper(udp_csum);
523 struct udphdr *udph;
525 udph = update_pkt(ctx, (__s16)(offset), &udp_csum);
526 if (!udph)
544 udph->check = (__u16)csum_fold_helper(udp_csum);