1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

248 Commits

Author SHA1 Message Date
Martine S. Lenders
e98e2f6143
lwip: fix style errors found by Vera++ 2020-03-06 11:29:45 +01:00
Martine S. Lenders
fc67e6143a
lwip: provide sock_async support 2020-03-06 11:28:16 +01:00
Martine S. Lenders
20805548b3 lwip: introduce sock base-type 2020-02-21 19:07:47 +01:00
Benjamin Valentin
f295e6061a pkg/lwip: use GitHub mirror
git.savannah.nongnu.org seems to be rate-limiting us, so switch to
a mirror on GitHub.
2020-02-21 14:40:38 +01:00
Francisco Molina
afc43bf314
Makefile.dep: add auto_init_lwip MODULE 2020-02-12 16:51:29 +01:00
Giuseppe Tipaldi
c8426ce8f5 pkg/lwip: add auto-init support for transciever ENC28J60 2020-01-31 22:01:49 +01:00
Martine Lenders
87d00ab294
Merge pull request #12932 from miri64/lwip_sock/fix/sock-cleanup
lwip_sock: clean-up connection handling without a sock.
2020-01-09 15:00:55 +01:00
Gaëtan Harter
ca5d13cc2a pkg/*: adapt to new state file targets
Prepare for handling pkg state with files. So it requires having the
path defined before declaring targets. In addition, it cleans up the
old git-download target.
2020-01-08 20:55:19 +01:00
benpicco
4f4e7cde16
Merge pull request #12965 from gschorcht/pkg/lwip/ipv4_dhcp
pkg/lwip: start DHCP for a netif with lwip_dhcp
2019-12-18 09:21:29 +01:00
Gunar Schorcht
ff506ccf07 pkg/lwip: start DHCP for a netif with lwip_dhcp
The NETDEV_EVENT_LINK_UP is used to start DHCP for a network interface
2019-12-18 07:16:41 +01:00
Gunar Schorcht
ddc34b4d73 cpu/esp: fix lwip for IPv4 and esp_wifi 2019-12-17 08:28:33 +01:00
Gunar Schorcht
8021888c06 pkg/lwip: remove esp8266 from blacklist 2019-12-17 08:28:33 +01:00
Gunar Schorcht
3257c8e9f5
Merge pull request #12903 from wosym/lwip_stm32_ipv4
Add IPv4 support for LWIP-stm32
2019-12-16 11:45:24 +01:00
benpicco
50f5060e90
Merge pull request #12948 from gschorcht/pkg/lwip/lwipopts_fix_cleanup
pkg/lwip: overiddable settings in lwipopts.h
2019-12-16 10:43:34 +01:00
Wouter Symons
a3145a0ad0 pkg/lwip: correct coding style 2019-12-16 10:29:21 +01:00
Wouter Symons
5c42f680ed pkg/lwip: add IPv4 support for LWIP-stm32 2019-12-16 10:28:46 +01:00
Gunar Schorcht
aa3f1329bf pkg/lwip: remove TCPIP_THREAD_PRIO for ESP32
This definition is platform dependent and should be therefore done with CFLAGS in ESP332's Makefile.
2019-12-15 23:50:45 +01:00
Gunar Schorcht
91e764a538 pkg/lwip: add esp_eth for lwIP and IPv4 2019-12-15 19:11:58 +01:00
Gunar Schorcht
4e003b5608 pkg/lwip: add ESP32 esp_eth netdev 2019-12-14 16:59:54 +01:00
Gunar Schorcht
117d6d1f2f pkg/lwip: make TCPIP_THREAD_STACKSIZE overridable 2019-12-14 10:39:14 +01:00
Wouter Symons
49a8f64c62 pkg/lwip: fix memory issue when sending with empty sock 2019-12-13 17:28:32 +01:00
Martine S. Lenders
e96bc2a13d lwip_sock: additional indirection of conn is unnecessary
Either the sock is provided with `sock_*_send()` or not. In the first
case the indirection is not necessary, and in the second we need to
delete the created `conn` within `lwip_sock_send()` anyway, so returning
it makes no sense.
2019-12-12 11:19:51 +01:00
Martine S. Lenders
80c23cfbf3 lwip_sock: check if sock is set before dereferencing it 2019-12-12 11:01:30 +01:00
Wouter
ed9cdb221a Add LWIP stm32 glue code
Fix minor coding style issues
2019-12-06 16:26:31 +01:00
04183aa8fd pkg/lwip: fix typos 2019-11-23 22:39:38 +01:00
Gunar Schorcht
074369fbb5 pkg/lwip: changes for ESP8266 esp_wifi 2019-11-14 12:04:29 +01:00
3eae2f7b79 pkg/lwip: add arch_32bit feature dependency 2019-10-13 21:03:41 +02:00
Martine S. Lenders
0a2945164c lwip: improve and fix documentation 2019-10-09 14:45:30 +02:00
Martine S. Lenders
cb18f8c99b lwip: remove deprecated defines
`SYS_SEM_NULL` and `SYS_MBOX_SIZE` aren't used by lwIP anymore and
`LWIP_CHKSUM_ALGORITHM` has a predefined value now
2019-10-09 14:23:02 +02:00
Martine Lenders
4c88cb5f0e lwip: sys_arch: replace sched_switch() with thread_yield_higher()
`sched_switch()` is supposed to be used in core only.

This fixes #6756.
2019-09-24 16:33:11 +02:00
Martine Lenders
1dc6bded04
Merge pull request #11946 from gschorcht/cpu/esp32/lwip_netdev
cpu/esp32: lwIP netdev
2019-08-07 08:10:03 +02:00
Gunar Schorcht
f5af8ac2a4 pkg/lwip: override TPCIP_THREAD_PRIO for ESP32
To avoid priority conflicts with the WiFi hardware driver thread which has priority of 1, the default thread priority of lwIP's TCP/IP thread is decreased to 2.
2019-08-06 23:10:11 +02:00
Benjamin Valentin
66117601bb pkg: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Gunar Schorcht
d4f818b5f3 pkg/lwip: add esp_wifi network device
The changes allow to use an esp_wifi network device of ESP32 with lwIP.
2019-08-06 19:12:29 +02:00
bd816f3fb1
pkg/lwip: cleanup doxygen documentation
- Deduplicate lwip group definition
- Fix reference to sock instead of conn
2019-08-05 16:57:36 +02:00
ce9b1e3826 pkg: remove not needed git-downloaded dependencies
This is implicitly done by the "pkg-prepare"-step of the main make
instance.
2019-06-28 09:38:44 +02:00
Martine Lenders
301b6555aa lwip: use l2util_ipv6_iid_from_addr() instead of NETOPT_IPV6_IID 2019-03-27 11:48:49 +01:00
Martine Lenders
98ac1249bf
Merge pull request #10114 from miri64/pkg/enh/lwip-socket_zep
pkg/lwip: provide socket_zep support
2019-03-26 21:17:48 +01:00
Gunar Schorcht
cd00449863 pkg/lwip: include log.h if module log is used
If module log is used, log.h should be included. Otherwise, it might lead to compilation problems since LOG_ERROR macro isn't know in expansion of LWIP_PLATFORM_ASSERT macro.
2019-03-10 12:47:31 +01:00
francisco
e4d5996526 pkg/lwip: update url from git:// to https:// 2019-03-07 10:03:58 +01:00
120a46c784 pkg/lwip: use xtimer_set64() in sys_arch_mbox_fetch()
Used _xtimer_set64 previously, which expects ticks instead of us.
That broke on non-1us xtimer ticks (e.g., hifive1 with 32kHZ).
2019-02-21 13:53:21 +01:00
Martine Lenders
2cbf83b6f7 lwip: bump to version v2.1.2
From lwIP CHANGELOG

(STABLE-2.1.2):

  ++ Bugfixes:

  2018-11-21: Jens Nielsen
  * netbiosns.c: fix expecting too large packet (bug #55069)

  2018-11-19: Dirk Ziegelmeier
  * smtp.c: fix compiling with strict C compatibility because of strnlen (bug #55034)

  2018-11-12: Simon Goldschmidt
  * tcp.c: fix overflow check in tcp_recved triggering invalid assertion (bug #55015)

  2018-11-12: Simon Goldschmidt
  * tcp.c: fix a bug in sending RST segments (sent from port 0)

(STABLE-2.1.1):

  ++ Bugfixes:

  2018-11-01: Joan Lledó
  * sockets.c: fix bad assertion in lwip_poll_dec_sockets_used() (bug #54933)

  2018-11-01: Dirk Ziegelmeier
  * ip4.c: don't send 127.* to default netif (bug #54670)

  2018-10-23: David Girault
  * altcp_tls_mbedtls.c: fix use-after free (bug #54774)

  2018-10-23: Ognjen Bjelica, Dirk Ziegelmeier
  * snmp_scalar.c: Avoid NULL pointer dereference (bug #54886)

  2018-10-23: Simon Goldschmidt
  * Fix missing standard includes in multiple files

  2018-10-17: Ivan Warren
  * def.h: fix casting htonX and ntohX to u16_t (bug #54850)

  2018-10-12: Simon Goldschmidt
  * Revert "tcp_abandon: no need to buffer pcb->local_port" (fix that source port was 0 for RST
    called when aborting a connection)

  2018-10-11: Jonas Rabenstein
  * tcp.c: tcp_recved: check for overflow and warn about too big values (patch #9699)

  2018-10-06: Joan Lledó
  * sockets.c: alloc_socket(): Check for LWIP_SOCKET_POLL when setting select-
    related variables (patch #9696)

  2018-10-04: Spencer
  * tcp.c: Update prev pointer when skipping entries in tcp_slowtmr (patch #9694)

  2018-09-27: Martine Lenders
  * lowpan6.c: Fix IEEE 802.15.4 address setting (bug #54749)
2018-11-24 14:33:19 +01:00
Martine Lenders
620befe9ea lwip: move lwIP PSEUDOMODULES to pkg's Makefile.include 2018-10-15 21:40:31 +02:00
Martine Lenders
ab258b6783 lwip: provide patch to fix 6Lo hwaddr setting
Patch cherry-picked into upstream as [a47d30f].

[a47d30f]: http://git.savannah.nongnu.org/cgit/lwip.git/commit/?id=a47d30ffc7d36a79307486ca5e9a48f5bf89c7b6
2018-10-15 21:40:27 +02:00
Martine Lenders
fd69f2e63f lwip_netdev: fix setting of link-local address for 6Lo 2018-10-15 21:32:34 +02:00
Martine Lenders
6822f90004 lwip_sock: adapt for address zoning 2018-10-15 21:32:34 +02:00
Martine Lenders
aaa3861ab5 lwip: Bump version to v2.1.0
See release [blog] post for details.

[blog]: https://savannah.nongnu.org/forum/forum.php?forum_id=9248
2018-10-15 21:32:34 +02:00
Martine Lenders
dd30a51d2b lwip: ignore address warnings
lwIP uses a lot of macro "magic" (including dereferencing then
pointerizing pointers again) that confuses the static code checker of
most compilers.
2018-10-15 21:32:31 +02:00
Martine Lenders
95c114bc35 lwip: remove patches
Moves lwIP to an integration scheme more similar to newer `pkg`s.
2018-10-15 21:31:45 +02:00
Martine Lenders
0abd89e7e6 pkg/lwip: provide socket_zep support
This brings 802.15.4 support for native to lwIP. I used this to find
[this bug][1] and thought it might also be useful upstream. Downside:
There is no automated test for it yet.

[1]: https://savannah.nongnu.org/bugs/?54749
2018-10-05 10:39:38 +02:00
Martine Lenders
6c58441d06 lwip: fix lwip thread_create() wrapper 2018-07-17 14:13:01 +02:00
e7debdb865
lwip: explicitly set required netdev events 2018-07-12 12:00:39 +02:00
Martine Lenders
0151655de5 lwip_sock_udp: provide port for #9376 API fix 2018-06-20 14:51:17 +02:00
70407a1a3e pkg*: fix doxygen grouping 2018-06-11 19:12:02 +02:00
403faf2314 pkg/lwip: update to use iolists 2018-03-06 14:00:32 +01:00
7142a273dd pkg/*: put $(MAKE) in quotes in all packages 2017-12-18 14:53:54 +01:00
smlng
e381317fbf make: fix sign-compare errors
cpu, nrf5x_common: fix sign-compare in periph/flashpage
    drivers, periph_common: fix sign-compare in flashpage
    cpu, sam0_common: fix sign-compare error in periph/gpio
    cpu, cc2538: fix sign-compare in periph/timer
    cpu, sam3: fix sign-compare in periph/gpio
    cpu, stm32_common: fix sign-compare in periph/pwm
    cpu, stm32_common: fix sign-compare in periph/timer
    cpu, stm32_common: fix sign-compare in periph/flashpage
    cpu, nrf5x_common: fix sign-compare in radio/nrfmin
    cpu, samd21: fix sign-compare in periph/pwm
    cpu, ezr32wg: fix sign-compare in periph/gpio
    cpu, ezr32wg: fix sign-compare in periph/timer
    drivers, ethos: fix sign-compare
    sys, net: fix sign-compare
    cpu, atmega_common: fix sign-compare error
    cpu, msp430fxyz: fix sign-compare in periph/gpio
    boards, msb-430-common: fix sign-compare in board_init
    driver, cc2420: fix sign-compared
    sys/net: fix sign-compare in gnrc_tftp
    driver, pcd8544: fix sign-compare
    driver, pn532: fix sign-compare
    driver, sdcard_spi: fix sign-compare
    tests: fix sign_compare
    sys/net, lwmac: fix sign_compare
    pkg, lwip: fix sign-compare
    boards, waspmote: make CORECLOCK unsigned long to fix sign_compare error
    tests, sock_ip: fix sign compare
    tests, msg_avail: fix sign compare
    tests, sock_udp: fix sign compare
    boards: fix sign-compare for calliope and microbit matrix
2017-11-28 11:55:48 +01:00
Martine Lenders
c2fe625f8b lwip: Update to v2.0.3
See http://savannah.nongnu.org/forum/forum.php?forum_id=8953
2017-09-16 22:15:28 +02:00
c4ebd18be2 pkg: enhance doxygen packages documentation 2017-07-03 09:56:07 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
f5a4124866 Merge pull request #6976 from miri64/conn/cleanup/rm
net: remove conn API
2017-05-12 16:09:00 +02:00
Martine Lenders
48aae4ef2f
lwip: port to v2.0.2 2017-05-11 11:49:38 +02:00
Martine Lenders
13770361bb
net: remove conn API
conn was deprecated in 38217347. 3 Releases later and now that no module
is using it RIOT-internally anymore, I think it is time to say goodbye.
2017-04-28 15:23:54 +02:00
Martine Lenders
fd16692c1c Merge pull request #6696 from lebrush/fix/semaphore
sys: sema: semaphore bugfixes
2017-03-28 20:54:06 +02:00
Oleg Hahm
409183d95d pkg: lwip: do not panic on failing netdev->recv() 2017-03-20 11:44:20 +01:00
Martine Lenders
29842bb5e4 netdev2: rename to netdev and remove gnrc_netdev
With some minor hand-edits I used the following chain of commands:

```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
        xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
                     -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
                     -e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
        grep "netdev2" | while read dir; do
                new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
                git mv -f "$dir" "$new_dir"
        done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | while read file; do
                new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
                git mv -f "$file" "$new_file"
        done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
        xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
8d88781e05 make: pkg: make use of PKGDIRBASE 2017-03-10 14:18:44 +01:00
Victor Arino
a4bb7b8d58 pkg/lwip: use blocking sema_wait 2017-03-06 18:03:27 +01:00
Martine Lenders
b915d15de1 pkg: provide sock_tcp support for lwip 2017-02-13 20:10:42 +01:00
Peter Kietzmann
e5e79c2834 Merge pull request #5937 from miri64/pkg/feat/lwip-sock-udp
pkg: provide sock_udp support for lwip
2017-02-08 09:43:20 +01:00
Martine Lenders
a45256a2a7 pkg: provide sock_udp support for lwip 2017-02-07 15:48:47 +01:00
672da2c457 drivers/mrf24j40: initial mrf24j40 support 2017-01-26 10:05:20 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Oleg Hahm
693636690c Merge pull request #6399 from OlegHahm/timex_constants
timex: unambiguous time conversion macros
2017-01-19 17:29:26 +01:00
Francisco Acosta
70fbcbf7ed Merge pull request #6311 from miri64/native/enh/multi-tap
cpu/native: allow for multiple netdev2_tap devices
2017-01-19 14:56:55 +01:00
Oleg Hahm
4f4214235b timex: unambiguous time conversion macros 2017-01-19 13:18:08 +01:00
Martine Lenders
1f6f02e196 cpu/native: adapt start-up and auto-init for multiple netdev2_tap 2017-01-19 12:07:10 +01:00
Victor Arino
49adbf24da pkg/lwip: use new sema implementation 2017-01-19 08:59:17 +01:00
Peter Kietzmann
1730b883ef Merge pull request #5936 from miri64/pkg/feat/lwip-sock-ip
pkg: provide sock_ip support for lwip
2017-01-17 13:19:00 +01:00
Martine Lenders
bf60c2fbfa pkg: provide sock_ip support for lwip 2017-01-17 09:00:44 +01:00
21a58c9e88 pkg: lwip: add license information, cleanup 2017-01-08 21:55:46 +01:00
Joakim Nohlgård
7c48c891a0 xtimer: Update xtimer usage to match API changes 2016-11-29 20:44:31 +01:00
Martine Lenders
07f8148432 pkg: lwip: remove timeout timer
In case of no timeout this timer is not removed, leading to the
re-addition in a later call. This fix removes it properly.
2016-09-29 13:09:35 +02:00
Martine Lenders
b81ac9ca0e pkg: lwip: do not re-set values already set in netif_add
lwip_netdev2_init() is called by netif_add, which already sets these
values to an according value.
2016-09-27 17:27:25 +02:00
Martine Lenders
9b2cff9a7b lwip: port mboxes to core_mbox 2016-09-02 15:04:18 +02:00
Martine Lenders
cc6b123758 lwip: initialize link-local address correctly
lwIP does some weird byte-swapping in netif_create_ip6_linklocal_address()
with non-ethernet-addresses, so I rather initialize it like in GNRC, so it is
compatible to both GNRC and emb6.
2016-08-02 16:33:35 +02:00
Victor Arino
9528b22209 pkg/lwip: remove duplicated line in netdev2 wrapper 2016-07-14 16:46:10 +02:00
Victor Arino
25120bae0f pkt/lwip: fix guard comments in lwipopts 2016-07-14 16:45:44 +02:00
7718f114cb all: remove pointer casts for msg.content.ptr 2016-06-02 23:13:42 +02:00
15d9ce4963 pkg: lwip: adapt to changed netdev2->event_callback signature 2016-06-02 11:11:40 +02:00
af5914bafa pkg: lwip: adapt t renamed netdev2->isr_arg 2016-06-02 11:11:40 +02:00
Martine Lenders
b605852638 lwip: introduce MLD as pseudo-module and deactivate by default 2016-04-28 12:22:42 +02:00
Martine Lenders
5431df6a7e lwip: initial import of conn_udp wrapper 2016-03-30 17:35:51 +02:00
Martine Lenders
410f44f07d lwip: initial import of conn_ip wrapper 2016-03-30 17:35:50 +02:00
Martine Lenders
7f475573e6 lwip_netdev2: initial import of a lwIP netdev2 wrapper 2016-03-30 00:10:58 +02:00
Martine Lenders
b0347527fd lwip: map lwIP modules to RIOT modules 2016-03-30 00:10:42 +02:00
Martine Lenders
932bec50ed lwip: add port for RIOT 2016-03-30 00:10:38 +02:00
Martine Lenders
29515a7bb9 pkg: initial import of lwIP package 2016-03-30 00:10:05 +02:00