1817 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
d2d647090d Release v0.12.0 v0.12.0 2024-11-28 01:25:12 +01:00
Dario Nieuwenhuis
4dcee75155
Merge pull request #1012 from bergzand/pr/join_solicited_node
feat: Automatically join solicited-node multicast addresses
2024-11-28 00:12:52 +00:00
Dario Nieuwenhuis
0385bad933 iface: fix mld test. 2024-11-28 01:09:46 +01:00
Dario Nieuwenhuis
e9bf78c69d iface: add test for ipv6 solicited node autojoin. 2024-11-28 01:09:46 +01:00
Dario Nieuwenhuis
e9cf1c51a5 iface: make iterator chain a bit more readable. 2024-11-28 01:09:46 +01:00
Dario Nieuwenhuis
2be54073f1 remove multicast groups that we *don't* want as solicited node. 2024-11-28 01:09:46 +01:00
Koen Zandberg
2a5f90ab0b feat: Automatically join sol-node mcast addresses
IPv6 over Ethernet should join the solicited-node multicast
addresses required by the configured IPv6 addresses, as neighbor
solicitations for these addresses have the solicited-node multicast
address as destination address.

This commit automatically leaves old solicited-node multicast addresses
and joins the new set when the IP addresses on the interface are
updated.
2024-11-28 01:09:46 +01:00
Koen Zandberg
2d5a200959 feat(ipv6): Extend with sol node mcast check 2024-11-28 01:09:46 +01:00
Dario Nieuwenhuis
33bf798438
Merge pull request #1009 from bergzand/pr/mldv2queryresp
feat: Add MLDv2 query response support
2024-11-27 23:32:48 +00:00
Dario Nieuwenhuis
c07970b50b
Merge pull request #1014 from willbicks/udp-metadata-doc
docs: Improve UdpMetadata doc comments.
2024-11-26 17:13:11 +00:00
Will Bicks
ae587fc221 docs: Improve UdpMetadata doc comments.
Fix local_address doc to indicate purpose on outgoing datagrams.

Add rustdoc comment to endpoint field.
2024-11-26 11:39:08 -05:00
Koen Zandberg
593a664e6f
fixup! fixup! feat: Add MLDv2 Listener Query response support 2024-11-13 11:44:24 +01:00
Koen Zandberg
41be841b47
fixup! feat: Add MLDv2 Listener Query response support 2024-11-13 11:44:24 +01:00
Catherine
4fa52f31d6
Merge pull request #1011 from astro/spelling
Spelling: s/ndsic/ndisc/
2024-11-10 07:55:12 +00:00
Astro
9ed4e3a151 tests: s/ndsic/ndisc/ 2024-11-09 23:08:03 +01:00
Koen Zandberg
4b79e3395e
feat: Add MLDv2 Listener Query response support
This add support for responding to MLDv2 Listener Queries. Both general
queries and multicast specific queries are supported.
2024-11-08 16:59:18 +01:00
Dario Nieuwenhuis
3e61c909fd
Merge pull request #1008 from Jc0x7D3/main
Fix the error of specific length IP packets not being fragmented
2024-11-02 11:20:52 +00:00
zhangjio21
aba9add873 fix bug 2024-11-01 19:31:07 +08:00
Dario Nieuwenhuis
e9b66eadae
Merge pull request #1005 from tomDev5/feature/listen-endpoint-getter
add a getter method for TCP listen_endpoint
2024-10-23 11:46:47 +00:00
tomDev5
632e164d49 listen endpoint getter 2024-10-22 23:15:12 +03:00
Dario Nieuwenhuis
fe0b4d1022
Merge pull request #1002 from lrh2000/mtu-ack
Send immediate ACKs after RMSS bytes of data
2024-10-20 23:57:25 +00:00
Dario Nieuwenhuis
b8fb01cede
Merge pull request #1003 from ProfFan/fan/add_send_recv_queue
Add `send_queue`/`recv_queue` to UDP/ICMP/Raw Socket
2024-10-20 23:54:40 +00:00
Catherine
032094ec9a
Merge pull request #1001 from lrh2000/sim-open
Support TCP simultaneous open
2024-10-20 19:06:54 +00:00
Fan Jiang
dad57e8d1c Add send_queue/recv_queue to UDP/ICMP/Raw Socket 2024-10-19 14:52:37 -04:00
Ruihan Li
a27c0173fa Send immediate ACKs after RMSS bytes of data 2024-10-19 21:04:35 +08:00
Ruihan Li
06eb8b72dc Support TCP simultaneous open 2024-10-19 20:44:37 +08:00
Thibaut Vandervelden
45fa98422b
Merge pull request #998 from thomaseizinger/chore/better-logging-rejected-packets
Improve logging on rejected packets
2024-10-16 06:39:33 +00:00
Thomas Eizinger
c5b706ac80
Improve logging on rejected packets 2024-10-16 15:02:18 +11:00
Dario Nieuwenhuis
7acf1ac71b
Merge pull request #994 from smoltcp-rs/core-ip
wire: use core::net types for IP addresses.
2024-10-07 14:00:29 +00:00
Dario Nieuwenhuis
b65e1b64dc Add x_ prefix to all IP methods that collide with unstable core's. 2024-10-06 23:17:19 +02:00
Dario Nieuwenhuis
803fa8734a wire: use core::net::Ipv6Addr as the ipv6 address type. 2024-10-06 22:12:49 +02:00
Dario Nieuwenhuis
e6b9a9ca2a wire: use core::net::Ipv4Addr as the ipv4 address type. 2024-10-06 22:12:49 +02:00
Dario Nieuwenhuis
23be2beab3 wire: move prefix_len impl down to v4 and v6 addrs. 2024-10-06 21:33:13 +02:00
Dario Nieuwenhuis
11b6385c77 Fix new clippy lints due to MSRV update. 2024-10-06 21:33:13 +02:00
Dario Nieuwenhuis
997ce67d3c Bump MSRV to 1.80.
Ipv4Addr::to_bits() is stable only in 1.80+.
2024-10-06 21:33:13 +02:00
Dario Nieuwenhuis
61156ed98b
Merge pull request #997 from thvdveld/fix-6lowpan-fragmentation-panic
fix: 6lowpan could panic when frag datagram_size < 40
2024-09-30 11:39:22 +00:00
Thibaut Vandervelden
6256c3eff3 fix: 6lowpan panic when frag datagram_size < 40
6LoWPAN fragmentation could panic when the datagram_size in the
fragmentation header is less than 40. When converting 6LoWPAN to IPv6 a
minimum size of 40 bytes is required to put the IPv6 header in the
buffer.
2024-09-30 10:13:58 +02:00
Dario Nieuwenhuis
c114acd754
Merge pull request #996 from thvdveld/hbh-failure-type
fix: enter unreachable when discarding HBH Option with multicast destination address
2024-09-27 08:59:24 +00:00
Thibaut Vandervelden
32f81a77f5 fix: IPv6-hbb: discard as indicated by hbh type
Discard the packet if the Hop-by-Hop header type is 0b11 and the packet
destination address is multicast.
2024-09-27 10:52:00 +02:00
Thibaut Vandervelden
d17d47b4c0 fix: enter unreachable HBH Discard multicast addr
It was previously possible to enter an unreachable path when the HBH
option type was 0b11 and the destination address was multicast. This is
now fixed in the interface.

I also changed the way an HBH option type is parsed. The option type is
only 2 bits, meaning that we can't have an unknown state.
2024-09-27 09:07:51 +02:00
Thibaut Vandervelden
a2b92ed6e8
Merge pull request #983 from d2weber/pr
Fixes #982
2024-09-23 07:42:11 +00:00
d2weber
b59e494ae7
Fixes #982 2024-09-23 08:51:46 +02:00
Catherine
54905ee17a
Merge pull request #995 from XOR-op/fix-sack
fix: internal sACK flag not set correctly for client socket
2024-09-22 22:06:52 +00:00
XOR-op
ffcb62e119 test(tcp): add coverage for remote_has_sack in SYN-SENT state 2024-09-22 17:50:38 -04:00
XOR-op
805eed8447 fix: internal sACK flag not updated for client socket 2024-09-21 23:56:26 -04:00
Dario Nieuwenhuis
d667a2a467
Merge pull request #993 from lrh2000/poll-result
Export `PollResult`
2024-09-19 10:36:45 +00:00
Ruihan Li
336e7e5935 Export PollResult 2024-09-19 13:13:19 +08:00
Thibaut Vandervelden
9cc06575ea
Merge pull request #992 from thvdveld/update-action-checkout
Update actions/checkout to v4
2024-09-18 07:09:56 +00:00
Thibaut Vandervelden
b94dd2dd88 Update actions/checkout to v4 2024-09-18 09:02:13 +02:00
Dario Nieuwenhuis
4a9ebe7da2
Merge pull request #991 from smoltcp-rs/ll-poll
iface: make poll() process all packets, add fine-grained poll functions.
2024-09-17 14:01:39 +00:00