/bionic/tests/ |
netinet_udp_test.cpp | 31 static_assert(offsetof(udphdr, uh_sport) == offsetof(udphdr, source), "udphdr::source"); 32 static_assert(offsetof(udphdr, uh_dport) == offsetof(udphdr, dest), "udphdr::dest"); 33 static_assert(offsetof(udphdr, uh_ulen) == offsetof(udphdr, len), "udphdr::len"); 34 static_assert(offsetof(udphdr, uh_sum) == offsetof(udphdr, check), "udphdr::check") [all...] |
/external/syslinux/gpxe/src/core/ |
gdbudp.c | 63 struct udp_header *udphdr; local 121 if ( iob_len ( iob ) < sizeof ( *udphdr ) ) { 124 udphdr = iob->data; 125 if ( udphdr->dest != source_addr.sin_port ) { 132 dest_addr.sin_port = udphdr->src; 135 payload_len = ntohs ( udphdr->len ); 136 if ( payload_len < sizeof ( *udphdr ) || payload_len > iob_len ( iob ) ) { 139 payload_len -= sizeof ( *udphdr ); 140 iob_pull ( iob, sizeof ( *udphdr ) ); 160 struct udp_header *udphdr; local [all...] |
/external/syslinux/gpxe/src/net/ |
udp.c | 195 struct udp_header *udphdr; local 212 udphdr = iob_push ( iobuf, sizeof ( *udphdr ) ); 214 udphdr->dest = dest->st_port; 215 udphdr->src = src->st_port; 216 udphdr->len = htons ( len ); 217 udphdr->chksum = 0; 218 udphdr->chksum = tcpip_chksum ( udphdr, len ); 222 ntohs ( udphdr->src ), ntohs ( udphdr->dest ) 272 struct udp_header *udphdr = iobuf->data; local [all...] |
/external/android-clat/ |
dump.h | 23 void dump_udp(const struct udphdr *udp, const struct iphdr *ip, 31 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6,
|
translate.h | 80 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,
|
dump.c | 133 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,
|
clatd_test.cpp | 277 struct udphdr *udp = (struct udphdr *) payload; 399 struct udphdr *udp; 403 udp = (struct udphdr *) (ip + 1); 409 udp = (struct udphdr *) (ip6 + 1); 545 return ((struct udphdr *) payload)->check; 751 ASSERT_EQ(sizeof(struct udphdr), sizeof(udp_header)) << "Test UDP header: incorrect length\n"; 754 struct udphdr *udp; 756 udp = (struct udphdr *) (v4_udp_packet + sizeof(struct iphdr)); 762 udp = (struct udphdr *) (v6_udp_packet + sizeof(struct ip6_hdr)) 811 uint8_t udphdr[] = { UDP_HEADER }; local [all...] |
translate.c | 343 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);
|
clatd_microbenchmark.c | 50 #define PAYLOADSIZE (1280 - sizeof(struct iphdr) - sizeof(struct udphdr)) 89 struct udphdr udp = {
|
ipv4.c | 131 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum,
|
ipv6.c | 163 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum,
|
/external/syslinux/core/lwip/src/core/ |
udp.c | 86 struct udp_hdr *udphdr; local 113 udphdr = (struct udp_hdr *)p->payload; 121 src = ntohs(udphdr->src); 122 dest = ntohs(udphdr->dest); 124 udp_debug_print(udphdr); 131 ip4_addr3_16(&iphdr->dest), ip4_addr4_16(&iphdr->dest), ntohs(udphdr->dest), 133 ip4_addr3_16(&iphdr->src), ip4_addr4_16(&iphdr->src), ntohs(udphdr->src))); 224 u16_t chklen = ntohs(udphdr->len); 255 if (udphdr->chksum != 0) { 490 struct udp_hdr *udphdr; local [all...] |
/bionic/libc/include/netinet/ |
udp.h | 37 struct udphdr { struct
|
/external/kernel-headers/original/uapi/linux/ |
udp.h | 23 struct udphdr { struct
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
udp.h | 22 struct udphdr { struct
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/netinet/ |
udp.h | 58 struct udphdr struct 68 struct udphdr struct
|
/system/core/libnetutils/ |
packet.c | 93 struct udphdr udp; 162 struct udphdr udp; 180 if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) { 228 ((int)(nread - sizeof(struct iphdr) - sizeof(struct udphdr)) < dhcp_size) ||
|
/external/tcpdump/ |
print-udp.c | 100 vat_print(netdissect_options *ndo, const void *hdr, register const struct udphdr *up) 139 register const struct udphdr *up) 302 register const struct udphdr *up, 310 const struct udphdr *up, u_int len) 373 register const struct udphdr *up; 382 up = (const struct udphdr *)bp; 396 if (length < sizeof(struct udphdr)) { 406 if (ulen < sizeof(struct udphdr)) { 411 ulen -= sizeof(struct udphdr); 412 length -= sizeof(struct udphdr); [all...] |
/bionic/libc/kernel/tools/ |
defaults.py | 79 # We want to support both BSD and Linux member names in struct udphdr. 80 "udphdr": "__kernel_udphdr",
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
test_xdp.c | 52 struct udphdr *uh; 61 uh = (struct udphdr *)trans_data;
|
/external/syslinux/core/lwip/src/include/lwip/ |
udp.h | 160 void udp_debug_print(struct udp_hdr *udphdr); 162 #define udp_debug_print(udphdr)
|
/system/netd/server/ |
WakeupController.cpp | 65 struct udphdr header; 66 if (extract(payload, header) < sizeof(struct udphdr)) {
|
/device/generic/goldfish/dhcp/common/ |
socket.cpp | 173 struct udphdr udp; 271 struct udphdr udp;
|
/frameworks/base/core/jni/ |
android_net_NetUtils.cpp | 54 static const uint32_t kUDPSrcPortIndirectOffset = kEtherHeaderLen + offsetof(udphdr, source); 55 static const uint32_t kUDPDstPortIndirectOffset = kEtherHeaderLen + offsetof(udphdr, dest);
|
/external/iputils/Modules/ |
pg3.c | 243 struct udphdr *udph; 258 udph = (struct udphdr*)skb_put(skb, sizeof( struct udphdr)); 269 udph->len= htons(datalen+8); /* DATA + udphdr */
|