/Zephyr-latest/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 | 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 | connection.c | 555 uint16_t src_port, uint16_t dst_port) in conn_are_endpoints_valid() argument 574 bool is_same_src_and_dst_port = src_port == dst_port; in conn_are_endpoints_valid() 644 uint16_t src_port = 0U, dst_port = 0U; in net_conn_input() local 654 dst_port = proto_hdr->udp->dst_port; in net_conn_input() 660 dst_port = proto_hdr->tcp->dst_port; in net_conn_input() 662 if (!conn_are_endpoints_valid(pkt, pkt_family, ip_hdr, src_port, dst_port)) { in net_conn_input() 681 ntohs(src_port), ntohs(dst_port), net_pkt_family(pkt)); in net_conn_input() 807 net_sin(&conn->local_addr)->sin_port != dst_port) { in net_conn_input()
|
D | net_context.c | 2078 uint16_t dst_port = 0U; in context_setup_udp_packet() local 2083 dst_port = addr6->sin6_port; in context_setup_udp_packet() 2090 dst_port = addr4->sin_port; in context_setup_udp_packet() 2108 dst_port); in context_setup_udp_packet()
|
/Zephyr-latest/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-latest/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-latest/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-latest/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 1594 dst_port = ntohs(net_sin6(&sock->dst)->sin6_port); in pkt_setup_ip_data() 1609 dst_port = ntohs(net_sin(&sock->dst)->sin_port); in pkt_setup_ip_data() 1617 if (net_udp_create(pkt, dst_port, src_port)) { in pkt_setup_ip_data() 1636 tcp->src_port = dst_port; in pkt_setup_ip_data() 1637 tcp->dst_port = src_port; in pkt_setup_ip_data() 5775 int dst_port = -1; in configure_TCP_socket() local 5785 dst_port = net_sin6(&sock->dst)->sin6_port; in configure_TCP_socket() 5788 dst_port = net_sin(&sock->dst)->sin_port; in configure_TCP_socket() 5796 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-latest/tests/net/tcp/src/ |
D | main.c | 240 uint16_t dst_port, in tester_prepare_tcp_pkt() argument 285 th->th_dport = dst_port; in tester_prepare_tcp_pkt() 342 uint16_t dst_port) in prepare_syn_packet() argument 344 return tester_prepare_tcp_pkt(af, src_port, dst_port, SYN, NULL, 0U); in prepare_syn_packet() 348 uint16_t dst_port) in prepare_syn_ack_packet() argument 350 return tester_prepare_tcp_pkt(af, src_port, dst_port, SYN | ACK, in prepare_syn_ack_packet() 355 uint16_t dst_port) in prepare_rst_ack_packet() argument 357 return tester_prepare_tcp_pkt(af, src_port, dst_port, RST | ACK, in prepare_rst_ack_packet() 362 uint16_t dst_port) in prepare_ack_packet() argument 364 return tester_prepare_tcp_pkt(af, src_port, dst_port, ACK, NULL, 0U); in prepare_ack_packet() [all …]
|
/Zephyr-latest/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-latest/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-latest/include/zephyr/net/ |
D | net_ip.h | 588 uint16_t dst_port; member 595 uint16_t dst_port; member
|
/Zephyr-latest/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-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 526 zassert_equal(udp_hdr->dst_port, htons(DHCPV4_CLIENT_PORT), in verify_offer() 699 zassert_equal(udp_hdr->dst_port, htons(DHCPV4_CLIENT_PORT), in verify_ack()
|
/Zephyr-latest/tests/net/virtual/src/ |
D | main.c | 951 uint16_t src_port = 4242, dst_port = 4242; in test_virtual_recv_data_from_tunnel() local 1028 ret = net_udp_create(inner, htons(src_port), htons(dst_port)); in test_virtual_recv_data_from_tunnel()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | msg.c | 293 port = ntohs(hdr->dst_port); in ptp_msg_from_pkt()
|
/Zephyr-latest/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-latest/tests/lib/net_buf/buf/src/ |
D | main.c | 60 uint16_t dst_port; member
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4.c | 1943 if (udp_hdr->dst_port != htons(DHCPV4_CLIENT_PORT)) { in net_dhcpv4_accept_unicast()
|