/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | udp_internal.h | 43 int net_udp_create(struct net_pkt *pkt, uint16_t src_port, uint16_t dst_port); 46 uint16_t src_port, uint16_t dst_port) 50 ARG_UNUSED(dst_port);
|
D | udp.c | 20 int net_udp_create(struct net_pkt *pkt, uint16_t src_port, uint16_t dst_port) in net_udp_create() argument 31 udp_hdr->dst_port = dst_port; in net_udp_create()
|
D | connection.c | 516 uint16_t src_port, uint16_t dst_port) in conn_are_endpoints_valid() argument 535 bool is_same_src_and_dst_port = src_port == dst_port; in conn_are_endpoints_valid() 595 uint16_t src_port = 0U, dst_port = 0U; in net_conn_input() local 605 dst_port = proto_hdr->udp->dst_port; in net_conn_input() 611 dst_port = proto_hdr->tcp->dst_port; in net_conn_input() 613 if (!conn_are_endpoints_valid(pkt, pkt_family, ip_hdr, src_port, dst_port)) { in net_conn_input() 632 ntohs(src_port), ntohs(dst_port), net_pkt_family(pkt)); in net_conn_input() 758 net_sin(&conn->local_addr)->sin_port != dst_port) { in net_conn_input()
|
D | 6lo.c | 626 (((htons(udp->dst_port) >> 4) & 0xFFF) == in compress_nh_udp() 638 tmp |= (((uint8_t)(htons(udp->dst_port))) & 0x0F); in compress_nh_udp() 642 } else if (((htons(udp->dst_port) >> 8) & 0xFF) == in compress_nh_udp() 652 *inline_ptr_udp = (uint8_t)(htons(udp->dst_port)); in compress_nh_udp() 666 inline_ptr_udp -= sizeof(udp->dst_port); in compress_nh_udp() 667 memmove(inline_ptr_udp, &udp->dst_port, sizeof(udp->dst_port)); in compress_nh_udp() 676 inline_ptr_udp -= sizeof(udp->dst_port) + sizeof(udp->src_port); in compress_nh_udp() 678 sizeof(udp->dst_port) + sizeof(udp->src_port)); in compress_nh_udp() 1277 memmove(&udp->dst_port, cursor, sizeof(udp->dst_port)); in uncompress_nh_udp() 1278 cursor += sizeof(udp->dst_port); in uncompress_nh_udp() [all …]
|
D | net_context.c | 1756 uint16_t dst_port = 0U; in context_setup_udp_packet() local 1761 dst_port = addr6->sin6_port; in context_setup_udp_packet() 1768 dst_port = addr4->sin_port; in context_setup_udp_packet() 1786 dst_port); in context_setup_udp_packet()
|
/Zephyr-Core-3.6.0/samples/net/promiscuous_mode/src/ |
D | main.c | 53 *dst = ntohs(udp_hdr->dst_port); in get_ports() 62 uint16_t dst_port = 0U, src_port = 0U; in print_info() local 103 ret = get_ports(pkt, &src_port, &dst_port); in print_info() 107 ret = get_ports(pkt, &src_port, &dst_port); in print_info() 135 dst_addr, dst_port); in print_info() 146 dst_addr, dst_port); in print_info()
|
/Zephyr-Core-3.6.0/tests/net/ieee802154/6lo_fragment/src/ |
D | main.c | 315 .udp.dst_port = htons(udp_dst_port_4bit), 332 .udp.dst_port = htons(udp_dst_port_8bit), 349 .udp.dst_port = htons(udp_dst_port_8bit_y), 366 .udp.dst_port = htons(udp_dst_port_16bit), 383 .udp.dst_port = htons(udp_dst_port_16bit), 400 .udp.dst_port = htons(udp_dst_port_8bit), 417 .udp.dst_port = htons(udp_dst_port_16bit), 434 .udp.dst_port = htons(udp_dst_port_16bit), 452 .udp.dst_port = htons(udp_dst_port_16bit),
|
/Zephyr-Core-3.6.0/tests/net/6lo/src/ |
D | main.c | 562 .nh.udp.dst_port = htons(udp_dst_port_4bit), 584 .nh.udp.dst_port = htons(udp_dst_port_8bit), 606 .nh.udp.dst_port = htons(udp_dst_port_8bit_y), 628 .nh.udp.dst_port = htons(udp_dst_port_16bit), 650 .nh.udp.dst_port = htons(udp_dst_port_16bit), 672 .nh.udp.dst_port = htons(udp_dst_port_8bit), 731 .nh.udp.dst_port = htons(udp_dst_port_16bit), 751 .nh.udp.dst_port = htons(udp_dst_port_16bit), 806 .nh.udp.dst_port = htons(udp_dst_port_8bit_y), 846 .nh.udp.dst_port = htons(udp_dst_port_8bit), [all …]
|
/Zephyr-Core-3.6.0/drivers/modem/ |
D | wncm14a2a.c | 434 uint16_t src_port = 0U, dst_port = 0U; in pkt_setup_ip_data() local 445 dst_port = ntohs(net_sin6(&sock->dst)->sin6_port); in pkt_setup_ip_data() 459 dst_port = ntohs(net_sin(&sock->dst)->sin_port); in pkt_setup_ip_data() 470 if (net_udp_create(pkt, dst_port, src_port)) { in pkt_setup_ip_data() 490 tcp->src_port = dst_port; in pkt_setup_ip_data() 491 tcp->dst_port = src_port; in pkt_setup_ip_data() 1536 int ret, dst_port = -1; in offload_connect() local 1567 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect() 1568 net_sin6(&sock->dst)->sin6_port = dst_port; in offload_connect() 1575 dst_port = ntohs(net_sin(addr)->sin_port); in offload_connect() [all …]
|
D | hl7800.c | 1578 uint16_t src_port = 0U, dst_port = 0U; in pkt_setup_ip_data() local 1592 dst_port = ntohs(net_sin6(&sock->dst)->sin6_port); in pkt_setup_ip_data() 1605 dst_port = ntohs(net_sin(&sock->dst)->sin_port); in pkt_setup_ip_data() 1613 if (net_udp_create(pkt, dst_port, src_port)) { in pkt_setup_ip_data() 1632 tcp->src_port = dst_port; in pkt_setup_ip_data() 1633 tcp->dst_port = src_port; in pkt_setup_ip_data() 5769 int dst_port = -1; in configure_TCP_socket() local 5779 dst_port = net_sin6(&sock->dst)->sin6_port; in configure_TCP_socket() 5782 dst_port = net_sin(&sock->dst)->sin_port; in configure_TCP_socket() 5790 hl7800_sprint_ip_addr(&sock->dst), dst_port, af, restore_on_boot); in configure_TCP_socket() [all …]
|
D | ublox-sara-r4.c | 297 uint16_t dst_port = 0U; in send_socket_data() local 352 ret = modem_context_get_addr_port(dst_addr, &dst_port); in send_socket_data() 361 dst_port, buf_len); in send_socket_data() 1540 uint16_t dst_port = 0U; in offload_connect() local 1565 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect() 1567 dst_port = ntohs(net_sin(addr)->sin_port); in offload_connect() 1587 ip_str, dst_port); in offload_connect()
|
D | quectel-bg9x.c | 691 uint16_t dst_port = 0; in offload_connect() local 717 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect() 719 dst_port = ntohs(net_sin(addr)->sin_port); in offload_connect() 741 ip_str, dst_port); in offload_connect()
|
D | simcom-sim7080.c | 135 uint16_t dst_port = 0; in offload_connect() local 161 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect() 163 dst_port = ntohs(net_sin(addr)->sin_port); in offload_connect() 177 protocol, ip_str, dst_port); in offload_connect()
|
/Zephyr-Core-3.6.0/tests/net/tcp/src/ |
D | main.c | 238 uint16_t dst_port, in tester_prepare_tcp_pkt() argument 283 th->th_dport = dst_port; in tester_prepare_tcp_pkt() 340 uint16_t dst_port) in prepare_syn_packet() argument 342 return tester_prepare_tcp_pkt(af, src_port, dst_port, SYN, NULL, 0U); in prepare_syn_packet() 346 uint16_t dst_port) in prepare_syn_ack_packet() argument 348 return tester_prepare_tcp_pkt(af, src_port, dst_port, SYN | ACK, in prepare_syn_ack_packet() 353 uint16_t dst_port) in prepare_rst_ack_packet() argument 355 return tester_prepare_tcp_pkt(af, src_port, dst_port, RST | ACK, in prepare_rst_ack_packet() 360 uint16_t dst_port) in prepare_ack_packet() argument 362 return tester_prepare_tcp_pkt(af, src_port, dst_port, ACK, NULL, 0U); in prepare_ack_packet() [all …]
|
/Zephyr-Core-3.6.0/tests/net/udp/src/ |
D | main.c | 235 uint16_t dst_port, in send_ipv6_udp_msg() argument 247 net_udp_create(pkt, htons(src_port), htons(dst_port))) { in send_ipv6_udp_msg() 284 uint16_t dst_port, in send_ipv6_udp_long_msg() argument 311 if (net_udp_create(pkt, htons(src_port), htons(dst_port))) { in send_ipv6_udp_long_msg() 352 uint16_t dst_port, in send_ipv4_udp_msg() argument 364 net_udp_create(pkt, htons(src_port), htons(dst_port))) { in send_ipv4_udp_msg()
|
/Zephyr-Core-3.6.0/tests/net/traffic_class/src/ |
D | main.c | 188 udp_hdr->src_port = udp_hdr->dst_port; in eth_tx() 189 udp_hdr->dst_port = port; in eth_tx()
|
/Zephyr-Core-3.6.0/include/zephyr/net/ |
D | net_ip.h | 507 uint16_t dst_port; member 514 uint16_t dst_port; member
|
/Zephyr-Core-3.6.0/tests/net/context/src/ |
D | main.c | 1047 udp_hdr->src_port = udp_hdr->dst_port; in tester_send() 1048 udp_hdr->dst_port = port; in tester_send()
|
/Zephyr-Core-3.6.0/tests/net/dhcpv4/server/src/ |
D | main.c | 522 zassert_equal(udp_hdr->dst_port, htons(DHCPV4_CLIENT_PORT), in verify_offer() 694 zassert_equal(udp_hdr->dst_port, htons(DHCPV4_CLIENT_PORT), in verify_ack()
|
/Zephyr-Core-3.6.0/tests/net/virtual/src/ |
D | main.c | 927 uint16_t src_port = 4242, dst_port = 4242; in test_virtual_recv_data_from_tunnel() local 1004 ret = net_udp_create(inner, htons(src_port), htons(dst_port)); in test_virtual_recv_data_from_tunnel()
|
/Zephyr-Core-3.6.0/tests/net/checksum_offload/src/ |
D | main.c | 243 udp_hdr->src_port = udp_hdr->dst_port; in test_receiving() 244 udp_hdr->dst_port = port; in test_receiving()
|
/Zephyr-Core-3.6.0/tests/net/buf/src/ |
D | main.c | 60 uint16_t dst_port; member
|
/Zephyr-Core-3.6.0/subsys/net/lib/dhcpv4/ |
D | dhcpv4.c | 1437 if (udp_hdr->dst_port != htons(DHCPV4_CLIENT_PORT)) { in net_dhcpv4_accept_unicast()
|