Home
last modified time | relevance | path

Searched refs:udphdr (Results 1 – 22 of 22) sorted by relevance

/external/tcpdump/
Dprint-udp.c109 vat_print(const void *hdr, register const struct udphdr *up) in vat_print()
135 rtp_print(const void *hdr, u_int len, register const struct udphdr *up) in rtp_print()
286 register const struct udphdr *up, in udp_cksum()
294 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum()
362 register const struct udphdr *up; in udp_print()
373 up = (struct udphdr *)bp; in udp_print()
391 if (length < sizeof(struct udphdr)) { in udp_print()
396 length -= sizeof(struct udphdr); in udp_print()
544 sum = udp_cksum(ip, up, length + sizeof(struct udphdr)); in udp_print()
558 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr)); in udp_print()
Dudp.h41 struct udphdr { struct
Dprint-icmp6.c56 static struct udphdr *get_upperlayer(u_char *, u_int *);
309 const struct udphdr *ouh; in icmp6_print()
594 static struct udphdr *
599 struct udphdr *uh; in get_upperlayer()
621 uh = (struct udphdr *)bp; in get_upperlayer()
Dprint-icmp.c342 const struct udphdr *ouh; in icmp_print()
385 ouh = (struct udphdr *)(((u_char *)oip) + hlen); in icmp_print()
/external/android-clat/
Dtranslate.c343 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp, in udp_packet()
348 if(len < sizeof(struct udphdr)) { in udp_packet()
354 payload_size = len - sizeof(struct udphdr); in udp_packet()
404 int udp_translate(clat_packet out, clat_packet_index pos, const struct udphdr *udp, in udp_translate()
406 struct udphdr *udp_targ = out[pos].iov_base; in udp_translate()
408 memcpy(udp_targ, udp, sizeof(struct udphdr)); in udp_translate()
410 out[pos].iov_len = sizeof(struct udphdr); in udp_translate()
Dclatd_test.cpp277 struct udphdr *udp = (struct udphdr *) payload; in check_packet()
399 struct udphdr *udp; in fix_udp_checksum()
403 udp = (struct udphdr *) (ip + 1); in fix_udp_checksum()
409 udp = (struct udphdr *) (ip6 + 1); in fix_udp_checksum()
545 return ((struct udphdr *) payload)->check; in get_transport_checksum()
751 ASSERT_EQ(sizeof(struct udphdr), sizeof(udp_header)) << "Test UDP header: incorrect length\n"; in TEST_F()
754 struct udphdr *udp; in TEST_F()
756 udp = (struct udphdr *) (v4_udp_packet + sizeof(struct iphdr)); in TEST_F()
762 udp = (struct udphdr *) (v6_udp_packet + sizeof(struct ip6_hdr)); in TEST_F()
811 uint8_t udphdr[] = { UDP_HEADER }; in TEST_F() local
[all …]
Ddump.h23 void dump_udp(const struct udphdr *udp, const struct iphdr *ip,
31 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6,
Ddump.c133 void dump_udp_generic(const struct udphdr *udp, uint32_t temp_checksum, in dump_udp_generic()
137 temp_checksum = ip_checksum_add(temp_checksum, udp, sizeof(struct udphdr)); in dump_udp_generic()
149 void dump_udp(const struct udphdr *udp, const struct iphdr *ip, in dump_udp()
157 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, in dump_udp6()
Dtranslate.h80 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
86 int udp_translate(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
Dclatd_microbenchmark.c50 #define PAYLOADSIZE (1280 - sizeof(struct iphdr) - sizeof(struct udphdr))
89 struct udphdr udp = { in send_packet()
Dipv4.c131 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv4_packet()
Dipv6.c163 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv6_packet()
/external/dnsmasq/src/
Dbpf.c165 struct udphdr { in send_via_bpf() struct
204 sizeof(struct udphdr) + in send_via_bpf()
224 udp.uh_ulen = sum = htons(sizeof(struct udphdr) + len); in send_via_bpf()
230 for (i = 0; i < sizeof(struct udphdr)/2; i++) in send_via_bpf()
/external/kernel-headers/original/uapi/linux/
Dudp.h22 struct udphdr { struct
/external/toybox/toys/pending/
Dtraceroute.c266 struct udphdr *hudp; in do_trace()
271 hudp = (struct udphdr*) ((char*)hip + (hip->ip_hl << 2)); in do_trace()
389 struct udphdr *hudp; in do_trace()
393 hudp = (struct udphdr*) (hip + 1); in do_trace()
Ddhcpd.c106 struct udphdr udph;
Ddhcp.c173 struct udphdr udph;
/external/iputils/Modules/
Dpg3.c243 struct udphdr *udph; in fill_packet()
258 udph = (struct udphdr*)skb_put(skb, sizeof( struct udphdr)); in fill_packet()
/external/wpa_supplicant_8/src/ap/
Ddhcp_snoop.c23 struct udphdr udph;
/external/iputils/
Dtraceroute6.c840 struct udphdr *up; in packet_ok()
844 up = (struct udphdr *)(hip+1); in packet_ok()
/external/dhcpcd/
Dnet.c674 struct udphdr udp;
708 struct udphdr *udp; in make_udp_packet()
/external/ipsec-tools/src/racoon/
Disakmp.c204 char lbuf[sizeof(struct udphdr) +
246 struct udphdr *udp;
250 udp = (struct udphdr *)&x.lbuf[0];
258 udp = (struct udphdr *)&x.lbuf[0];