net: lib: fix typo
Utilize a code spell-checking tool to scan for and correct spelling errors in all files within the `subsys/net/lib` directory. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
parent
d2af60687e
commit
10f495e0fd
20 changed files with 35 additions and 35 deletions
|
|
@ -400,7 +400,7 @@ void conn_mgr_conn_init(void)
|
|||
STRUCT_SECTION_FOREACH(conn_mgr_conn_binding, binding) {
|
||||
if (binding->impl->api) {
|
||||
/* We need to fire conn_mgr_conn_handle_iface_admin_up for any
|
||||
* (connectivity-enabled) ifaces that went admin-up before we registerred
|
||||
* (connectivity-enabled) ifaces that went admin-up before we registered
|
||||
* the event callback that typically handles this.
|
||||
*/
|
||||
if (net_if_is_admin_up(binding->iface)) {
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ config NET_DHCPV4_SERVER_ADDR_DECLINE_TIME
|
|||
case it runs out of free addresses to assign.
|
||||
|
||||
config NET_DHCPV4_SERVER_ICMP_PROBE_TIMEOUT
|
||||
int "Timeout for ICMP probes sent by the server (miliseconds)"
|
||||
int "Timeout for ICMP probes sent by the server (milliseconds)"
|
||||
range 0 60000
|
||||
default 1000
|
||||
help
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ static bool dhcpv4_add_vendor_class_id(struct net_pkt *pkt,
|
|||
}
|
||||
#endif
|
||||
|
||||
/* Add DHCPv4 Options end, rest of the message can be padded wit zeros */
|
||||
/* Add DHCPv4 Options end, rest of the message can be padded with zeros */
|
||||
static inline bool dhcpv4_add_end(struct net_pkt *pkt)
|
||||
{
|
||||
if (net_pkt_write_u8(pkt, DHCPV4_OPTIONS_END)) {
|
||||
|
|
|
|||
|
|
@ -953,7 +953,7 @@ static void dhcpv4_handle_discover(struct dhcpv4_server_ctx *ctx,
|
|||
|
||||
memcpy(&giaddr, msg->giaddr, sizeof(giaddr));
|
||||
if (!net_ipv4_is_addr_unspecified(&giaddr)) {
|
||||
/* Only addresses in local subnet supproted for now. */
|
||||
/* Only addresses in local subnet supported for now. */
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1525,7 +1525,7 @@ int net_dhcpv4_server_start(struct net_if *iface, struct in_addr *base_addr)
|
|||
}
|
||||
|
||||
if (slot < 0) {
|
||||
LOG_ERR("No free DHCPv4 server intance.");
|
||||
LOG_ERR("No free DHCPv4 server instance.");
|
||||
ret = -ENOMEM;
|
||||
goto error;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ source "subsys/net/Kconfig.template.log_config.net"
|
|||
endif # DNS_SD
|
||||
|
||||
# Note that we enable the DNS socket dispatcher always if either responder or
|
||||
# resolver support is enabed to simplify things. Strictly speaking the
|
||||
# resolver support is enabled to simplify things. Strictly speaking the
|
||||
# dispatcher is really needed for supporting resolver and responder at the same
|
||||
# time.
|
||||
config DNS_SOCKET_DISPATCHER
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ config PTP_SERVICE_THREAD_PRIO
|
|||
default NUM_PREEMPT_PRIORITIES
|
||||
help
|
||||
Set the priority of the PTP. This handler polls the sockets and checks
|
||||
timers, depending on received PTP messeges or timeouts actions defined
|
||||
timers, depending on received PTP messages or timeouts actions defined
|
||||
in the standard are taken. The value should be selected carefully.
|
||||
|
||||
config PTP_MSG_POLL_SIZE
|
||||
|
|
@ -182,7 +182,7 @@ config PTP_TIME_RECEIVER_ONLY
|
|||
bool "Configure Clock as timeReceiver PTP Instance"
|
||||
depends on PTP_ORDINARY_CLOCK
|
||||
help
|
||||
An Oridinary Clock may be designed to ba a timeReceiver PTP Instnace. In that state
|
||||
An Oridinary Clock may be designed to ba a timeReceiver PTP Instance. In that state
|
||||
the instance can never enter the TIME_TRANSMITTER state.
|
||||
|
||||
config PTP_ANNOUNCE_RECV_TIMEOUT
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ extern "C" {
|
|||
int ptp_btca_ds_cmp(const struct ptp_dataset *a, const struct ptp_dataset *b);
|
||||
|
||||
/**
|
||||
* @brief Function performing Best TimeTransmitter Clock state decission algorithm.
|
||||
* @brief Function performing Best TimeTransmitter Clock state decision algorithm.
|
||||
*
|
||||
* @param[in] port Pointer to a PTP Port.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ struct ptp_foreign_tt_clock {
|
|||
struct ptp_port_id port_id;
|
||||
/** List of messages received from Foreign timeTransmitter. */
|
||||
struct k_fifo messages;
|
||||
/** Number of messeges received within a FOREIGN_TIME_TRANSMITTER_TIME_WINDOW. */
|
||||
/** Number of messages received within a FOREIGN_TIME_TRANSMITTER_TIME_WINDOW. */
|
||||
uint16_t messages_count;
|
||||
/** Generic dataset of the Foreign timeTransmitter for BTCA. */
|
||||
struct ptp_dataset dataset;
|
||||
|
|
@ -200,7 +200,7 @@ void ptp_clock_pollfd_invalidate(void);
|
|||
/**
|
||||
* @brief Function signalling timoeout of one of PTP Ports timer
|
||||
* to the PTP Clock's file descriptor. The function should be called only from
|
||||
* the contex of timer expiration function.
|
||||
* the context of timer expiration function.
|
||||
*/
|
||||
void ptp_clock_signal_timeout(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ struct ptp_port_addr {
|
|||
} __packed;
|
||||
|
||||
/**
|
||||
* @brief Structure for PTP Clock quality metrices.
|
||||
* @brief Structure for PTP Clock quality metrics.
|
||||
* @note 5.3.7 - quality of a clock
|
||||
*/
|
||||
struct ptp_clk_quality {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ struct ptp_default_ds {
|
|||
uint8_t priority2;
|
||||
/** ID number of the instance in a domain. */
|
||||
uint8_t domain;
|
||||
/** sdoId attrubute. */
|
||||
/** sdoId attribute. */
|
||||
uint16_t sdo_id: 12;
|
||||
/** Flag indicating timeReceiver mode. */
|
||||
bool time_receiver_only;
|
||||
|
|
@ -89,7 +89,7 @@ struct ptp_parent_ds {
|
|||
* of obsreved_parent_offset_scaled_log_variance or obsreved_parent_clk_phase_change_rate.
|
||||
*/
|
||||
bool stats;
|
||||
/** Estimate of the variance of the phase offest. */
|
||||
/** Estimate of the variance of the phase offset. */
|
||||
uint16_t obsreved_parent_offset_scaled_log_variance;
|
||||
/** Estimate of the phase change rate. */
|
||||
int32_t obsreved_parent_clk_phase_change_rate;
|
||||
|
|
@ -127,7 +127,7 @@ struct ptp_time_prop_ds {
|
|||
struct ptp_nvs_ds {
|
||||
/** Reset non-volatile storage. */
|
||||
bool reset;
|
||||
/** Save current values of applicable dynamic or cofigurable data set members
|
||||
/** Save current values of applicable dynamic or configurable data set members
|
||||
* to non-volatile storage.
|
||||
*/
|
||||
bool save;
|
||||
|
|
|
|||
|
|
@ -272,13 +272,13 @@ struct ptp_msg *ptp_msg_from_pkt(struct net_pkt *pkt)
|
|||
/* Packet contain Ethernet header at the beginning. */
|
||||
struct net_buf *buf;
|
||||
|
||||
/* remove packet temporarly. */
|
||||
/* remove packet temporarily. */
|
||||
buf = pkt->buffer;
|
||||
pkt->buffer = buf->frags;
|
||||
|
||||
hdr = net_udp_get_hdr(pkt, NULL);
|
||||
|
||||
/* insert back temporarly femoved frag. */
|
||||
/* insert back temporarily femoved frag. */
|
||||
net_pkt_frag_insert(pkt, buf);
|
||||
} else {
|
||||
hdr = net_udp_get_hdr(pkt, NULL);
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ struct ptp_management_msg {
|
|||
* of the requesting message.
|
||||
*/
|
||||
uint8_t starting_boundary_hops;
|
||||
/** Number of succesive retransmissions of the message
|
||||
/** Number of successive retransmissions of the message
|
||||
* by Boundary Clocks receiving message.
|
||||
*/
|
||||
uint8_t boundary_hops;
|
||||
|
|
@ -292,7 +292,7 @@ struct ptp_msg {
|
|||
struct net_ptp_time host;
|
||||
|
||||
} timestamp;
|
||||
/** Refference counter. */
|
||||
/** Reference counter. */
|
||||
atomic_t ref;
|
||||
/** List object. */
|
||||
sys_snode_t node;
|
||||
|
|
|
|||
|
|
@ -1090,7 +1090,7 @@ enum ptp_port_event ptp_port_event_gen(struct ptp_port *port, int idx)
|
|||
case PTP_MSG_PDELAY_RESP:
|
||||
__fallthrough;
|
||||
case PTP_MSG_PDELAY_RESP_FOLLOW_UP:
|
||||
/* P2P delay machanism not supported */
|
||||
/* P2P delay mechanism not supported */
|
||||
break;
|
||||
case PTP_MSG_FOLLOW_UP:
|
||||
port_follow_up_msg_process(port, msg);
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ struct ptp_port {
|
|||
struct k_timer sync;
|
||||
struct k_timer qualification;
|
||||
} timers;
|
||||
/** Bitmask of tiemouts. */
|
||||
/** Bitmask of timeouts. */
|
||||
atomic_t timeouts;
|
||||
/** Structure of unique sequence IDs used for messages. */
|
||||
struct {
|
||||
|
|
@ -110,7 +110,7 @@ enum ptp_port_state ptp_port_state(struct ptp_port *port);
|
|||
enum ptp_port_event ptp_port_timer_event_gen(struct ptp_port *port, struct k_timer *timer);
|
||||
/**
|
||||
* @brief Function generating PTP Port events based on messages
|
||||
* that has been recived on a PTP Port's socket.
|
||||
* that has been received on a PTP Port's socket.
|
||||
*
|
||||
* @param[in] port Pointer to the PTP Port structure.
|
||||
* @param[in] idx Index of the PTP Port's socket to be checked.
|
||||
|
|
@ -161,7 +161,7 @@ struct ptp_foreign_tt_clock *ptp_port_best_foreign(struct ptp_port *port);
|
|||
* @brief Function adding foreign TimeTransmitter Clock for the PTP Port based on specified message.
|
||||
*
|
||||
* @param[in] port Pointer to the PTP Port.
|
||||
* @param[in] msg Pointer to the announce message containg PTP TimeTransmitter data.
|
||||
* @param[in] msg Pointer to the announce message containing PTP TimeTransmitter data.
|
||||
*
|
||||
* @return Non-zero if the announce message is different than the last.
|
||||
*/
|
||||
|
|
@ -179,7 +179,7 @@ void ptp_port_free_foreign_tts(struct ptp_port *port);
|
|||
* based on specified message.
|
||||
*
|
||||
* @param[in] port Pointer to the PTP Port.
|
||||
* @param[in] msg Pointer to the announce message containg PTP TimeTransmitter data.
|
||||
* @param[in] msg Pointer to the announce message containing PTP TimeTransmitter data.
|
||||
*
|
||||
* @return Non-zero if the announce message is different than the last.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ enum ptp_tlv_type {
|
|||
};
|
||||
|
||||
/**
|
||||
* @brief PTP managenment message action field
|
||||
* @brief PTP management message action field
|
||||
*
|
||||
* @note based on IEEE 1588-2019 Section 15.4.1.6 Table 57
|
||||
*/
|
||||
|
|
@ -65,7 +65,7 @@ enum ptp_mgmt_op {
|
|||
};
|
||||
|
||||
/**
|
||||
* @brief PTP managenment message ID
|
||||
* @brief PTP management message ID
|
||||
*
|
||||
* @note based on IEEE 1588-2019 Section 15.5.2.3 Table 59
|
||||
*/
|
||||
|
|
@ -221,7 +221,7 @@ struct ptp_tlv_container {
|
|||
sys_snode_t node;
|
||||
/** Pointer to the TLV. */
|
||||
struct ptp_tlv *tlv;
|
||||
/** Structure holding pointers for Clock desccription. */
|
||||
/** Structure holding pointers for Clock description. */
|
||||
struct ptp_tlv_mgmt_clock_desc clock_desc;
|
||||
};
|
||||
|
||||
|
|
@ -346,7 +346,7 @@ struct ptp_tlv_container *ptp_tlv_alloc(void);
|
|||
void ptp_tlv_free(struct ptp_tlv_container *tlv_container);
|
||||
|
||||
/**
|
||||
* @brief Function for getting type of action to be taken on recipt of the PTP message.
|
||||
* @brief Function for getting type of action to be taken on receipt of the PTP message.
|
||||
*
|
||||
* @param[in] msg Pointer to the PTP message.
|
||||
*
|
||||
|
|
@ -368,7 +368,7 @@ enum ptp_tlv_type ptp_tlv_type(struct ptp_tlv *tlv);
|
|||
*
|
||||
* @param[in] tlv Pointer to the received TLV.
|
||||
*
|
||||
* @return Zero on success, othervise negative.
|
||||
* @return Zero on success, otherwise negative.
|
||||
*/
|
||||
int ptp_tlv_post_recv(struct ptp_tlv *tlv);
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ int ptp_transport_close(struct ptp_port *port);
|
|||
* @note Address specified in the message is ignored.
|
||||
*
|
||||
* @param[in] port Pointer to the PTP Port structure.
|
||||
* @param[in] msg Pointer to the messge to be send.
|
||||
* @param[in] msg Pointer to the message to be send.
|
||||
* @param[in] idx Index of the socket to be used to send message.
|
||||
*
|
||||
* @return Number of sent bytes.
|
||||
|
|
@ -78,7 +78,7 @@ int ptp_transport_send(struct ptp_port *port, struct ptp_msg *msg, enum ptp_sock
|
|||
* to the address provided with @ref ptp_msg message structure.
|
||||
*
|
||||
* @param[in] port Pointer to the PTP Port structure.
|
||||
* @param[in] msg Pointer to the messge to be send.
|
||||
* @param[in] msg Pointer to the message to be send.
|
||||
* @param[in] idx Index of the socket to be used to send message.
|
||||
*
|
||||
* @return Number of sent bytes.
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ config NET_SOCKETS_DTLS_SENDMSG_BUF_SIZE
|
|||
Size of the intermediate buffer for DTLS sendmsg() function. The
|
||||
intermediate buffer is needed, as sendmsg() for DGRAM is expected to
|
||||
send all of the data in a single datagram, therefore all data provided
|
||||
in msghdr strucure need to be linearized before passing to mbed TLS.
|
||||
in msghdr structure need to be linearized before passing to mbed TLS.
|
||||
The buffer size can be set to 0, in that case data linearizing for
|
||||
DTLS sockets is disabled. In result, sendmsg() will only accept msghdr
|
||||
with a single non-empty iov buffer.
|
||||
|
|
|
|||
|
|
@ -798,7 +798,7 @@ static int send_check_and_wait(struct net_context *ctx, int status,
|
|||
}
|
||||
|
||||
if (status == -ENOBUFS) {
|
||||
/* We can monitor net_pkt/net_buf avaialbility, so just wait. */
|
||||
/* We can monitor net_pkt/net_buf availability, so just wait. */
|
||||
k_sleep(K_MSEC(*retry_timeout));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ struct tls_credential *credential_get(sec_tag_t tag,
|
|||
}
|
||||
|
||||
|
||||
/* Get the following credential filtered by a TAG valud */
|
||||
/* Get the following credential filtered by a TAG value */
|
||||
struct tls_credential *credential_next_get(sec_tag_t tag,
|
||||
struct tls_credential *iter)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ config ZPERF_WORK_Q_STACK_SIZE
|
|||
module = NET_ZPERF
|
||||
module-dep = NET_LOG
|
||||
module-str = Log level for zperf
|
||||
module-help = Enable debug message of zperf libray.
|
||||
module-help = Enable debug message of zperf library.
|
||||
source "subsys/net/Kconfig.template.log_config.net"
|
||||
|
||||
config NET_ZPERF_MAX_PACKET_SIZE
|
||||
|
|
|
|||
Loading…
Reference in a new issue