Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
okll00
rt-thread
提交
8c1c6516
R
rt-thread
项目概览
okll00
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8c1c6516
编写于
10月 29, 2018
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Components] Change license to Apache License v2.0
上级
fbac6c8b
变更
31
隐藏空白更改
内联
并排
Showing
31 changed file
with
223 addition
and
416 deletion
+223
-416
components/dfs/include/dfs.h
components/dfs/include/dfs.h
+2
-16
components/dfs/include/dfs_file.h
components/dfs/include/dfs_file.h
+2
-16
components/dfs/include/dfs_fs.h
components/dfs/include/dfs_fs.h
+2
-16
components/dfs/include/dfs_poll.h
components/dfs/include/dfs_poll.h
+9
-1
components/dfs/include/dfs_posix.h
components/dfs/include/dfs_posix.h
+2
-16
components/dfs/include/dfs_private.h
components/dfs/include/dfs_private.h
+9
-0
components/dfs/include/dfs_select.h
components/dfs/include/dfs_select.h
+9
-0
components/dfs/src/dfs.c
components/dfs/src/dfs.c
+2
-16
components/dfs/src/dfs_file.c
components/dfs/src/dfs_file.c
+3
-17
components/dfs/src/dfs_fs.c
components/dfs/src/dfs_fs.c
+2
-16
components/dfs/src/dfs_posix.c
components/dfs/src/dfs_posix.c
+3
-17
components/dfs/src/poll.c
components/dfs/src/poll.c
+2
-16
components/dfs/src/select.c
components/dfs/src/select.c
+2
-16
components/net/SConscript
components/net/SConscript
+1
-1
components/net/lwip-1.4.1/src/arch/sys_arch.c
components/net/lwip-1.4.1/src/arch/sys_arch.c
+23
-6
components/net/lwip-1.4.1/src/netif/ethernetif.c
components/net/lwip-1.4.1/src/netif/ethernetif.c
+9
-19
components/net/lwip-2.0.2/src/arch/sys_arch.c
components/net/lwip-2.0.2/src/arch/sys_arch.c
+23
-6
components/net/lwip-2.0.2/src/netif/ethernetif.c
components/net/lwip-2.0.2/src/netif/ethernetif.c
+10
-27
components/net/lwip_dhcpd/dhcp_server.c
components/net/lwip_dhcpd/dhcp_server.c
+21
-13
components/net/lwip_dhcpd/dhcp_server.h
components/net/lwip_dhcpd/dhcp_server.h
+21
-13
components/net/lwip_dhcpd/dhcp_server_raw.c
components/net/lwip_dhcpd/dhcp_server_raw.c
+21
-14
components/net/lwip_nat/ipv4_nat.c
components/net/lwip_nat/ipv4_nat.c
+1
-23
components/net/lwip_nat/ipv4_nat.h
components/net/lwip_nat/ipv4_nat.h
+1
-23
components/utilities/ymodem/ymodem.c
components/utilities/ymodem/ymodem.c
+4
-2
components/utilities/ymodem/ymodem.h
components/utilities/ymodem/ymodem.h
+7
-4
components/vmm/vmm.c
components/vmm/vmm.c
+4
-20
components/vmm/vmm.h
components/vmm/vmm.h
+4
-20
components/vmm/vmm_context.c
components/vmm/vmm_context.c
+4
-21
components/vmm/vmm_context.h
components/vmm/vmm_context.h
+11
-0
components/vmm/vmm_iomap.c
components/vmm/vmm_iomap.c
+4
-20
components/vmm/vmm_vector.c
components/vmm/vmm_vector.c
+5
-21
未找到文件。
components/dfs/include/dfs.h
浏览文件 @
8c1c6516
/*
/*
* File : dfs.h
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/include/dfs_file.h
浏览文件 @
8c1c6516
/*
/*
* File : dfs_file.h
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/include/dfs_fs.h
浏览文件 @
8c1c6516
/*
/*
* File : dfs_fs.h
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/include/dfs_poll.h
浏览文件 @
8c1c6516
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#ifndef DFS_POLL_H__
#ifndef DFS_POLL_H__
#define DFS_POLL_H__
#define DFS_POLL_H__
...
@@ -34,4 +43,3 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout);
...
@@ -34,4 +43,3 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout);
#endif
#endif
#endif
#endif
components/dfs/include/dfs_posix.h
浏览文件 @
8c1c6516
/*
/*
* File : dfs_posix.h
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/include/dfs_private.h
浏览文件 @
8c1c6516
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#ifndef DFS_PRIVATE_H__
#ifndef DFS_PRIVATE_H__
#define DFS_PRIVATE_H__
#define DFS_PRIVATE_H__
...
...
components/dfs/include/dfs_select.h
浏览文件 @
8c1c6516
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#ifndef DFS_SELECT_H__
#ifndef DFS_SELECT_H__
#define DFS_SELECT_H__
#define DFS_SELECT_H__
...
...
components/dfs/src/dfs.c
浏览文件 @
8c1c6516
/*
/*
* File : dfs.c
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/src/dfs_file.c
浏览文件 @
8c1c6516
/*
/*
* File : dfs_file.c
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2011, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2005-02-22 Bernard The first version.
* 2005-02-22 Bernard The first version.
...
...
components/dfs/src/dfs_fs.c
浏览文件 @
8c1c6516
/*
/*
* File : dfs_fs.c
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/src/dfs_posix.c
浏览文件 @
8c1c6516
/*
/*
* File : dfs_posix.c
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of Device File System in RT-Thread RTOS
*
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
* SPDX-License-Identifier: Apache-2.0
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/src/poll.c
浏览文件 @
8c1c6516
/*
/*
* File : poll.c
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/dfs/src/select.c
浏览文件 @
8c1c6516
/*
/*
* File : select.c
* Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team
*
*
* This program is free software; you can redistribute it and/or modify
* SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/net/SConscript
浏览文件 @
8c1c6516
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
list
=
os
.
listdir
(
cwd
)
list
=
os
.
listdir
(
cwd
)
# the default version of LWIP is 2.0.2
# the default version of LWIP is 2.0.2
if
not
GetDepend
(
'RT_USING_LWIP1
32'
)
and
not
GetDepend
(
'RT_USING_LWIP1
41'
)
and
not
GetDepend
(
'RT_USING_LWIP202'
):
if
not
GetDepend
(
'RT_USING_LWIP141'
)
and
not
GetDepend
(
'RT_USING_LWIP202'
):
AddDepend
(
'RT_USING_LWIP202'
)
AddDepend
(
'RT_USING_LWIP202'
)
for
d
in
list
:
for
d
in
list
:
...
...
components/net/lwip-1.4.1/src/arch/sys_arch.c
浏览文件 @
8c1c6516
/*
/*
* File : sys_arch.c
* COPYRIGHT (C) 2006-2018, RT-Thread Development Team
* This file is part of RT-Thread RTOS
* All rights reserved.
* COPYRIGHT (C) 2012, RT-Thread Development Team
*
*
* The license and distribution terms for this file may be
* Redistribution and use in source and binary forms, with or without modification,
* found in the file LICENSE in this distribution or at
* are permitted provided that the following conditions are met:
* http://www.rt-thread.org/license/LICENSE
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/net/lwip-1.4.1/src/netif/ethernetif.c
浏览文件 @
8c1c6516
/*
* File : ethernetif.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2010-07-07 Bernard fix send mail to mailbox issue.
* 2011-07-30 mbbill port lwIP 1.4.0 to RT-Thread
* 2012-04-10 Bernard add more compatible with RT-Thread.
* 2012-11-12 Bernard The network interface can be initialized
* after lwIP initialization.
* 2013-02-28 aozima fixed list_tcps bug: ipaddr_ntoa isn't reentrant.
*/
/*
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* COPYRIGHT (C) 2006-2010, RT-Thread Development Team
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
...
@@ -47,6 +29,14 @@
...
@@ -47,6 +29,14 @@
*
*
* Author: Adam Dunkels <adam@sics.se>
* Author: Adam Dunkels <adam@sics.se>
*
*
* Change Logs:
* Date Author Notes
* 2010-07-07 Bernard fix send mail to mailbox issue.
* 2011-07-30 mbbill port lwIP 1.4.0 to RT-Thread
* 2012-04-10 Bernard add more compatible with RT-Thread.
* 2012-11-12 Bernard The network interface can be initialized
* after lwIP initialization.
* 2013-02-28 aozima fixed list_tcps bug: ipaddr_ntoa isn't reentrant.
*/
*/
#include <rtthread.h>
#include <rtthread.h>
...
...
components/net/lwip-2.0.2/src/arch/sys_arch.c
浏览文件 @
8c1c6516
/*
/*
* File : sys_arch.c
* COPYRIGHT (C) 2006-2018, RT-Thread Development Team
* This file is part of RT-Thread RTOS
* All rights reserved.
* COPYRIGHT (C) 2012, RT-Thread Development Team
*
*
* The license and distribution terms for this file may be
* Redistribution and use in source and binary forms, with or without modification,
* found in the file LICENSE in this distribution or at
* are permitted provided that the following conditions are met:
* http://www.rt-thread.org/license/LICENSE
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/net/lwip-2.0.2/src/netif/ethernetif.c
浏览文件 @
8c1c6516
/*
* File : ethernetif.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2010-07-07 Bernard fix send mail to mailbox issue.
* 2011-07-30 mbbill port lwIP 1.4.0 to RT-Thread
* 2012-04-10 Bernard add more compatible with RT-Thread.
* 2012-11-12 Bernard The network interface can be initialized
* after lwIP initialization.
* 2013-02-28 aozima fixed list_tcps bug: ipaddr_ntoa isn't reentrant.
* 2016-08-18 Bernard port to lwIP 2.0.0
*/
/*
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* COPYRIGHT (C) 2006-2018, RT-Thread Development Team
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
...
@@ -48,13 +29,15 @@
...
@@ -48,13 +29,15 @@
*
*
* Author: Adam Dunkels <adam@sics.se>
* Author: Adam Dunkels <adam@sics.se>
*
*
*/
* Change Logs:
* Date Author Notes
/*
* 2010-07-07 Bernard fix send mail to mailbox issue.
* This file is a skeleton for developing Ethernet network interface
* 2011-07-30 mbbill port lwIP 1.4.0 to RT-Thread
* drivers for lwIP. Add code to the low_level functions and do a
* 2012-04-10 Bernard add more compatible with RT-Thread.
* search-and-replace for the word "ethernetif" to replace it with
* 2012-11-12 Bernard The network interface can be initialized
* something that better describes your network interface.
* after lwIP initialization.
* 2013-02-28 aozima fixed list_tcps bug: ipaddr_ntoa isn't reentrant.
* 2016-08-18 Bernard port to lwIP 2.0.0
*/
*/
#include "lwip/opt.h"
#include "lwip/opt.h"
...
...
components/net/lwip_dhcpd/dhcp_server.c
浏览文件 @
8c1c6516
...
@@ -2,23 +2,31 @@
...
@@ -2,23 +2,31 @@
* File : dhcp_server.c
* File : dhcp_server.c
* A simple DHCP server implementation
* A simple DHCP server implementation
*
*
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2011-2018, Shanghai Real-Thread Technology Co., Ltd
* COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd
* http://www.rt-thread.com
* http://www.rt-thread.com
* All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* Redistribution and use in source and binary forms, with or without modification,
* it under the terms of the GNU General Public License as published by
* are permitted provided that the following conditions are met:
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* 1. Redistributions of source code must retain the above copyright notice,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* this list of conditions and the following disclaimer.
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* 2. Redistributions in binary form must reproduce the above copyright notice,
* GNU General Public License for more details.
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
*
* You should have received a copy of the GNU General Public License along
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* with this program; if not, write to the Free Software Foundation, Inc.,
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/net/lwip_dhcpd/dhcp_server.h
浏览文件 @
8c1c6516
...
@@ -2,23 +2,31 @@
...
@@ -2,23 +2,31 @@
* File : dhcp_server.h
* File : dhcp_server.h
* A simple DHCP server implementation
* A simple DHCP server implementation
*
*
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2011-2018, Shanghai Real-Thread Technology Co., Ltd
* COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd
* http://www.rt-thread.com
* http://www.rt-thread.com
* All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* Redistribution and use in source and binary forms, with or without modification,
* it under the terms of the GNU General Public License as published by
* are permitted provided that the following conditions are met:
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* 1. Redistributions of source code must retain the above copyright notice,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* this list of conditions and the following disclaimer.
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* 2. Redistributions in binary form must reproduce the above copyright notice,
* GNU General Public License for more details.
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
*
* You should have received a copy of the GNU General Public License along
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* with this program; if not, write to the Free Software Foundation, Inc.,
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/net/lwip_dhcpd/dhcp_server_raw.c
浏览文件 @
8c1c6516
/*
/*
* File : dhcp_server_raw.c
* File : dhcp_server_raw.c
* A simple DHCP server implementation
* A simple DHCP server implementation
*
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2011-2018, Shanghai Real-Thread Technology Co., Ltd
* COPYRIGHT (C) 2011-2018, Shanghai Real-Thread Technology Co., Ltd
* http://www.rt-thread.com
* http://www.rt-thread.com
* All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* Redistribution and use in source and binary forms, with or without modification,
* it under the terms of the GNU General Public License as published by
* are permitted provided that the following conditions are met:
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License along
* 1. Redistributions of source code must retain the above copyright notice,
* with this program; if not, write to the Free Software Foundation, Inc.,
* this list of conditions and the following disclaimer.
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2014-04-01 Ren.Haibo the first version
* 2014-04-01 Ren.Haibo the first version
...
...
components/net/lwip_nat/ipv4_nat.c
浏览文件 @
8c1c6516
/**
/**
* NAT - NAT implementation for lwIP supporting TCP/UDP and ICMP.
* NAT - NAT implementation for lwIP supporting TCP/UDP and ICMP.
* Copyright (c) 2009 Christian Walter, ?Embedded Solutions, Vienna 2009.
* Copyright (c) 2009 Christian Walter, ?Embedded Solutions, Vienna 2009.
*
* Copyright (c) 2010 lwIP project ;-)
* Copyright (c) 2010 lwIP project ;-)
* COPYRIGHT (C) 2015, RT-Thread Development Team
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
...
@@ -27,28 +27,6 @@
...
@@ -27,28 +27,6 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
* OF SUCH DAMAGE.
*
*
* This file is part of the lwIP TCP/IP stack.
*/
/*
* File : ipv4_nat.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2015, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2015-01-26 Hichard porting to RT-Thread
* 2015-01-26 Hichard porting to RT-Thread
...
...
components/net/lwip_nat/ipv4_nat.h
浏览文件 @
8c1c6516
/**
/**
* NAT - NAT implementation for lwIP supporting TCP/UDP and ICMP.
* NAT - NAT implementation for lwIP supporting TCP/UDP and ICMP.
* Copyright (c) 2009 Christian Walter, ?Embedded Solutions, Vienna 2009.
* Copyright (c) 2009 Christian Walter, ?Embedded Solutions, Vienna 2009.
*
* Copyright (c) 2010 lwIP project ;-)
* Copyright (c) 2010 lwIP project ;-)
* COPYRIGHT (C) 2015, RT-Thread Development Team
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
...
@@ -27,28 +27,6 @@
...
@@ -27,28 +27,6 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
* OF SUCH DAMAGE.
*
*
* This file is part of the lwIP TCP/IP stack.
*/
/*
* File : ipv4_nat.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2015, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2015-01-26 Hichard porting to RT-Thread
* 2015-01-26 Hichard porting to RT-Thread
...
...
components/utilities/ymodem/ymodem.c
浏览文件 @
8c1c6516
/*
/*
* File : ymodem.c
* COPYRIGHT (C) 2012, Real-Thread Information Technology Ltd
* COPYRIGHT (C) 2012, Shanghai Real-Thread Technology Co., Ltd
* All rights reserved
*
* SPDX-License-Identifier: Apache-2.0
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/utilities/ymodem/ymodem.h
浏览文件 @
8c1c6516
#ifndef __YMODEM_H__
#define __YMODEM_H__
/*
/*
* File : ymodem.h
* COPYRIGHT (C) 2012, Real-Thread Information Technology Ltd
* COPYRIGHT (C) 2012, Shanghai Real-Thread Technology Co., Ltd
* All rights reserved
*
* SPDX-License-Identifier: Apache-2.0
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2013-04-14 Grissiom initial implementation
* 2013-04-14 Grissiom initial implementation
*/
*/
#ifndef __YMODEM_H__
#define __YMODEM_H__
#include "rtthread.h"
#include "rtthread.h"
/* The word "RYM" is stand for "Real-YModem". */
/* The word "RYM" is stand for "Real-YModem". */
...
...
components/vmm/vmm.c
浏览文件 @
8c1c6516
/*
/*
* VMM startup file.
* VMM startup file.
*
*
* COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd
* COPYRIGHT (C) 2013-2014, Real-Thread Information Technology Ltd
*
* All rights reserved
* This file is part of RT-Thread (http://www.rt-thread.org)
*
* Maintainer: bernard.xiong <bernard.xiong at gmail.com>
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/vmm/vmm.h
浏览文件 @
8c1c6516
/*
/*
* VMM startup file.
* VMM startup file.
*
*
* COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd
* COPYRIGHT (C) 2013-2014, Real-Thread Information Technology Ltd
*
* All rights reserved
* This file is part of RT-Thread (http://www.rt-thread.org)
*
* Maintainer: bernard.xiong <bernard.xiong at gmail.com>
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/vmm/vmm_context.c
浏览文件 @
8c1c6516
/*
/*
* guest context on VMM
* COPYRIGHT (C) 2013-2014, Real-Thread Information Technology Ltd
*
* All rights reserved
* COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd
*
*
* SPDX-License-Identifier: Apache-2.0
* This file is part of RT-Thread (http://www.rt-thread.org)
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/vmm/vmm_context.h
浏览文件 @
8c1c6516
/*
* COPYRIGHT (C) 2013-2014, Real-Thread Information Technology Ltd
* All rights reserved
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2013-11-04 Grissiom add comment
*/
#ifndef __VMM_CONTEXT_H__
#ifndef __VMM_CONTEXT_H__
#define __VMM_CONTEXT_H__
#define __VMM_CONTEXT_H__
...
...
components/vmm/vmm_iomap.c
浏览文件 @
8c1c6516
/*
/*
* VMM IO map table
* VMM IO map table
*
*
* COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd
* COPYRIGHT (C) 2013-2014, Real-Thread Information Technology Ltd
*
* All rights reserved
* This file is part of RT-Thread (http://www.rt-thread.org)
*
* Maintainer: bernard.xiong <bernard.xiong at gmail.com>
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
components/vmm/vmm_vector.c
浏览文件 @
8c1c6516
/*
/*
* VMM vector handle
* VMM vector handle
*
*
* COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd
* COPYRIGHT (C) 2013-2014, Real-Thread Information Technology Ltd
*
* All rights reserved
* This file is part of RT-Thread (http://www.rt-thread.org)
*
* Maintainer: bernard.xiong <bernard.xiong at gmail.com>
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录