Searched refs:udphdr (Results 1 - 25 of 38) sorted by relevance

12

/external/kernel-headers/original/uapi/linux/
H A Dudp.h22 struct udphdr { struct
/external/qemu/slirp/
H A Dtftp.h18 struct udphdr udp;
H A Dudp.h45 struct udphdr { struct
57 struct udphdr ui_u; /* udp header */
H A Dbootp.h97 struct udphdr udp;
H A Dtftp.c164 sizeof(struct ip) - sizeof(struct udphdr);
206 sizeof(struct ip) - sizeof(struct udphdr);
262 sizeof(struct ip) - sizeof(struct udphdr);
H A Dudp.c78 register struct udphdr *uh;
105 uh = (struct udphdr *)((caddr_t)ip + iphlen);
222 iphlen += sizeof(struct udphdr);
282 ui->ui_len = htons(m->m_len - sizeof(struct ip)); /* + sizeof (struct udphdr)); */
H A Dbootp.c315 sizeof(struct ip) - sizeof(struct udphdr);
/external/qemu/slirp-android/
H A Dtftp.h18 struct udphdr udp;
H A Dudp.h47 struct udphdr { struct
59 struct udphdr ui_u; /* udp header */
H A Dbootp.h97 struct udphdr udp;
H A Dtftp.c166 sizeof(struct ip) - sizeof(struct udphdr);
207 sizeof(struct ip) - sizeof(struct udphdr);
265 sizeof(struct ip) - sizeof(struct udphdr);
H A Dudp.c85 register struct udphdr *uh;
112 uh = (struct udphdr *)((caddr_t)ip + iphlen);
272 iphlen += sizeof(struct udphdr);
337 ui->ui_len = htons(m->m_len - sizeof(struct ip)); /* + sizeof (struct udphdr)); */
/external/android-clat/
H A 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,
H A Dtranslate.h91 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
97 int udp_translate(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
H A Dtranslate.c343 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
348 if(len < sizeof(struct udphdr)) {
354 payload_size = len - sizeof(struct udphdr);
404 int udp_translate(clat_packet out, clat_packet_index pos, const struct udphdr *udp,
406 struct udphdr *udp_targ = out[pos].iov_base;
408 memcpy(udp_targ, udp, sizeof(struct udphdr));
410 out[pos].iov_len = sizeof(struct udphdr);
H A Ddump.c133 void dump_udp_generic(const struct udphdr *udp, uint32_t temp_checksum,
137 temp_checksum = ip_checksum_add(temp_checksum, udp, sizeof(struct udphdr));
149 void dump_udp(const struct udphdr *udp, const struct iphdr *ip,
157 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6,
H A Dclatd_test.cpp277 struct udphdr *udp = (struct udphdr *) payload;
399 struct udphdr *udp;
403 udp = (struct udphdr *) (ip + 1);
409 udp = (struct udphdr *) (ip6 + 1);
548 return ((struct udphdr *) payload)->check;
754 ASSERT_EQ(sizeof(struct udphdr), sizeof(udp_header)) << "Test UDP header: incorrect length\n";
757 struct udphdr *udp;
759 udp = (struct udphdr *) (v4_udp_packet + sizeof(struct iphdr));
765 udp = (struct udphdr *) (v6_udp_packe
814 uint8_t udphdr[] = { UDP_HEADER }; local
[all...]
H A Dipv4.c131 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum,
H A Dipv6.c163 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum,
/external/tcpdump/
H A Dudp.h41 struct udphdr { struct
H A Dprint-udp.c109 vat_print(const void *hdr, register const struct udphdr *up)
135 rtp_print(const void *hdr, u_int len, register const struct udphdr *up)
286 register const struct udphdr *up,
294 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up,
362 register const struct udphdr *up;
373 up = (struct udphdr *)bp;
391 if (length < sizeof(struct udphdr)) {
396 length -= sizeof(struct udphdr);
544 sum = udp_cksum(ip, up, length + sizeof(struct udphdr));
558 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr));
[all...]
H A Dprint-icmp6.c56 static struct udphdr *get_upperlayer(u_char *, u_int *);
309 const struct udphdr *ouh;
594 static struct udphdr *
599 struct udphdr *uh;
621 uh = (struct udphdr *)bp;
H A Dprint-icmp.c342 const struct udphdr *ouh;
385 ouh = (struct udphdr *)(((u_char *)oip) + hlen);
/external/dnsmasq/src/
H A Dbpf.c165 struct udphdr { struct
204 sizeof(struct udphdr) +
224 udp.uh_ulen = sum = htons(sizeof(struct udphdr) + len);
230 for (i = 0; i < sizeof(struct udphdr)/2; i++)
/external/iputils/Modules/
H A Dpg3.c243 struct udphdr *udph;
258 udph = (struct udphdr*)skb_put(skb, sizeof( struct udphdr));
269 udph->len= htons(datalen+8); /* DATA + udphdr */

Completed in 3702 milliseconds

12