/Zephyr-latest/subsys/net/lib/sntp/ |
D | sntp_simple.c | 12 static int sntp_simple_helper(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout, in sntp_simple_helper() argument 21 res = sntp_init(&sntp_ctx, addr, addr_len); in sntp_simple_helper() 74 int sntp_simple_addr(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout, in sntp_simple_addr() argument 84 return sntp_simple_helper(addr, addr_len, timeout, ts); in sntp_simple_addr()
|
D | sntp.c | 154 int sntp_init(struct sntp_ctx *ctx, struct sockaddr *addr, socklen_t addr_len) in sntp_init() argument 170 ret = zsock_connect(ctx->sock.fd, addr, addr_len); in sntp_init()
|
/Zephyr-latest/samples/net/sockets/coap_server/src/ |
D | test.c | 18 struct sockaddr *addr, socklen_t addr_len) in piggyback_get() argument 76 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in piggyback_get() 83 struct sockaddr *addr, socklen_t addr_len) in test_del() argument 116 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_del() 123 struct sockaddr *addr, socklen_t addr_len) in test_put() argument 163 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_put() 170 struct sockaddr *addr, socklen_t addr_len) in test_post() argument 224 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_post()
|
D | observer.c | 22 socklen_t addr_len, in send_notification_packet() argument 83 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in send_notification_packet() 90 struct sockaddr *addr, socklen_t addr_len) in obs_get() argument 110 return send_notification_packet(resource, addr, addr_len, in obs_get()
|
D | separate.c | 16 struct sockaddr *addr, socklen_t addr_len) in separate_get() argument 46 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get() 89 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
|
D | large.c | 18 struct sockaddr *addr, socklen_t addr_len) in large_get() argument 90 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_get() 97 struct sockaddr *addr, socklen_t addr_len) in large_update_put() argument 170 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_update_put() 177 struct sockaddr *addr, socklen_t addr_len) in large_create_post() argument 242 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_create_post()
|
D | core.c | 17 struct sockaddr *addr, socklen_t addr_len) in core_get() argument 48 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in core_get()
|
D | location_query.c | 16 struct sockaddr *addr, socklen_t addr_len) in location_query_post() argument 62 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in location_query_post()
|
D | query.c | 16 struct sockaddr *addr, socklen_t addr_len) in query_get() argument 92 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in query_get()
|
/Zephyr-latest/include/zephyr/net/ |
D | sntp.h | 69 socklen_t addr_len); 133 int sntp_simple_addr(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout,
|
D | coap_service.h | 244 const struct sockaddr *addr, socklen_t addr_len, 260 const struct sockaddr *addr, socklen_t addr_len,
|
D | coap.h | 264 struct sockaddr *addr, socklen_t addr_len); 709 struct sockaddr *addr, socklen_t addr_len); 731 struct sockaddr *addr, socklen_t addr_len);
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | llmnr_responder.c | 222 uint16_t addr_len, const uint8_t *addr) in add_answer() argument 233 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() 236 memcpy(query->data + offset, addr, addr_len); in add_answer() 238 return offset + addr_len; in add_answer() 244 uint16_t addr_len, const uint8_t *addr) in create_answer() argument 252 addr_len + query->len)) { in create_answer() 262 query->len = add_answer(query, LLMNR_TTL, addr_len, addr); in create_answer() 310 int addr_len; in create_ipv4_answer() local 322 addr_len = sizeof(struct in_addr); in create_ipv4_answer() 324 if (create_answer(qtype, query, dns_id, addr_len, addr)) { in create_ipv4_answer() [all …]
|
D | mdns_responder.c | 203 uint32_t ttl, uint16_t addr_len, uint8_t *addr) in add_answer() argument 239 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() 242 memcpy(query->data + offset, addr, addr_len); in add_answer() 248 uint16_t addr_len, uint8_t *addr) in create_answer() argument 256 addr_len)) { in create_answer() 264 add_answer(query, qtype, MDNS_TTL, addr_len, addr); in create_answer() 268 DNS_TTL_LEN + DNS_RDLENGTH_LEN + addr_len; in create_answer()
|
/Zephyr-latest/subsys/net/ip/ |
D | icmpv4.c | 89 uint8_t addr_len = sizeof(struct in_addr); in icmpv4_update_record_route() local 142 if ((ptr + addr_len) > opt_len) { in icmpv4_update_record_route() 147 if (net_pkt_write_u8(reply, ptr + addr_len)) { in icmpv4_update_record_route() 164 if (net_pkt_write(reply, (void *)src, addr_len)) { in icmpv4_update_record_route() 168 len += addr_len; in icmpv4_update_record_route() 169 offset += addr_len; in icmpv4_update_record_route() 197 uint8_t addr_len = sizeof(struct in_addr); in icmpv4_update_time_stamp() local 275 new_entry_len = addr_len + sizeof(uint32_t); in icmpv4_update_time_stamp() 318 if (net_pkt_write(reply, (void *)src, addr_len)) { in icmpv4_update_time_stamp() 322 len += addr_len; in icmpv4_update_time_stamp() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_udp.c | 167 socklen_t addr_len = 0; in create_socket() local 179 addr_len = sizeof(struct sockaddr_in); in create_socket() 190 addr_len = sizeof(struct sockaddr_in6); in create_socket() 209 if (zsock_bind(tmp_sock, addr, addr_len) < 0) { in create_socket() 243 socklen_t addr_len = sizeof(addr); in smp_udp_receive_thread() local 246 CONFIG_MCUMGR_TRANSPORT_UDP_MTU, 0, &addr, &addr_len); in smp_udp_receive_thread()
|
/Zephyr-latest/samples/net/sockets/http_client/src/ |
D | main.c | 38 int *sock, struct sockaddr *addr, socklen_t addr_len) in setup_socket() argument 43 memset(addr, 0, addr_len); in setup_socket() 130 int *sock, struct sockaddr *addr, socklen_t addr_len) in connect_socket() argument 134 ret = setup_socket(family, server, port, sock, addr, addr_len); in connect_socket() 139 ret = connect(*sock, addr, addr_len); in connect_socket()
|
/Zephyr-latest/samples/net/sockets/websocket_client/src/ |
D | main.c | 52 int *sock, struct sockaddr *addr, socklen_t addr_len) in setup_socket() argument 57 memset(addr, 0, addr_len); in setup_socket() 116 int *sock, struct sockaddr *addr, socklen_t addr_len) in connect_socket() argument 120 ret = setup_socket(family, server, port, sock, addr, addr_len); in connect_socket() 125 ret = connect(*sock, addr, addr_len); in connect_socket()
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | coap_server.rst | 78 struct sockaddr *addr, socklen_t addr_len) 106 return coap_resource_send(resource, &response, addr, addr_len, NULL); 110 struct sockaddr *addr, socklen_t addr_len) 146 const struct sockaddr *addr, socklen_t addr_len, 187 return coap_resource_send(resource, &response, addr, addr_len, NULL); 191 struct sockaddr *addr, socklen_t addr_len) 204 return send_temperature(resource, addr, addr_len, r == 0 ? resource->age : 0,
|
/Zephyr-latest/tests/net/lib/coap_server/common/src/ |
D | main.c | 13 struct sockaddr *addr, socklen_t addr_len) in coap_method1() argument 18 ARG_UNUSED(addr_len); in coap_method1() 24 struct sockaddr *addr, socklen_t addr_len) in coap_method2() argument 29 ARG_UNUSED(addr_len); in coap_method2()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | ddt.h | 71 uint16_t addr_len; member
|
D | tlv.c | 124 tlv_ntohs(&clock_desc->protocol_addr->addr_len); in tlv_mgmt_post_recv() 125 if (clock_desc->protocol_addr->addr_len > TLV_ADDR_LEN_MAX) { in tlv_mgmt_post_recv() 129 data += clock_desc->protocol_addr->addr_len; in tlv_mgmt_post_recv() 130 data_length -= clock_desc->protocol_addr->addr_len; in tlv_mgmt_post_recv() 279 tlv_htons(&clock_desc->protocol_addr->addr_len); in tlv_mgmt_pre_send()
|
/Zephyr-latest/samples/net/sockets/can/src/ |
D | main.c | 110 socklen_t addr_len; in rx() local 121 addr_len = sizeof(can_addr); in rx() 124 0, (struct sockaddr *)&can_addr, &addr_len); in rx()
|
/Zephyr-latest/drivers/modem/ |
D | hl7800.c | 2042 int addr_len; in on_cmd_atcmdinfo_ipaddr() local 2067 addr_len = delims[3] - delims[2]; in on_cmd_atcmdinfo_ipaddr() 2068 LOG_DBG("IP string len: %d", addr_len); in on_cmd_atcmdinfo_ipaddr() 2069 if (addr_len <= (NET_IPV4_ADDR_LEN * 2)) { in on_cmd_atcmdinfo_ipaddr() 2093 addr_len = sm_start - addr_start; in on_cmd_atcmdinfo_ipaddr() 2094 strncpy(temp_addr_str, addr_start, addr_len); in on_cmd_atcmdinfo_ipaddr() 2095 temp_addr_str[addr_len] = 0; in on_cmd_atcmdinfo_ipaddr() 2111 addr_len = delims[3] - sm_start; in on_cmd_atcmdinfo_ipaddr() 2112 strncpy(temp_addr_str, sm_start, addr_len); in on_cmd_atcmdinfo_ipaddr() 2113 temp_addr_str[addr_len] = 0; in on_cmd_atcmdinfo_ipaddr() [all …]
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_server.c | 523 const struct sockaddr *addr, socklen_t addr_len, in coap_service_send() argument 577 ret = zsock_sendto(service->data->sock_fd, cpkt->data, cpkt->offset, 0, addr, addr_len); in coap_service_send() 588 const struct sockaddr *addr, socklen_t addr_len, in coap_resource_send() argument 594 return coap_service_send(svc, cpkt, addr, addr_len, params); in coap_resource_send()
|