Home
last modified time | relevance | path

Searched refs:IPPROTO_IP (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_transport_udp.c127 err = zsock_setsockopt(udp->sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreqn, sizeof(mreqn)); in tp_udp_init()
133 err = zsock_setsockopt(udp->sock, IPPROTO_IP, IP_MULTICAST_TTL, &optval, sizeof(optval)); in tp_udp_init()
160 rc = zsock_getsockopt(udp->sock, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, &ttl_len); in tp_udp_sendto()
166 rc = zsock_setsockopt(udp->sock, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, in tp_udp_sendto()
/Zephyr-latest/subsys/net/lib/ptp/
Dtransport.c89 zsock_setsockopt(port->socket[1], IPPROTO_IP, in transport_join_multicast()
120 if (zsock_setsockopt(socket, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl))) { in transport_udp_ipv4_open()
125 if (zsock_getsockopt(socket, IPPROTO_IP, IP_TOS, &tos, &length)) { in transport_udp_ipv4_open()
133 if (zsock_setsockopt(socket, IPPROTO_IP, IP_TOS, &tos, length)) { in transport_udp_ipv4_open()
/Zephyr-latest/tests/net/igmp/src/
Dmain.c450 ret = zsock_setsockopt(fd, IPPROTO_IP, option, in socket_group_with_address()
455 ret = zsock_setsockopt(fd, IPPROTO_IP, option, in socket_group_with_address()
461 ret = zsock_setsockopt(fd, IPPROTO_IP, option, in socket_group_with_address()
469 ret = zsock_setsockopt(fd, IPPROTO_IP, option, in socket_group_with_address()
517 ret = zsock_setsockopt(fd, IPPROTO_IP, option, in socket_group_with_index()
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c1767 if (cmsg->cmsg_level == IPPROTO_IP && in run_ancillary_recvmsg_test()
1789 rv = zsock_setsockopt(server_sock, IPPROTO_IP, IP_PKTINFO, &opt, optlen); in run_ancillary_recvmsg_test()
1814 if (cmsg->cmsg_level == IPPROTO_IP && in run_ancillary_recvmsg_test()
2067 ret = zsock_setsockopt(sock_c, IPPROTO_IP, option, &opt, sizeof(opt)); in test_check_ttl()
2182 ret = zsock_setsockopt(client_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); in ZTEST()
2186 ret = zsock_getsockopt(client_sock, IPPROTO_IP, IP_TTL, &verify, &optlen); in ZTEST()
2226 ret = zsock_setsockopt(client_sock, IPPROTO_IP, IP_MULTICAST_TTL, &mcast_ttl, in ZTEST()
2231 ret = zsock_getsockopt(client_sock, IPPROTO_IP, IP_MULTICAST_TTL, &verify, in ZTEST()
2726 ret = zsock_getsockopt(sock, IPPROTO_IP, IP_MULTICAST_IF, in ZTEST()
2745 ret = zsock_getsockopt(sock, IPPROTO_IP, IP_MULTICAST_IF, in ZTEST()
[all …]
/Zephyr-latest/tests/posix/headers/src/
Dnetinet_in_h.c68 zexpect_not_equal(-1, IPPROTO_IP); in ZTEST()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_common.c137 if (zsock_setsockopt(sock, IPPROTO_IP, IP_TOS, in zperf_prepare_upload_sock()
/Zephyr-latest/tests/net/pmtu/src/
Dmain.c800 ret = zsock_getsockopt(client_sock, IPPROTO_IP, IP_MTU, &optval, &optlen); in ZTEST()
807 ret = zsock_setsockopt(client_sock, IPPROTO_IP, IP_MTU, &optval, optlen); in ZTEST()
/Zephyr-latest/drivers/net/
Dnsos_adapt.c118 *proto = IPPROTO_IP; in socket_proto_from_nsos_mid()
155 case IPPROTO_IP: in socket_proto_to_nsos_mid()
Dnsos_sockets.c91 case IPPROTO_IP: in socket_proto_to_nsos_mid()
965 *proto = IPPROTO_IP; in socket_proto_from_nsos_mid()
/Zephyr-latest/tests/net/virtual/src/
Dmain.c981 outer = create_outer(attached, AF_INET, IPPROTO_IP, in test_virtual_recv_data_from_tunnel()
1001 inner = create_inner(iface, AF_INET, IPPROTO_IP, in test_virtual_recv_data_from_tunnel()
/Zephyr-latest/subsys/net/l2/virtual/ipip/
Dipip.c199 AF_INET, IPPROTO_IP, in interface_send()
/Zephyr-latest/subsys/net/lib/dns/
Dllmnr_responder.c328 (void)set_ttl_hop_limit(sock, IPPROTO_IP, IP_MULTICAST_TTL, 255); in create_ipv4_answer()
Dmdns_responder.c142 ret = set_ttl_hop_limit(sock, IPPROTO_IP, IP_MULTICAST_TTL, 255); in setup_dst_addr()
Dresolve.c1100 ret = set_ttl_hop_limit(sock, IPPROTO_IP, IP_TTL, in dns_write()
/Zephyr-latest/tests/net/lib/dns_sd/src/
Dmain.c691 (void)zsock_getsockopt(v4, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, &optlen); in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c998 ret = insert_pktinfo(msg, IPPROTO_IP, IP_PKTINFO, in add_pktinfo()
1899 case IPPROTO_IP: in zsock_getsockopt_ctx()
2503 case IPPROTO_IP: in zsock_setsockopt_ctx()
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h65 IPPROTO_IP = 0, /**< IP protocol (pseudo-val for setsockopt() */ enumerator