mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
minor coding style/spelling fixes
This commit is contained in:
parent
b92faffaaa
commit
3eeda139bc
@ -102,7 +102,7 @@ Archive the current directory using tar, gzip'd, bzip2'd and zip'd.
|
||||
tar cjvf lwip-1.4.1.tar.bz2 lwip-1.4.1
|
||||
zip -r lwip-1.4.1.zip lwip-1.4.1
|
||||
|
||||
Alterntively, archive the current directory using git
|
||||
Alternatively, archive the current directory using git
|
||||
git archive -o lwip-1.4.1.tar.gz --prefix lwip-1.4.1/ STABLE-1_4_1
|
||||
|
||||
Now, sign the archives with a detached GPG binary signature as follows:
|
||||
|
@ -351,7 +351,9 @@ icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
|
||||
|
||||
/* Keep IP header + up to 8 bytes */
|
||||
response_pkt_len = IP_HLEN + ICMP_DEST_UNREACH_DATASIZE;
|
||||
if (p->tot_len < response_pkt_len) response_pkt_len = p->tot_len;
|
||||
if (p->tot_len < response_pkt_len) {
|
||||
response_pkt_len = p->tot_len;
|
||||
}
|
||||
|
||||
/* ICMP header + part of original packet */
|
||||
q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_hdr) + response_pkt_len, PBUF_RAM);
|
||||
|
Loading…
Reference in New Issue
Block a user