Imported @djphoenix's new native LWIP net module.

Based on his revision 2d290a24a0914be88e5ca4ac7b1018392fe75fe2
(https://github.com/djphoenix/nodemcu-firmware).

All LWIP callback handling changed to use the NodeMCU task interface
to make it usable on RTOS.

IPv4 assumptions have been removed, and this net module /should/ now
be IPv6 ready, but aside from compilation no testing has been done
in this area.

SSL integration points not touched - some work needed there once we
have an mbedTLS module.
This commit is contained in:
Johny Mattsson 2016-10-06 17:24:08 +11:00
parent e67c6f0917
commit be5dafb264
2 changed files with 1194 additions and 16 deletions

View File

@ -34,7 +34,7 @@ config LUA_BUILTIN_DEBUG
config LUA_BUILTIN_DEBUG_EXTENDED
depends on LUA_BUILTIN_DEBUG
bool "Extended debug support
bool "Extended debug support"
default "n"
help
Includes the full debug module, rather than just getregistry and traceback.
@ -46,17 +46,13 @@ depends on LUA_BUILTIN_DEBUG
endmenu
config LUA_MODULE_NODE
bool "Node module"
default "y"
help
Includes the node module (recommended).
config LUA_MODULE_FILE
bool "File module"
default "y"
config LUA_MODULE_BTHCI
bool "BlueTooth HCI interface module"
default "n"
help
Includes the file module (recommended).
Includes the simple BlueTooth HCI module.
config LUA_MODULE_ENCODER
bool "Encoder module"
@ -65,16 +61,28 @@ config LUA_MODULE_ENCODER
Includes the encoder module. This provides hex and base64 encoding and
decoding functionality.
config LUA_MODULE_FILE
bool "File module"
default "y"
help
Includes the file module (recommended).
config LUA_MODULE_NET
bool "Net module"
default "y"
help
Includes the net module (recommended).
config LUA_MODULE_NODE
bool "Node module"
default "y"
help
Includes the node module (recommended).
config LUA_MODULE_WIFI
bool "WiFi module"
default "y"
help
Includes the WiFi module (recommended).
config LUA_MODULE_BTHCI
bool "BlueTooth HCI interface module"
default "n"
help
Includes the simple BlueTooth HCI module.
endmenu

1170
components/modules/net.c Normal file

File diff suppressed because it is too large Load Diff