Commit Graph

380 Commits

Author SHA1 Message Date
nicedayzhu fe3ab4605d
[Bugfix]Update netdev info after registered
1.修复ifconfig命令无法正确显示IP,网关,掩码的问题
2.lwip_2.1.0,增加netdev->mtu = lwip_netif->mtu;
2019-05-29 15:34:02 +08:00
nicedayzhu c8e1fbf673
[Bugfix]Update netdev info after registered
修复ifconfig命令无法正确显示IP,网关,掩码的问题
2019-05-29 15:22:11 +08:00
nicedayzhu c10f087d9e
[Bugfix]Update netdev info after registered
修复ifconfig命令无法正确显示IP,网关,掩码的问题
2019-05-29 14:15:10 +08:00
nicedayzhu 6454fa81d8
[Bugfix]Update netdev info after registered
修复ifconfig命令无法正确显示IP,网关,掩码的问题
2019-05-29 13:42:06 +08:00
nicedayzhu f5cb3ac760
[Bugfix]Update netdev info after registered
修复ifconfig命令无法正确显示IP,网关,掩码的问题
2019-05-29 13:37:16 +08:00
nicedayzhu c25f7cbfc7
bugfix
[net][netdev] Update netdev->ip_addr&gw&netmask after registered.
2019-05-29 11:12:05 +08:00
Bernard Xiong 7494b40d6a
Merge pull request #2728 from Lawlieta/develop
[net][at] Fix socket create failed issue when default netdev mismatch.
2019-05-28 20:11:46 +08:00
chenyong 1f9a668607 [net][at] Fix socket create failed issue when default netdev mismatch.
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-28 16:25:42 +08:00
chenyong 4608e1164c [net][sal] Improve the sal_bind() function
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-28 12:04:25 +08:00
chenyong b5ad12573f [net][at] update AT component V1.3.0, change as follows:
- AT Socket feature supports multi-client connections;
- Fix `send data error, current socket (0) state (0) is error` issue when the socket is closed;
- Improve dirty data processing when AT device hard reset;
- Improve `at_obj_set_urc_table()` fucntion, Support for setting multiple URC tables;
- Improve RAW data print format;
2019-05-27 12:03:04 +08:00
Bernard Xiong b249ad77bb
Merge pull request #2689 from balanceTWK/pr_master
[components][freemodbus] update function : xMBPortSerialInit(); xMBMasterPortSerialInit
2019-05-16 09:16:31 +08:00
tangweikang 4f44fa8f60 [components][freemodbus] update function : xMBPortSerialInit(...) and xMBMasterPortSerialInit(...) | 更新 xMBPortSerialInit() 与 xMBMasterPortSerialInit() 函数 2019-05-15 17:16:20 +08:00
chenyong 9abdebbec9 [net][sal] Fix fcntl() function not support F_GETFL/F_SETFL operations for socketfd.
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-15 14:45:31 +08:00
tangweikang 3dd64da78b [components][freemodbus] update function : xMBPortSerialInit(...) and xMBMasterPortSerialInit(...) | 更新 xMBPortSerialInit() 与 xMBMasterPortSerialInit() 函数 2019-05-15 12:03:03 +08:00
chenyong efdb51504c [net][sal] Fix sys/time.h missing error when not enabled POSIX support
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-12 20:00:05 +08:00
chenyong 4de0533a51 [net][sal][netdev] Delete the link_up status judgment in the send/recv interface
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-10 15:57:58 +08:00
Bernard Xiong 955d78cd14
Merge pull request #2658 from Lawlieta/develop_sal
[net][sal] Improve ioctl interface to support socketfd operations
2019-05-08 15:26:28 +08:00
Bernard Xiong dfaced4cb6
Merge pull request #2655 from Lawlieta/develop
[net][sal] Add options and types for UDP multicast traffic handling
2019-05-08 14:29:15 +08:00
chenyong 25ebcc9c33 [net][sal] Improve ioctl interface to support for socketfd operations
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-08 10:48:17 +08:00
chenyong cbe67ae354 [net][sal] Add options and types for UDP multicast traffic handling
[net][sal] Add options for level IPPROTO_IP

Signed-off-by: chenyong <1521761801@qq.com>
2019-05-07 17:24:11 +08:00
Bernard Xiong 4a2242b94d
Merge pull request #2650 from Lawlieta/develop
[net][netdev] Add default netdev automatic change features configuration
2019-05-06 09:26:29 +08:00
chenyong 7424e44e20 [net][netdev] Add default netdev automatic change features configuration
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-05 20:35:01 +08:00
Bernard Xiong dd1a906b6d
Merge pull request #2638 from ericQiang/rtt_dev
[bug fix]不使能LWIP的TCP功能时,编译出错。
2019-05-05 18:18:08 +08:00
chenyong 9752dd7889 [net][sal] Delete the judgment of the default network interface device when socket is created
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-05 14:50:29 +08:00
ericQiang ee6671f22b [bug fix]不使能LWIP的TCP功能时,编译出错。 2019-04-30 00:22:17 +08:00
HubretXie fd05ad76d6
Update sal_socket.c
格式化代码
2019-04-28 15:26:52 +08:00
HubretXie 2d82b62111
Update netdev.c
根据family查找netdev时,优先查找family匹配并且已经联网的网卡
再查找family匹配但是未联网的网卡
2019-04-28 15:24:23 +08:00
HubretXie f7e5f4cd50
Update sal_socket.c
创建sock时,默认网卡联网时才优先使用
2019-04-28 15:21:19 +08:00
chenyong c9bea68240 [net][lwip] Fix open the netdev and the lwip component, ping command export error issue
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-28 00:53:58 +08:00
chenyong 2721e7189a [net][netdev] Fix netdev link_down status, socket create failed issue
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-27 17:24:58 +08:00
chenyong 99c069ffd3 [net][at] Modify AT commands send timeout error log level
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-26 10:04:43 +08:00
chenyong 6f732ebb7f [net][sal] fix sockfd initialize error problem
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-24 00:11:04 +08:00
chenyong 126fa9b561 [net][netdev] Improve netdev DNS setting function 2019-04-23 15:08:10 +08:00
Bernard Xiong ca7ebe6175
Merge pull request #2600 from EvalZero/master
[components][workqueue]improve delayed work for reinit.
2019-04-22 19:28:25 +08:00
EvalZero 3ada52e353 [components][net]synchronize delayed work changes. 2019-04-22 11:50:39 +08:00
chenyong f169ceb184 [net][lwip] fix lwip netdev DNS address setup error
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-22 11:28:45 +08:00
chenyong 9df6313537 [net][sal] fix delay_work timer not detach problem
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-17 18:42:10 +08:00
chenyong 946484760e [net][at][lwip] Modify AT component and lwIP components for netdev 2019-04-16 20:21:33 +08:00
chenyong 3d6e0ea374 [net][netdev]add network interface device components, SAL component adaptation netdev change 2019-04-16 18:24:55 +08:00
armink fa4d4ab7cf Update all of debug log definition to DBG_TAG and DBG_LVL. 2019-04-12 10:18:57 +08:00
MurphyZhao 9be085aa04 [components/net/lwip-1.4.1] 修复不开启 RT_USING_LIBC 时 errno 错误码重复定义的问题
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-04-11 15:14:20 +08:00
MurphyZhao 81e028105d [components/net/lwip-1.4.1] 移除对 errno.h 的引入
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-04-11 14:28:59 +08:00
HubretXie 5066ba6a0e
Update at_socket.c
修复sock未初始化使用的问题
2019-04-02 16:10:54 +08:00
Bernard Xiong 656d20362b
Merge pull request #2449 from qgyhd1234/checksum
[components][lwip]添加 LWIP 硬件校验和选项,修改 STM32 系列和 rt1052 系列以太网驱动,支持硬件校验和
2019-03-14 20:23:36 +08:00
zylx bb97c76b59 [components][lwip]LWIP 1.4.1 支持硬件校验和 2019-03-14 17:33:29 +08:00
zylx 9818ee2d29 [components][lwip]添加 LWIP 硬件校验和选项,修改 STM32 系列和 rt1052 系列以太网驱动,支持硬件校验和 2019-03-14 16:39:50 +08:00
liruncong e5522d6292 [components/net]增加const限定 2019-03-10 10:55:11 +08:00
Bernard Xiong ce2cbb42ec
Merge pull request #2388 from armink/fix_rtdbg
Remove the DBG_COLOR and DBG_ENABLE definition.
2019-03-07 17:03:23 +08:00
armink 0d7ba79219 Remove the DBG_COLOR and DBG_ENABLE definition. 2019-03-06 17:54:30 +08:00
chenyong 0d9b7d60db [net][sal_socket] improve closesocke/shutdown error handling
Signed-off-by: chenyong <1521761801@qq.com>
2019-03-05 19:25:05 +08:00