Wu Jian Gang
e05fe28574
Merge branch 'bugfix/arp_queue_failed' into 'master'
...
report the arp queue fail result
See merge request !227
2016-11-22 14:45:44 +08:00
Wu Jian Gang
46c81ded73
Merge branch 'feature/tw8799_low_level_output_optimize' into 'master'
...
Feature/tw8799 low level output optimize
Fix a potential memory crash error in low_level_output
See merge request !224
2016-11-22 11:56:35 +08:00
tianzhongxing
cc39b7b286
components/lwip/arp: change the arp dropping packet function
...
LWIP will drop the oldest package at the arp packet cache queue and return "ERR_OK"
We change it that ARP level will drop the current packet and return "ERR_MEM" to tell user that you should send the packet again latter.
2016-11-22 10:11:52 +08:00
Liu Zhi Fu
586c17f831
lwip: remove useless printf info
2016-11-21 16:08:39 +08:00
tzx
a8fb9f2b84
ipv6 interface: add branch for ipv6 interface
2016-11-21 11:06:51 +08:00
Liu Zhi Fu
8cd48d9f9c
lwip: rework for low_level_output
2016-11-20 17:05:44 +08:00
Liu Zhi Fu
fa57720cdf
lwip: optimize low_level_output
...
When the parameter pbuf for low_level_output is a list, malloc a new pbuf of
which the length equals to the total length of pbuf and send the new pbuf to L2
2016-11-19 22:25:30 +08:00
Liu Zhi Fu
5e428f21b6
lwip: default ESP_L2_TO_L3_COPY to 0
2016-11-17 10:53:00 +08:00
Liu Zhi Fu
ceea97495f
lwip:refractor to the description about this menuconfig option
2016-11-17 10:22:20 +08:00
Liu Zhi Fu
0b2cea6e9f
lwip: modify menuconfig comments according to review
2016-11-16 21:11:17 +08:00
Liu Zhi Fu
69dbc36a1c
lwip: add option to memcopy packet from L2 to L3
...
Menuconfig add an option to copy the packet from layer2 (WIFI driver) to layer3 (LWIP), default not copy
2016-11-16 16:24:41 +08:00
Angus Gratton
208e83def7
build system: Refactor component.mk to not need component_common.mk
...
New makefile component_wrapper.mk allows some variables to be set
before component.mk is evaluated. This properly fixes problems with
sdkconfig being hard to access in all phases of the build.
Including component_common.mk is no longer necessary and will print a
deprecation warning for components which use it.
2016-11-10 15:52:22 +11:00
Ivan Grokhotkov
3f8d9d71e2
lwip: fix duplicate definition of O_NONBLOCK
...
LwIP will define O_NONBLOCK in sockets.h if it isn't defined yet.
If sys/fcntl.h is included after socket.h, there will be duplicate definition.
Work around by including sys/fcntl.h into lwipopts.h.
https://github.com/espressif/esp-idf/issues/75
2016-11-08 20:17:08 +08:00
Ivan Grokhotkov
eb2c633cbf
newlib: implement settimeofday, integrate LwIP SNTP, add SNTP example
2016-11-03 12:46:46 +08:00
Liu Zhi Fu
f0cd38a079
lwip: remove tx flow control code
2016-11-01 15:25:46 +08:00
Liu Zhi Fu
92b663d9f2
lwip: optimize tx flow control
...
1. Remove tx flow control for TCP
2. Remove tx flow control for UDP temporary
3. Return the error code when call esp_wifi_internal_tx()
2016-10-31 21:26:33 +08:00
Liu Zhi Fu
2b722ea468
turn on per socket tcp window by default
2016-10-31 19:43:18 +08:00
Liu Zhi Fu
19f61332a9
make build pass when disable per soc tcp window
2016-10-31 19:38:47 +08:00
Liu Zhi Fu
a5552b1e21
lwip: fix tcp rx abnormal issue(tw8242)
...
In tcp_alloc(), initialize per_soc_tcp_wnd before initializing recv_wnd because recv_wnd depends on per_soc_tcp_wnd.
2016-10-31 17:50:09 +08:00
Liu Zhi Fu
9e7bc900c5
lwip: rework comments according to review
2016-10-28 13:35:06 +08:00
Liu Zhi Fu
38ff616e4a
lwip: add prompt when configure max sockets number in menuconfig
2016-10-28 12:29:26 +08:00
Liu Zhi Fu
305b63209e
lwip: support max 16 sockets
...
Since the customers need more sockets in their application, support max 16 sockets,
in other words, the total socket number of UDP/TCP/RAW sockets should not exceed 16.
2016-10-28 12:03:51 +08:00
Liu Zhi Fu
6e6e51426f
lwip: refractor for lwip
...
1. All espressif specific code are prefix with ESP_
2. Define all ESP_ options in lwipopts.h
3. Remove useless code added in 8266
2016-10-27 14:11:01 +08:00
Jeroen Domburg
5642a8061e
Merge branch 'feature/add_per_socket_tcp_window' into 'master'
...
components/lwip - add per socket tcp window
Add code to support per socket tcp window and tcp send buffer size configuration.
See merge request !145
2016-10-26 23:39:36 +08:00
liuzhifu
a90217e201
components esp32/lwip: modify code according to review comments
...
1. Modify comments for esp_wifi_internal_tx
2. Fix delay time error in esp32_tx_flow_ctrl which is found in code review,
modify _wait_delay init value from 0 to 1
2016-10-26 14:09:54 +08:00
liuzhifu
612aaa69e4
lwip/esp32: move the extern wifi calls into esp_wifi_internal.h
...
1. Add esp_wifi_internal.h
2. Rename system_pp_recycle_rx_pkt to esp_wifi_internal_free_rx_buffer
3. rename esp_wifi_tx_is_stop to esp_wifi_internal_tx_is_stop
4. rename ieee80211_output to esp_wifi_internal_tx
2016-10-26 13:23:35 +08:00
liuzhifu
60fb9a8c81
components/lwip - add per socket tcp window
...
Add code to support per socket tcp window and tcp send buffer size configuration.
2016-10-23 00:49:41 +08:00
liuzhifu
d71894bf99
lwip/esp32: support iperf
...
1. Add _exit() definition in syscalls.c
2. Fix a bug in sockets.c on which iperf depends
2016-10-09 15:45:25 +08:00
Wu Jian Gang
ed0a85ab4d
Kconfig: use 4 spaces to instead 1 tab
...
In some Kconfig file, both 4 spaces and 1 tab are used mix, let's just
use 4 space, it will be clean in some editor.
2016-09-28 13:24:58 +08:00
Ivan Grokhotkov
b190dc3e9f
components/lwip,esp32: fixes for C++
...
- put contents of a few headers into c++ guard blocks
- fix off-by-one error in do_global_ctors
- remove system_init from startup code (should be called from main)
2016-09-26 03:05:25 +08:00
Ivan Grokhotkov
cc8dd46da2
clean up warnings
...
For third party components (lwip and expat), compilation flags are adjusted to silence existing warnings (i have manually checked that all warnings are benign).
In components/esp32, replaced use of WIFI_DEBUG with ESP_LOG functions.
Only remaining warning is in FreeRTOS queue.c, and it may be a useful one.
2016-09-26 00:52:32 +08:00
Ivan Grokhotkov
9a1bf32274
Merge branch 'feature/lwip_add_debug_code' into 'master'
...
lwip: add debug code to show udp/tcp pcbs
Add code to show all tcp/udp pcbs, these kind of debug info is helpful for lwip issue debugging.
See merge request !98
2016-09-20 17:22:22 +08:00
Ivan Grokhotkov
3b22173a93
components/lwip: fix grammar
2016-09-20 16:53:56 +08:00
Ivan Grokhotkov
316d3f9c4a
components/lwip: make SO_REUSE configurable via menuconfig
...
Not all environments need or can work with SO_REUSE enabled, so making this option configurable.
2016-09-20 15:36:55 +08:00
liuzhifu
f64e1c54b7
lwip: add license and add lwip_debug.h
2016-09-20 15:36:49 +08:00
liuzhifu
50c7583f4d
lwip: add debug code to show udp/tcp pcbs
2016-09-20 14:51:03 +08:00
Jeroen Domburg
4d4c6a3694
Enable SO_REUSEADDR in LWIP
2016-09-18 16:43:48 +08:00
Wu Jian Gang
2efaf42253
Merge remote-tracking branch 'origin/feature/mbedtls'
2016-09-14 18:05:56 +08:00
Xu Chun Guang
064d2b4ecb
dhcpserver: Fix crash when switching wifi mode
...
See Teamwork 7058.
2016-09-14 16:14:50 +08:00
liuzhifu
d2d231de29
define lwip task priority in esp_task.h
2016-09-14 12:00:46 +08:00
liuzhifu
4a98027242
components: lwip - Modify lwip task priority and stack definition method
...
lwip task priority and stack size defintion should not depends on esp_task.h, define it
in lwipopts.h directly
2016-09-14 12:00:46 +08:00
liuzhifu
9cf997a6fc
components: esp32/lwip
...
Add esp_task.h for placing all task priority/stack size macro definition
2016-09-14 12:00:46 +08:00
liuzhifu
56a684d9eb
task priority: modify lwip/wifi/event task priority
...
1. Modify lwip core task priority to configMAX_PRIORITIES-7
2. Modify wifi startup task priority to configMAX_PRIORITIES-7
3. Modify event task priority to configMAX_PRIORITIES-4
2016-09-14 11:59:25 +08:00
Wu Jian Gang
058a411786
Merge branch 'feature/add_wifi_api_comments' into 'master'
...
Feature/add wifi api comments
Add wifi API comments
See merge request !63
2016-09-14 11:17:29 +08:00
Wu Jian Gang
ed8e8848e3
fix typos
2016-09-13 20:54:20 +08:00
Angus Gratton
9c51f8a7a3
Merge branch 'master' into feature/mbedtls
2016-09-12 17:30:11 +10:00
liuzhifu
32f01c61a2
add comments about current tx flow control
2016-09-09 17:58:21 +08:00
liuzhifu
e38c4b0365
modify esp32_tx_flow_ctrl to static function and move extern api to header file
2016-09-09 17:58:21 +08:00
liuzhifu
19c8476344
modify macro ESP32_TX_FLOW_CTRL to inline function
2016-09-09 17:58:21 +08:00
liuzhifu
a28ef1776e
lwip: add socket tx flow control
2016-09-09 17:58:21 +08:00