Home
last modified time | relevance | path

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

/components/net/lwip/lwip-1.4.1/src/core/
A Dudp.c153 struct udp_hdr *udphdr; local
188 src = ntohs(udphdr->src);
189 dest = ntohs(udphdr->dest);
191 udp_debug_print(udphdr);
328 if (udphdr->chksum != 0) {
563 struct udp_hdr *udphdr; local
614 udphdr->dest = htons(dst_port);
616 udphdr->chksum = 0x0000;
687 udphdr->chksum = 0xffff;
1005 ntohs(udphdr->src), ntohs(udphdr->dest)));
[all …]
/components/net/lwip/lwip-2.0.3/src/core/
A Dudp.c187 struct udp_hdr *udphdr; in udp_input() local
220 src = lwip_ntohs(udphdr->src); in udp_input()
221 dest = lwip_ntohs(udphdr->dest); in udp_input()
223 udp_debug_print(udphdr); in udp_input()
329 if (udphdr->chksum != 0) { in udp_input()
675 struct udp_hdr *udphdr; in udp_sendto_if_src_chksum() local
738 udphdr->chksum = 0x0000; in udp_sendto_if_src_chksum()
790 udphdr->chksum = 0xffff; in udp_sendto_if_src_chksum()
825 udphdr->chksum = udpchksum; in udp_sendto_if_src_chksum()
1183 lwip_ntohs(udphdr->src), lwip_ntohs(udphdr->dest))); in udp_debug_print()
[all …]
/components/net/lwip/lwip-2.1.2/src/core/
A Dudp.c196 struct udp_hdr *udphdr; in udp_input() local
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()
356 if (udphdr->chksum != 0) { in udp_input()
713 struct udp_hdr *udphdr; in udp_sendto_if_src_chksum() local
788 udphdr->chksum = 0x0000; in udp_sendto_if_src_chksum()
840 udphdr->chksum = 0xffff; in udp_sendto_if_src_chksum()
875 udphdr->chksum = udpchksum; in udp_sendto_if_src_chksum()
1306 lwip_ntohs(udphdr->src), lwip_ntohs(udphdr->dest))); in udp_debug_print()
[all …]
/components/net/lwip-nat/
A Dipv4_nat.c422 struct udp_hdr *udphdr; in ip_nat_input() local
459 if (udphdr == NULL) { in ip_nat_input()
468 udphdr->dest = nat_entry.udp->sport; in ip_nat_input()
618 struct udp_hdr *udphdr; in ip_nat_out() local
657 if (udphdr == NULL) { in ip_nat_out()
664 udphdr->src = nat_entry.udp->nport; in ip_nat_out()
769 (udphdr->src == ip_nat_udp_table[i].dport) && in ip_nat_udp_lookup_incoming()
770 (udphdr->dest == ip_nat_udp_table[i].nport)) { in ip_nat_udp_lookup_incoming()
804 (udphdr->src == ip_nat_udp_table[i].sport) && in ip_nat_udp_lookup_outgoing()
821 nat_entry.udp->sport = udphdr->src; in ip_nat_udp_lookup_outgoing()
[all …]
/components/net/lwip-dhcpd/
A Ddhcp_server.c128 struct udp_hdr *udphdr; in _low_level_dhcp_send() local
138 udphdr = (struct udp_hdr *)((char *)iphdr + sizeof(struct ip_hdr)); in _low_level_dhcp_send()
157 udphdr->src = htons(DHCP_SERVER_PORT); in _low_level_dhcp_send()
158 udphdr->dest = htons(DHCP_CLIENT_PORT); in _low_level_dhcp_send()
159 udphdr->len = htons(sizeof(struct udp_hdr) + size); in _low_level_dhcp_send()
160 udphdr->chksum = 0; in _low_level_dhcp_send()
162 memcpy((char *)udphdr + sizeof(struct udp_hdr), in _low_level_dhcp_send()
/components/net/lwip/lwip-2.1.2/src/netif/
A 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()
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()
746udphdr->chksum = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + … in lowpan6_decompress_hdr()
[all …]
/components/net/lwip/lwip-1.4.1/src/include/lwip/
A Dudp.h160 void udp_debug_print(struct udp_hdr *udphdr);
162 #define udp_debug_print(udphdr) argument
/components/net/lwip/lwip-2.0.3/src/netif/
A Dlowpan6.c903 struct udp_hdr *udphdr; in lowpan6_decompress() local
907 udphdr = (struct udp_hdr *)((u8_t *)q->payload + ip6_offset); in lowpan6_decompress()
919udphdr->src = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + 1]); in lowpan6_decompress()
920udphdr->dest = lwip_htons(lowpan6_buffer[lowpan6_offset + 2] << 8 | lowpan6_buffer[lowpan6_offset … in lowpan6_decompress()
923udphdr->src = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + 1]); in lowpan6_decompress()
924 udphdr->dest = lwip_htons(0xf000 | lowpan6_buffer[lowpan6_offset + 2]); in lowpan6_decompress()
927 udphdr->src = lwip_htons(0xf000 | lowpan6_buffer[lowpan6_offset]); in lowpan6_decompress()
931 udphdr->src = lwip_htons(0xf0b0 | ((lowpan6_buffer[lowpan6_offset] >> 4) & 0x0f)); in lowpan6_decompress()
932 udphdr->dest = lwip_htons(0xf0b0 | (lowpan6_buffer[lowpan6_offset] & 0x0f)); in lowpan6_decompress()
936udphdr->chksum = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + … in lowpan6_decompress()
[all …]
/components/net/lwip/lwip-2.0.3/src/include/lwip/
A Dudp.h169 void udp_debug_print(struct udp_hdr *udphdr);
171 #define udp_debug_print(udphdr) argument
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dudp.h182 void udp_debug_print(struct udp_hdr *udphdr);
184 #define udp_debug_print(udphdr) argument
/components/net/lwip/lwip-1.4.1/src/core/ipv4/
A Dip.c463 struct udp_hdr *udphdr = (struct udp_hdr *)((u8_t *)iphdr + iphdr_hlen); local
465 ntohs(udphdr->dest)));
466 if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
/components/net/lwip/lwip-2.0.3/src/core/ipv4/
A Dip4.c558 struct udp_hdr *udphdr = (struct udp_hdr *)((u8_t *)iphdr + iphdr_hlen); local
560 lwip_ntohs(udphdr->dest)));
561 if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
/components/net/lwip/lwip-2.1.2/src/core/ipv4/
A 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)) {
/components/net/lwip/lwip-1.4.1/src/api/
A Dapi_msg.c184 const struct udp_hdr* udphdr = (void*)(((char*)iphdr) + IPH_LEN(iphdr)); local
189 buf->toport_chksum = udphdr->dest;
/components/net/lwip/lwip-2.0.3/src/api/
A Dapi_msg.c211 const struct udp_hdr* udphdr = (const struct udp_hdr*)ip_next_header_ptr(); local
216 buf->toport_chksum = udphdr->dest;
/components/net/lwip/lwip-2.1.2/src/api/
A Dapi_msg.c263 const struct udp_hdr *udphdr = (const struct udp_hdr *)ip_next_header_ptr(); local
266 buf->toport_chksum = udphdr->dest;
/components/net/lwip/lwip-1.4.1/
A DCHANGELOG2367 discard the packet. Also removed the duplicate 'udphdr->chksum = 0' for both
/components/net/lwip/lwip-2.0.3/
A DCHANGELOG3323 discard the packet. Also removed the duplicate 'udphdr->chksum = 0' for both
/components/net/lwip/lwip-2.1.2/
A DCHANGELOG3576 discard the packet. Also removed the duplicate 'udphdr->chksum = 0' for both

Completed in 48 milliseconds