Home
last modified time | relevance | path

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

12

/third_party/lwip/src/core/
Dudp.c196 struct udp_hdr *udphdr; in udp_input() local
226 udphdr = (struct udp_hdr *)p->payload; in udp_input()
234 src = lwip_ntohs(udphdr->src); in udp_input()
235 dest = lwip_ntohs(udphdr->dest); in udp_input()
237 udp_debug_print(udphdr); in udp_input()
242 LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest))); in udp_input()
244 LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src))); in udp_input()
336 u16_t chklen = lwip_ntohs(udphdr->len); in udp_input()
356 if (udphdr->chksum != 0) { in udp_input()
717 struct udp_hdr *udphdr; in udp_sendto_if_src_chksum() local
[all …]
/third_party/lwip/src/netif/
Dlowpan6_common.c709 struct udp_hdr *udphdr; in lowpan6_decompress_hdr() local
714 udphdr = (struct udp_hdr *)((u8_t *)decomp_buffer + ip6_offset); in lowpan6_decompress_hdr()
729udphdr->src = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + 1]); in lowpan6_decompress_hdr()
730udphdr->dest = lwip_htons(lowpan6_buffer[lowpan6_offset + 2] << 8 | lowpan6_buffer[lowpan6_offset … in lowpan6_decompress_hdr()
733udphdr->src = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + 1]); in lowpan6_decompress_hdr()
734 udphdr->dest = lwip_htons(0xf000 | lowpan6_buffer[lowpan6_offset + 2]); in lowpan6_decompress_hdr()
737 udphdr->src = lwip_htons(0xf000 | lowpan6_buffer[lowpan6_offset]); in lowpan6_decompress_hdr()
738udphdr->dest = lwip_htons(lowpan6_buffer[lowpan6_offset + 1] << 8 | lowpan6_buffer[lowpan6_offset … in lowpan6_decompress_hdr()
741 udphdr->src = lwip_htons(0xf0b0 | ((lowpan6_buffer[lowpan6_offset] >> 4) & 0x0f)); in lowpan6_decompress_hdr()
742 udphdr->dest = lwip_htons(0xf0b0 | (lowpan6_buffer[lowpan6_offset] & 0x0f)); in lowpan6_decompress_hdr()
[all …]
/third_party/lwip/src/include/lwip/
Dudp.h182 void udp_debug_print(struct udp_hdr *udphdr);
184 #define udp_debug_print(udphdr) argument
/third_party/musl/include/netinet/
Dudp.h18 struct udphdr { struct
/third_party/musl/porting/liteos_m/kernel/include/netinet/
Dudp.h18 struct udphdr { struct
/third_party/musl/porting/liteos_m_iccarm/kernel/include/netinet/
Dudp.h18 struct udphdr { struct
/third_party/musl/ndk_musl_include/netinet/
Dudp.h18 struct udphdr { struct
/third_party/musl/porting/uniproton/kernel/include/netinet/
Dudp.h18 struct udphdr { struct
/third_party/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;
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dfils_hlp.c162 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dfils_hlp.c162 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Ddhcp.h43 struct udphdr udph;
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Ddhcp.h43 struct udphdr udph;
/third_party/lwip/src/core/ipv4/
Dip4.c582 const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen); local
584 lwip_ntohs(udphdr->dest)));
585 if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/
Duser_socket.c2862 struct udphdr *udp;
2891 len = sizeof(struct ip) + sizeof(struct udphdr);
2899 udp = (struct udphdr *)(ip + 1);
2930 m_adj(m, sizeof(struct ip) + sizeof(struct udphdr));
3007 struct udphdr *udp;
3038 len = sizeof(struct ip6_hdr) + sizeof(struct udphdr);
3046 udp = (struct udphdr *)(ip6 + 1);
3074 m_adj(m, sizeof(struct ip6_hdr) + sizeof(struct udphdr));
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctputil.c8078 struct udphdr *uhdr;
8087 uhdr = (struct udphdr *)((caddr_t)iph + off);
8098 if (sp->m_pkthdr.len < sizeof(struct udphdr) + sizeof(struct sctphdr)) {
8104 sp = m_pullup(sp, sizeof(struct udphdr) + sizeof(struct sctphdr));
8110 m_adj(sp, sizeof(struct udphdr));
8132 iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr));
8139 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - sizeof(struct udphdr));
8159 struct udphdr *udp;
8172 sizeof(struct ip) + 8 + (inner_ip->ip_hl << 2) + sizeof(struct udphdr) + 8) {
8175 udp = (struct udphdr *)((caddr_t)inner_ip + (inner_ip->ip_hl << 2));
[all …]
Dsctp_output.c4133 struct udphdr *udp = NULL;
4183 len += sizeof(struct udphdr);
4335 udp = (struct udphdr *)((caddr_t)ip + sizeof(struct ip));
4352 sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr));
4407 sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip) + sizeof(struct udphdr));
4494 mtu -= sizeof(struct udphdr);
4559 len += sizeof(struct udphdr);
4824 udp = (struct udphdr *)((caddr_t)ip6h + sizeof(struct ip6_hdr));
4829 sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr));
4874 sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip6_hdr) + sizeof(struct udphdr));
[all …]
Dsctp_os_userspace.h349 struct udphdr { struct
Dsctp_input.c5793 net->mtu -= sizeof(struct udphdr);
5799 net->mtu += sizeof(struct udphdr);
5835 net->mtu -= sizeof(struct udphdr);
5841 net->mtu += sizeof(struct udphdr);
5959 net->mtu -= sizeof(struct udphdr);
5965 net->mtu += sizeof(struct udphdr);
Dsctp_timer.c1544 mtu -= sizeof(struct udphdr);
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c376 next_mtu -= sizeof(struct udphdr);
382 sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu + sizeof(struct udphdr));
/third_party/lwip/src/api/
Dapi_msg.c263 const struct udp_hdr *udphdr = (const struct udp_hdr *)ip_next_header_ptr(); local
266 buf->toport_chksum = udphdr->dest;

12