Commit Graph

946 Commits

Author SHA1 Message Date
Ryan Summers 421870ee75 Restructuring to allow-unused 2021-06-09 11:30:02 +02:00
Ryan Summers 2fb5880628 Fixing feature flag 2021-06-09 11:13:56 +02:00
Dario Nieuwenhuis 2c6567bc4b Merge pull request #485 from qiujiangkun/add_std_error_error
impl std::error::Error for smoltcp::Error
2021-06-08 10:49:19 +02:00
qiujiangkun 0be1a76bc3 add std::error::Error to smoltcp::Error 2021-06-08 14:34:38 +08:00
Ryan Summers 84866f8f69 Updating packet buffer clear to be UDP-only 2021-05-31 18:07:19 +02:00
Ryan Summers fa77ddd836 Updating UDP close to clear RX/TX buffers 2021-05-31 18:04:02 +02:00
Ryan Summers e27e3254f4 Fixing clippy 2021-05-31 17:58:20 +02:00
Ryan Summers 0bb9fc90f0 Simplifying loop logic 2021-05-31 17:42:01 +02:00
Ryan Summers 44add57e8e Removing unneeded changes 2021-05-31 17:39:30 +02:00
Ryan Summers f790f59088 Reverting phy changes 2021-05-31 17:36:26 +02:00
Ryan Summers 8474a1b1e4 cleaning up implementation 2021-05-31 17:33:52 +02:00
Ryan Summers 95829934db Fail-free ingress 2021-05-31 17:30:45 +02:00
Ryan Summers 8d4e255090 Adding prototype fix for fail-free ingress 2021-05-31 17:25:04 +02:00
Ryan Summers 108543a2f6 Adding UDP socket close funcionality 2021-05-31 14:25:52 +02:00
Dario Nieuwenhuis 03429a8b4e Merge pull request #481 from smoltcp-rs/v0.7.3-changelog
Add changelog for v0.7.3
2021-05-29 04:47:20 +02:00
Dario Nieuwenhuis ca22d95e2b Add changelog for v0.7.3 2021-05-29 04:41:38 +02:00
Dario Nieuwenhuis 2edd35be13 Merge pull request #480 from smoltcp-rs/v0.7.2-changelog
Add v0.7.2 changelog
2021-05-29 04:36:20 +02:00
Dario Nieuwenhuis 0b001ec0dd Add v0.7.2 changelog 2021-05-29 04:30:38 +02:00
Dario Nieuwenhuis 1d38a0b89a Merge pull request #479 from smoltcp-rs/dhcp-wire-simplify
wire/dhcp: Simplify how options are emitted.
2021-05-29 01:48:50 +02:00
Dario Nieuwenhuis b9477f25bc wire/dhcp: Simplify how options are emitted. 2021-05-29 01:44:27 +02:00
Dario Nieuwenhuis 832c9bace1 Merge pull request #478 from theli-ua/fix_dhcp
Account for lease time, router and subnet options in DhcpRepr::buffer_len
2021-05-29 01:36:24 +02:00
Dario Nieuwenhuis ea8d2ae7f4 Fix u32::MAX 2021-05-29 01:32:17 +02:00
Anton Romanov 7b6b70d058 Account for lease time, router and subnet options in DhcpRepr::buffer_len 2021-05-29 01:32:17 +02:00
Dario Nieuwenhuis 78407dca17 Merge pull request #477 from smoltcp-rs/lastack-fix
tcp: LastAck should only change to Closed on ack of fin.
2021-05-28 21:14:37 +02:00
Dario Nieuwenhuis a5b9461275 tcp: LastAck should only change to Closed on ack of fin.
Fixes #470
2021-05-28 21:09:36 +02:00
Dario Nieuwenhuis 74b124f4c9 Merge pull request #476 from smoltcp-rs/fix-overflow
tcp rtte: fix "attempt to multiply with overflow". Fixes #468
2021-05-28 21:07:22 +02:00
Dario Nieuwenhuis 383d2426cb tcp rtte: fix "attempt to multiply with overflow". Fixes #468 2021-05-28 21:02:31 +02:00
Dario Nieuwenhuis 360dbc79d4 Merge pull request #459 from smoltcp-rs/dhcp-socket
DHCP refactor
2021-05-28 18:54:26 +02:00
Dario Nieuwenhuis 8f1e547b67 Test with defmt-trace 2021-05-28 18:49:07 +02:00
Dario Nieuwenhuis a81f2fef56 dhcp: convert port check to hard assert. 2021-05-28 18:43:52 +02:00
Dario Nieuwenhuis 07c3a402a3 Remove unused macro_use 2021-05-28 18:26:08 +02:00
Dario Nieuwenhuis 743f9de039 dhcp: address review comments. 2021-05-28 18:23:50 +02:00
Dario Nieuwenhuis 284f5bc834 wire/udp: clearer HEADER_LEN usage 2021-05-28 17:47:02 +02:00
Dario Nieuwenhuis a916888ab8 dhcp: add max_lease_duration option 2021-04-13 20:23:28 +02:00
Dario Nieuwenhuis 53b62cfbad dhcp: remove 0.0.0.0s from the DNS serevr list.
tp-link routers pad the DNS server list with 0.0.0.0 to a fixed size :(
2021-04-13 18:43:23 +02:00
Dario Nieuwenhuis b1f2bcb678 dhcp: retry REQUEST slower and with exponential backoff. Fixes #464 2021-04-07 21:52:26 +02:00
Dario Nieuwenhuis cb075bfc16 dhcp: handle NAK packets 2021-04-07 19:00:36 +02:00
Dario Nieuwenhuis 0d53163c55 dhcp: convert to socket 2021-04-07 19:00:36 +02:00
Dario Nieuwenhuis ef58fc67a4 route: add remove_default_ipvX_route 2021-04-07 14:49:46 +02:00
Dario Nieuwenhuis ab47db24e0 udp: do not include payload in UdpRepr
This makes UdpRepr work like IpRepr, where it only emits the header, and the user
must emit the payload.

This makes it easier to emit UDP packets with payloads that come from protocol-specific
reprs, like DHCP and in the future DNS.
2021-04-07 14:49:46 +02:00
Dario Nieuwenhuis f2231c1cb5 Merge pull request #463 from smoltcp-rs/faultinjector-fix
phy: fix FaultInjector returning a too big buffer
2021-04-07 02:48:27 +02:00
Dario Nieuwenhuis 68d60a202b phy: fix FaultInjector returning a too big buffer when simulating a drop on tx 2021-04-07 02:40:32 +02:00
Dario Nieuwenhuis 613fea062e Merge pull request #456 from smoltcp-rs/dhcp-req-fix
dhcp: always send parameter_request_list.
2021-04-07 02:39:54 +02:00
Dario Nieuwenhuis 1d19ff8d91 dhcp: Clear expiration time on reset. 2021-04-07 02:32:46 +02:00
Dario Nieuwenhuis 562f12ffed dhcp: always send parameter_request_list. Fixes #445. 2021-04-07 02:32:46 +02:00
Dario Nieuwenhuis 3de0a7e6ac Merge pull request #462 from smoltcp-rs/subnet-broadcast-fix
iface: check for ipv4 subnet broadcast addrs everywhere
2021-04-07 02:32:08 +02:00
Dario Nieuwenhuis c043897327 iface: check for ipv4 subnet broadcast addrs everywhere 2021-04-07 02:23:19 +02:00
Dario Nieuwenhuis 0dd91bd309 Merge pull request #455 from smoltcp-rs/defmt
Add defmt logging support
2021-04-01 02:32:29 +02:00
Dario Nieuwenhuis 77c46220a6 Document MSRV with the defmt exception, don't test defmt with 1.40 2021-04-01 02:15:35 +02:00
Dario Nieuwenhuis e57ec1e5c8 Add test with defmt feature. 2021-04-01 01:42:17 +02:00