!903 【OpenHarmony开源贡献者计划2022】fix typos for net

Merge pull request !903 from c01dface/master
This commit is contained in:
openharmony_ci 2022-06-23 14:54:42 +00:00 committed by Gitee
commit beb03bfc81
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 10 additions and 10 deletions

View File

@ -243,7 +243,7 @@ struct ifconfig_option {
unsigned char ethaddr[6];
u16_t mtu;
/* when using telnet, print to the telnet socket will result in system */
/* deadlock. So we cahe the prinf data to a buf, and when the tcpip */
/* deadlock. So we cache the print data to a buf, and when the tcpip */
/* callback returns, then print the data out to the telnet socket */
sys_sem_t cb_completed;
char cb_print_buf[PRINT_BUF_LEN];
@ -1158,9 +1158,9 @@ struct arp_option {
unsigned int ipaddr;
/* hw addr */
unsigned char ethaddr[6];
/* when using telnet, printf to the telnet socket will result in system */
/* deadlock.so don't do it.cahe the data to prinf to a buf, and when */
/* callback returns, then printf the data out to the telnet socket */
/* when using telnet, print to the telnet socket will result in system */
/* deadlock.so don't do it. cache the data to print to a buf, and when */
/* callback returns, then print the data out to the telnet socket */
sys_sem_t cb_completed;
char cb_print_buf[PRINT_BUF_LEN];
int print_buf_len;
@ -2234,13 +2234,13 @@ u32_t osShellPing6(int argc, const char **argv)
}
if ((u32_t)ret < sizeof(struct icmp6_echo_hdr *)) {
/* Drop the packet if its too short [Doesnot contain even the header !!] */
/* Drop the packet if its too short [Doesn't contain even the header !!] */
PRINTK("ping6 : received ICMP echo response too short\n");
goto REDUCE_SELECT_TIME;
}
/* Acceping the ICMPv6 payload. */
/* Here, pbuf_resp->payload wont contain IPv6 Header since its an AF_INET6 RAW Socket */
/* Here, pbuf_resp->payload won't contain IPv6 Header since its an AF_INET6 RAW Socket */
iecho_resp = (struct icmp6_echo_hdr *)pbuf_resp->payload;
if (iecho_resp->id == icmpv6_id) {

View File

@ -601,7 +601,7 @@ LWIP_STATIC void handle_request(struct netif *netif, struct dhcps *dhcps, struct
dhcp_common_option_byte(srvr_msg, DHCP_NAK, &options_len);
/* Just set this here, so that the NAK message is brcasted.
The correct flags has already been added in the respose message during base message creation */
The correct flags has already been added in the response message during base message creation */
client_msg->flags |= htons(DHCP_BROADCAST_FLAG);
client_msg->ciaddr.addr = 0; /* This is done so that NAK Gets brcasted */
#ifdef LWIP_DEV_DEBUG