/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) 49 ARG_UNUSED(src_port);
|
D | 6lo.c | 624 if ((((htons(udp->src_port) >> 4) & 0xFFF) == in compress_nh_udp() 635 tmp = (uint8_t)(htons(udp->src_port)); in compress_nh_udp() 654 inline_ptr_udp -= sizeof(udp->src_port); in compress_nh_udp() 655 memmove(inline_ptr_udp, &udp->src_port, sizeof(udp->src_port)); in compress_nh_udp() 657 } else if (((htons(udp->src_port) >> 8) & 0xFF) == in compress_nh_udp() 670 *inline_ptr_udp = (uint8_t)(htons(udp->src_port)); in compress_nh_udp() 676 inline_ptr_udp -= sizeof(udp->dst_port) + sizeof(udp->src_port); in compress_nh_udp() 677 memmove(inline_ptr_udp, &udp->src_port, in compress_nh_udp() 678 sizeof(udp->dst_port) + sizeof(udp->src_port)); in compress_nh_udp() 1275 memmove(&udp->src_port, cursor, sizeof(udp->src_port)); in uncompress_nh_udp() [all …]
|
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 30 udp_hdr->src_port = src_port; in net_udp_create()
|
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 653 src_port = proto_hdr->udp->src_port; in net_conn_input() 659 src_port = proto_hdr->tcp->src_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() 802 net_sin(&conn->remote_addr)->sin_port != src_port) { in net_conn_input()
|
/Zephyr-latest/samples/net/promiscuous_mode/src/ |
D | main.c | 52 *src = ntohs(udp_hdr->src_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() 134 src_addr, src_port, in print_info() 145 src_addr, src_port, in print_info()
|
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/ |
D | main.c | 314 .udp.src_port = htons(udp_src_port_4bit), 331 .udp.src_port = htons(udp_src_port_8bit_y), 348 .udp.src_port = htons(udp_src_port_8bit), 365 .udp.src_port = htons(udp_src_port_16bit), 382 .udp.src_port = htons(udp_src_port_16bit), 399 .udp.src_port = htons(udp_src_port_8bit), 416 .udp.src_port = htons(udp_src_port_16bit), 433 .udp.src_port = htons(udp_src_port_16bit), 451 .udp.src_port = htons(udp_src_port_16bit),
|
/Zephyr-latest/tests/net/6lo/src/ |
D | main.c | 561 .nh.udp.src_port = htons(udp_src_port_4bit), 583 .nh.udp.src_port = htons(udp_src_port_8bit_y), 605 .nh.udp.src_port = htons(udp_src_port_8bit), 627 .nh.udp.src_port = htons(udp_src_port_16bit), 649 .nh.udp.src_port = htons(udp_src_port_16bit), 671 .nh.udp.src_port = htons(udp_src_port_8bit), 730 .nh.udp.src_port = htons(udp_src_port_16bit), 750 .nh.udp.src_port = htons(udp_src_port_16bit), 805 .nh.udp.src_port = htons(udp_src_port_8bit), 845 .nh.udp.src_port = htons(udp_src_port_8bit_y), [all …]
|
/Zephyr-latest/tests/net/tcp/src/ |
D | main.c | 239 uint16_t src_port, in tester_prepare_tcp_pkt() argument 284 th->th_sport = src_port; in tester_prepare_tcp_pkt() 341 static struct net_pkt *prepare_syn_packet(sa_family_t af, uint16_t src_port, in prepare_syn_packet() argument 344 return tester_prepare_tcp_pkt(af, src_port, dst_port, SYN, NULL, 0U); in prepare_syn_packet() 347 static struct net_pkt *prepare_syn_ack_packet(sa_family_t af, uint16_t src_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() 354 static struct net_pkt *prepare_rst_ack_packet(sa_family_t af, uint16_t src_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() 361 static struct net_pkt *prepare_ack_packet(sa_family_t af, uint16_t src_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 | 234 uint16_t src_port, in send_ipv6_udp_msg() argument 247 net_udp_create(pkt, htons(src_port), htons(dst_port))) { in send_ipv6_udp_msg() 283 uint16_t src_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() 351 uint16_t src_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/drivers/modem/ |
D | wncm14a2a.c | 434 uint16_t src_port = 0U, dst_port = 0U; in pkt_setup_ip_data() local 444 src_port = ntohs(net_sin6(&sock->src)->sin6_port); in pkt_setup_ip_data() 458 src_port = ntohs(net_sin(&sock->src)->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()
|
D | hl7800.c | 1578 uint16_t src_port = 0U, dst_port = 0U; in pkt_setup_ip_data() local 1593 src_port = ntohs(net_sin6(&sock->src)->sin6_port); in pkt_setup_ip_data() 1608 src_port = ntohs(net_sin(&sock->src)->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()
|
/Zephyr-latest/samples/net/dsa/src/ |
D | dsa_lldp.c | 31 uint16_t lan, int src_port, int origin_port, int cmd, in dsa_lldp_send() argument
|
/Zephyr-latest/tests/net/route_mcast/src/ |
D | main.c | 293 uint16_t src_port, uint16_t remote_port) in setup_ipv6_udp() argument 310 res = net_udp_create(pkt, htons(src_port), htons(remote_port)); in setup_ipv6_udp()
|
/Zephyr-latest/tests/net/traffic_class/src/ |
D | main.c | 187 port = udp_hdr->src_port; in eth_tx() 188 udp_hdr->src_port = udp_hdr->dst_port; in eth_tx()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_ip.h | 587 uint16_t src_port; member 594 uint16_t src_port; member
|
/Zephyr-latest/tests/net/context/src/ |
D | main.c | 1046 port = udp_hdr->src_port; in tester_send() 1047 udp_hdr->src_port = udp_hdr->dst_port; in tester_send()
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 524 zassert_equal(udp_hdr->src_port, htons(DHCPV4_SERVER_PORT), in verify_offer() 697 zassert_equal(udp_hdr->src_port, htons(DHCPV4_SERVER_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/tests/net/checksum_offload/src/ |
D | main.c | 242 port = udp_hdr->src_port; in test_receiving() 243 udp_hdr->src_port = udp_hdr->dst_port; in test_receiving()
|
/Zephyr-latest/tests/lib/net_buf/buf/src/ |
D | main.c | 59 uint16_t src_port; member
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_inet.c | 772 *port = udp_hdr->src_port; in sock_get_pkt_src_addr() 784 *port = tcp_hdr->src_port; in sock_get_pkt_src_addr()
|