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

160 Commits

Author SHA1 Message Date
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