提交 b2e53a13 编写于 作者: M mamingshuai

update openharmony 1.0.1

上级 a595479c
[
{
"Name" : "lwip",
"License" : "BSD 3-Clause License",
"License File" : "COPYING",
"Version Number" : "2.1.2",
"Owner" : "wangmihu@huawei.com",
"Upstream URL" : "https://savannah.nongnu.org/projects/lwip/",
"Description" : "lwIP is a small independent implementation of the TCP/IP protocol suite that has been initially developed by Adam Dunkels. The focus of the lwIP TCP/IP implementation is to reduce resource usage while still having a full scale TCP. This makes lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM."
}
]
......@@ -319,6 +319,10 @@ dns_init(void)
ip_addr_t dnsserver;
DNS_SERVER_ADDRESS(&dnsserver);
dns_setserver(0, &dnsserver);
#ifdef DNS_SERVER_ADDRESS_SECONDARY
DNS_SERVER_ADDRESS_SECONDARY(&dnsserver);
dns_setserver(1, &dnsserver);
#endif
#endif /* DNS_SERVER_ADDRESS */
LWIP_ASSERT("sanity check SIZEOF_DNS_QUERY",
......
......@@ -388,7 +388,11 @@ udp_input(struct pbuf *p, struct netif *inp)
/* pass a copy of the packet to all local matches */
if (mpcb->recv != NULL) {
struct pbuf *q;
#if USE_PBUF_RAM_UDP_INPUT
q = pbuf_clone(PBUF_RAW, PBUF_RAM, p);
#else
q = pbuf_clone(PBUF_RAW, PBUF_POOL, p);
#endif
if (q != NULL) {
mpcb->recv(mpcb->recv_arg, mpcb, q, ip_current_src_addr(), src);
}
......
......@@ -130,7 +130,9 @@ extern "C" {
#define ELIBSCN 81 /* .lib section in a.out corrupted */
#define ELIBMAX 82 /* Attempting to link in too many shared libraries */
#define ELIBEXEC 83 /* Cannot exec a shared library directly */
#ifndef EILSEQ
#define EILSEQ 84 /* Illegal byte sequence */
#endif
#define ERESTART 85 /* Interrupted system call should be restarted */
#define ESTRPIPE 86 /* Streams pipe error */
#define EUSERS 87 /* Too many users */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册