/external/syslinux/gpxe/src/net/ |
D | udp.c | 195 struct udp_header *udphdr; in udp_tx() local 212 udphdr = iob_push ( iobuf, sizeof ( *udphdr ) ); in udp_tx() 214 udphdr->dest = dest->st_port; in udp_tx() 215 udphdr->src = src->st_port; in udp_tx() 216 udphdr->len = htons ( len ); in udp_tx() 217 udphdr->chksum = 0; in udp_tx() 218 udphdr->chksum = tcpip_chksum ( udphdr, len ); in udp_tx() 222 ntohs ( udphdr->src ), ntohs ( udphdr->dest ), in udp_tx() 223 ntohs ( udphdr->len ) ); in udp_tx() 227 &udphdr->chksum ) ) != 0 ) { in udp_tx() [all …]
|
/external/syslinux/gpxe/src/core/ |
D | gdbudp.c | 63 struct udp_header *udphdr; in gdbudp_recv() local 121 if ( iob_len ( iob ) < sizeof ( *udphdr ) ) { in gdbudp_recv() 124 udphdr = iob->data; in gdbudp_recv() 125 if ( udphdr->dest != source_addr.sin_port ) { in gdbudp_recv() 132 dest_addr.sin_port = udphdr->src; in gdbudp_recv() 135 payload_len = ntohs ( udphdr->len ); in gdbudp_recv() 136 if ( payload_len < sizeof ( *udphdr ) || payload_len > iob_len ( iob ) ) { in gdbudp_recv() 139 payload_len -= sizeof ( *udphdr ); in gdbudp_recv() 140 iob_pull ( iob, sizeof ( *udphdr ) ); in gdbudp_recv() 160 struct udp_header *udphdr; in gdbudp_send() local [all …]
|
/external/syslinux/core/lwip/src/core/ |
D | 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 …]
|
/external/tcpdump/ |
D | print-udp.c | 100 vat_print(netdissect_options *ndo, const void *hdr, register const struct udphdr *up) in vat_print() 139 register const struct udphdr *up) in rtp_print() 302 register const struct udphdr *up, in udp_cksum() 310 const struct udphdr *up, u_int len) in udp6_cksum() 373 register const struct udphdr *up; in udp_print() 382 up = (const struct udphdr *)bp; in udp_print() 396 if (length < sizeof(struct udphdr)) { in udp_print() 406 if (ulen < sizeof(struct udphdr)) { in udp_print() 411 ulen -= sizeof(struct udphdr); in udp_print() 412 length -= sizeof(struct udphdr); in udp_print() [all …]
|
D | udp.h | 40 struct udphdr { struct
|
/external/android-clat/ |
D | translate.c | 343 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()
|
D | clatd_test.cpp | 277 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 …]
|
D | 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,
|
D | dump.c | 133 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()
|
D | 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,
|
D | clatd_microbenchmark.c | 50 #define PAYLOADSIZE (1280 - sizeof(struct iphdr) - sizeof(struct udphdr)) 89 struct udphdr udp = { in send_packet()
|
D | ipv4.c | 131 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv4_packet()
|
D | ipv6.c | 163 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv6_packet()
|
/external/syslinux/core/lwip/src/include/lwip/ |
D | udp.h | 160 void udp_debug_print(struct udp_hdr *udphdr); 162 #define udp_debug_print(udphdr) argument
|
/external/kernel-headers/original/uapi/linux/ |
D | udp.h | 23 struct udphdr { struct
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_xdp.c | 52 struct udphdr *uh; in get_dport() 61 uh = (struct udphdr *)trans_data; in get_dport()
|
/external/toybox/toys/pending/ |
D | traceroute.c | 266 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()
|
/external/syslinux/core/lwip/src/netif/ |
D | undiif.c | 369 struct udp_hdr *udphdr; in snprintf_udp_hdr() local 373 udphdr = (struct udp_hdr *)((void *)iphdr + (IPH_HL(iphdr) << 2)); in snprintf_udp_hdr() 377 ntohs(udphdr->src), ntohs(udphdr->dest), in snprintf_udp_hdr() 378 ntohs(udphdr->len), ntohs(udphdr->chksum), in snprintf_udp_hdr()
|
/external/iputils/Modules/ |
D | pg3.c | 243 struct udphdr *udph; in fill_packet() 258 udph = (struct udphdr*)skb_put(skb, sizeof( struct udphdr)); in fill_packet()
|
/external/syslinux/core/lwip/src/core/ipv4/ |
D | ip.c | 388 struct udp_hdr *udphdr = (struct udp_hdr *)((u8_t *)iphdr + iphdr_hlen); local 390 ntohs(udphdr->dest))); 391 if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
|
/external/wpa_supplicant_8/src/ap/ |
D | fils_hlp.c | 162 struct udphdr *udph; in fils_dhcp_handler() 483 const struct udphdr *udph; in fils_process_hlp_udp() 489 udph = (const struct udphdr *) (iph + 1); in fils_process_hlp_udp()
|
/external/syslinux/gpxe/src/include/ |
D | bootp.h | 220 struct udphdr udp;
|
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.c | 283 total_len += sizeof(struct udphdr); in do_test() 337 struct udphdr *udph; in do_test()
|
/external/wpa_supplicant_8/src/common/ |
D | dhcp.h | 43 struct udphdr udph;
|
/external/iputils/ |
D | traceroute6.c | 840 struct udphdr *up; in packet_ok() 844 up = (struct udphdr *)(hip+1); in packet_ok()
|