Home
last modified time | relevance | path

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

/external/tcpdump/
Dprint-udp.c97 vat_print(netdissect_options *ndo, const void *hdr, register const struct udphdr *up) in vat_print()
124 register const struct udphdr *up) in rtp_print()
275 register const struct udphdr *up, in udp_cksum()
283 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum()
351 register const struct udphdr *up; in udp_print()
362 up = (struct udphdr *)bp; in udp_print()
379 if (length < sizeof(struct udphdr)) { in udp_print()
385 if (ulen < sizeof(struct udphdr)) { in udp_print()
390 ulen -= sizeof(struct udphdr); in udp_print()
391 length -= sizeof(struct udphdr); in udp_print()
[all …]
Dudp.h40 struct udphdr { struct
Dprint-icmp.c338 const struct udphdr *ouh; in icmp_print()
381 ouh = (struct udphdr *)(((u_char *)oip) + hlen); in icmp_print()
Dprint-icmp6.c484 static const struct udphdr *get_upperlayer(netdissect_options *ndo, const u_char *, u_int *);
895 const struct udphdr *ouh; in icmp6_print()
1181 static const struct udphdr *
1186 const struct udphdr *uh; in get_upperlayer()
1208 uh = (struct udphdr *)bp; in get_upperlayer()
/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()
Ddhcp6.c114 struct udphdr udph;
Ddhcpd.c164 struct udphdr udph;
170 struct udphdr udph;
Ddhcp.c170 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/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];
/external/dhcpcd-6.8.2/
Ddhcp.c115 struct udphdr udp;
1596 struct udphdr *udp; in dhcp_makeudppacket()