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

240 Commits

Author SHA1 Message Date
Benjamin Valentin
32d17f5313 pkg/lwip: add support for slipdev 2023-10-26 16:41:18 +02:00
Erik Ekman
c49cd446a8 pkg/lwip: Allow setting netif active state 2023-10-11 21:46:55 +02:00
Erik Ekman
8e996c0a75 pkg/lwip: Allow reading netif active state 2023-10-11 21:46:55 +02:00
Martine Lenders
2cbdd66d6f
lwip: bump to v2.2.0 2023-09-26 10:21:12 +02:00
Jose Alamos
91a299cb7d
drivers/mrf24j40: add support for IEEE 802.15.4 Radio HAL 2023-01-19 15:31:06 +01:00
Erik Ekman
d2b134a0be pkg/lwip: Force loglevel when using log module
lwIP has already used its own log level when deciding what to print.
If we reach the LWIP_PLATFORM_DIAG message no further filtering should
happen, so set the log level to match the macro used.

This fixes the missing IP addresses from ifconfig. Before:

> ifconfig
Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up
        Link type: wired
        inet addr:  mask:  gw:
        inet6 addr:  scope: link state: valid preferred
        inet6 addr:  scope: global state: valid preferred
Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up
        Link type: wireless
        inet addr:  mask:  gw:
        inet6 addr:  scope: link state: valid preferred
        inet6 addr:  scope: global state: valid preferred
>

With this change:

> ifconfig
Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up
        Link type: wired
        inet addr: 10.4.4.81 mask: 255.255.254.0 gw: 10.4.4.1
        inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9f scope: link state: valid preferred
        inet6 addr: 2001:db8:0:0:260a:c4ff:fee6:e9f scope: global state: valid preferred
Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up
        Link type: wireless
        inet addr: 10.4.4.86 mask: 255.255.254.0 gw: 10.4.4.1
        inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9c scope: link state: valid preferred
        inet6 addr: 2001:db8:0:0:260a:c4ff:fee6:e9c scope: global state: valid preferred
>
2022-11-23 23:04:14 +01:00
benpicco
68653d6ee7
Merge pull request #18693 from HendrikVE/pr/fix_missing_null_initialization_async_cb
pkg/lwip: add missing initialization for async_cb
2022-10-06 10:12:57 +02:00
Hendrik van Essen
0df72af04c pkg/lwip: add missing initialization for async_cb
Without initializing async_cb to NULL it might be a value != NULL,
which leads to sock->async_cb.gen() being called mistakenly in _netconn_cb.

gnrc_sock already does it with "reg->async_cb.generic = NULL;"
2022-10-05 14:22:14 +02:00
Hendrik van Essen
726ef375e7 pkg/lwip: remove redundant pointer 2022-10-05 14:13:03 +02:00
Hendrik van Essen
804da9ba25 pkg/lwip: give lines some more space 2022-10-05 14:13:02 +02:00
Hendrik van Essen
669aef0c60 pkg/lwip: use intermediate variable instead of max_len 2022-10-05 14:11:17 +02:00
Hendrik van Essen
2fd95824a0 pkg/lwip: rename offset to recvd 2022-10-05 14:11:17 +02:00
Hendrik van Essen
ee4692e90b pkg/lwip: replace boolean with simple expression 2022-10-05 14:11:16 +02:00
MrKevinWeiss
6cad5d2477
cpu/mips: Remove all mips 2022-09-27 13:42:37 +02:00
Marian Buschsieweke
3b2df89b4c
treewide: fix conditionals on deprecated module
As a leftovers from https://github.com/RIOT-OS/RIOT/pull/18355 are still
present that check for `MODULE_SHELL_COMMANDS` rather than
`MODULE_SHELL_CMDS`. This updates the conditionals as needed.
2022-09-21 09:42:37 +02:00
benpicco
b5bf5da38d
Merge pull request #18444 from kfessel/p-fix-doc-grp
doc: fix unbalaced grouping
2022-09-14 22:19:28 +02:00
Karl Fessel
05f114d0af doc: fix unbalaced grouping
- most were trivial
    - missing group close or open
    - extra space
    - no doxygen comment
- name commad might open an implicit group
    this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +02:00
Erik Ekman
04a2070faa pkg/lwip: Set netdev callback before driver init
Otherwise if the cable is connected at boot the immediate NETDEV_EVENT_ISR
event signaling connection will not trigger the isr, and the netdev will not
clear its pending event.

This explains why the connect/rx event clash seen in "esp32/eth: Don't
overwrite queued event with RX packet" (95196fb7e4) only happened
with lwIP.

Now on my ESP32 board with Ethernet the issue was the opposite (since IDF
upgrade), the stuck connected event blocked receive from working. After
this change 95196fb7e4 can be reverted since even early events are
consumed properly.
2022-09-03 14:07:02 +02:00
Jose Alamos
9031773b73
lwip/init_devs: add initial support for kw2xrf 2022-08-25 15:44:34 +02:00
Jose Alamos
4daaaccb0f
pkg/lwip_netdev: add support for IPC based Bottom Half Processor 2022-08-25 15:44:34 +02:00
Jose Alamos
a2bf203485
pkg/lwip: fix handling of netdev send return code 2022-08-23 11:57:11 +02:00
Jose Alamos
d0403fc32d
pkg/lwip: acquire and release device lock 2022-08-19 19:44:32 +02:00
Jose Alamos
705fd8d691
pkg/lwip: add device acquire/release 2022-08-19 19:42:45 +02:00
Marian Buschsieweke
3b3d644ce3
Merge pull request #18288 from maribu/pkg/lwip
pkg/lwip: ease debugging & fix sending from socket bound to anyaddr
2022-07-25 10:27:33 +02:00
Marian Buschsieweke
3be9446769
pkg/lwip: fix code style
This mostly converts switch statements from double indent style to
Linux kernel style, as required per the coding convention.

From the C compiler perspective, this is a whitespace only change.
2022-07-22 12:42:22 +02:00
Marian Buschsieweke
d646a71e71
pkg/lwip: fix sending from socket bound to anyaddr 2022-07-22 09:48:53 +02:00
Marian Buschsieweke
f590c18f7f
pkg/lwip: ease debugging 2022-07-22 09:48:53 +02:00
benpicco
e1e2b7c5b6
Merge pull request #17601 from gschorcht/cpu/esp32/upgrade_esp-idf_v4.4
cpu/esp32: Upgrade to ESP-IDF v4.4
2022-06-02 10:18:07 +02:00
Gunar Schorcht
c55b7ecc69 pkg/lwip: fix include of esp_eth_netdev header 2022-06-01 13:31:00 +02:00
Martine Lenders
c4e202ae67
Merge pull request #17709 from benpicco/cpu/native-tap_wired
netdev_tap: make 'wired' property configurable
2022-06-01 02:24:43 +02:00
Benjamin Valentin
fad65011b7 netdev_tap: make NETDEV_TAP_MAX an upper bound 2022-05-23 15:27:35 +02:00
Benjamin Valentin
0b91660d98 pkg/lwip: don't set NETOPT_RX_END_IRQ 2022-05-11 23:44:24 +02:00
Erik Ekman
7b84b3a3f5 pkg/lwip: Add empty netif_setopt
To fully implement net/netif.h
2022-05-09 17:48:30 +02:00
Erik Ekman
4679d3d06e pkg/lwip: Fall back to netdev when getting options
Adds support for mac address, link state and more
2022-05-09 17:48:30 +02:00
Erik Ekman
8796293c5a pkg/lwip: Implement getting option NETOPT_IPV6_ADDR 2022-05-09 17:48:30 +02:00
Martine Lenders
aa5a18f833
Merge pull request #16974 from yarrick/lwip_netif
pkg/lwip: Add netif_t struct, register all netifs
2022-04-26 23:49:49 +02:00
Benjamin Valentin
d800cca1c3 drivers/atwinc15x0: register with netdev 2022-03-30 16:07:29 +02:00
Benjamin Valentin
dffb785886 lwip: enable LWIP_SO_RCVTIMEO if sock layer is used 2022-03-09 22:07:22 +01:00
Hendrik van Essen
850863c22f pkg/lwip: move includes to the top of the file 2022-03-07 17:19:04 +01:00
Francisco Molina
64ff3d1d4f pkg/lwip: use ztimer_msec instead of xtimer 2022-03-03 15:54:22 +01:00
a17ff53ecf
Merge pull request #17485 from benpicco/sock_udp_sendv
sys/net/sock: add sock_udp_sendv() API
2022-03-01 14:05:21 +01:00
Benjamin Valentin
b822e8a5a9 pkg/lwip: implement sock_udp_sendv_aux() 2022-02-22 10:05:41 +01:00
Jens Wetterich
4dfeafcabd cpu/native/netdev_tap: Add to netdev_register 2022-02-11 07:54:11 +01:00
José Alamos
ce8cda2fd8
Merge pull request #16932 from benpicco/socket_zep-hal
socket_zep: port to radio HAL
2021-12-07 18:24:33 +01:00
Benjamin Valentin
fa2d9bde56 socket_zep: port to radio HAL 2021-11-18 11:51:14 +01:00
Erik Ekman
7593bb0e40 pkg/lwip: Update netif_get_name implementation
Correctly refer to the struct netif inside the netif_t

Fix call to netif_get_name from lwIP ifconfig shell command
2021-11-16 22:04:44 +01:00
Erik Ekman
efeaac51ca pkg/lwip: Add lwip_netif_t struct
Extending netif_t struct from sys/net/netif to support the
stack-independent API.
2021-11-16 22:04:44 +01:00
Martine S. Lenders
3c6e87c18f
lwip: bump to v2.1.3 2021-11-10 22:36:19 +01:00
Erik Ekman
02c840af2a pkg/lwip: Fix 6lowpan build when IPv4 is active 2021-11-09 23:16:33 +01:00
Erik Ekman
3aee2dde9d pkg/lwip: Only enable ARP if Ethernet is supported 2021-11-09 23:09:35 +01:00