Commit Graph

187 Commits

Author SHA1 Message Date
bjorn3 b92be2e7d9 Update to smoltcp 0.12 2025-03-09 20:13:16 +01:00
bjorn3 c56cf43d22 Update to smoltcp 0.11 2025-03-09 20:13:16 +01:00
Jeremy Soller cbf43ede3d Merge branch 'improvements' into 'master'
Couple of improvements

See merge request redox-os/netstack!53
2025-03-09 18:01:58 +00:00
bjorn3 f4243538b3 Remove dependency on byteorder 2025-03-09 18:29:12 +01:00
bjorn3 5d2742813b Remove no longer necessary extern crate 2025-03-09 18:24:44 +01:00
bjorn3 26cf9bc961 Fix a couple of warnings 2025-03-09 18:23:32 +01:00
bjorn3 576136d01c Rustfmt 2025-03-09 17:47:42 +01:00
bjorn3 023459391c Remove unused dependency patch 2025-03-09 17:46:33 +01:00
bjorn3 da0b284646 Remove unused smoltcp submodule 2025-03-09 17:46:15 +01:00
Ribbon 9c7c874cbc Document how to contribute and do developpment in the README 2025-01-09 11:58:27 +00:00
Jeremy Soller d6b1e5d435 Merge branch 'fix-33-debug-building' into 'master'
fix: MAX_DURATION overflows on init

Closes #33

See merge request redox-os/netstack!52
2024-12-22 02:26:30 +00:00
Josh Megnauth b53fb068f5 fix: MAX_DURATION overflows on init
Closes: #33

`Duration` is stored as microseconds internally.

The original code caused an overflow by...

```rust
Duration::from_millis(u64::MAX);
```

...which caused `u64::MAX` to be multiplied by 1000 and overflow.
2024-12-21 02:41:57 -05:00
Jeremy Soller 25f69e9906 Merge branch 'steffengy-master-patch-92205' into 'master'
Respond only to ARP requests addressed to device via either broadcast or unicast

See merge request redox-os/netstack!51
2024-12-03 21:40:51 +00:00
Steffen Butzer 49abe218ab Respond only to ARP requests addressed to device via either broadcast or unicast
Previous behavior would reply to other IPs that only match the subnet with our (IP, MAC) pair
but not respond to unicast requests addressed with an unknown (all zeroes) MAC or broadcast requests.
2024-11-26 19:02:21 +00:00
Jeremy Soller d4535e51fe Merge branch 'deps' into 'master'
Bump dependencies

See merge request redox-os/netstack!50
2024-10-17 12:58:25 +00:00
Andrey Turkin 2a3fb788df Bump dependencies 2024-10-17 08:11:02 +03:00
Jeremy Soller 640e548972 Use 0.0.0.0 as default IP to fix DHCP on real system 2024-09-04 14:55:48 -06:00
Jeremy Soller 0d96fe361a Merge branch 'fix_things' into 'master'
Fix things I broke

See merge request redox-os/netstack!49
2024-07-12 12:35:57 +00:00
bjorn3 6274b07674 Fix things I broke 2024-07-12 11:58:12 +02:00
Jeremy Soller 51da6bfc88 Merge branch 'no_legacy_path' into 'master'
Use the new scheme format

See merge request redox-os/netstack!48
2024-07-11 23:31:23 +00:00
bjorn3 bafdb3b66a Use the new scheme format 2024-07-11 21:08:12 +02:00
Jeremy Soller 9ac5184964 Fix i686 build 2024-03-25 14:20:44 -06:00
Jeremy Soller eb32ad7975 Merge branch 'libredox2' into 'master'
Switch remaining clock_gettimes to libredox.

See merge request redox-os/netstack!47
2024-03-22 18:31:40 +00:00
4lDO2 1981fa86bd Switch remaining clock_gettimes to libredox. 2024-03-20 16:39:57 +01:00
Jeremy Soller fb2d80003a Merge branch 'libredox' into 'master'
Switch to libredox and redox-event.

See merge request redox-os/netstack!46
2024-03-18 20:36:56 +00:00
4lDO2 8e2d02232f Switch to libredox and redox-event. 2024-03-18 17:10:07 +01:00
Jeremy Soller 7e86cc9f9f Merge branch 'named_network_adapters' into 'master'
Allow network adapters to be named

See merge request redox-os/netstack!45
2024-02-28 13:01:09 +00:00
Jeremy Soller 123991da13 Merge branch 'remove_mac_getcfg' into 'master'
Always use the mac handle of the network scheme instead of the mac config

See merge request redox-os/netstack!44
2024-02-28 12:59:11 +00:00
bjorn3 f9b3170f0e Allow network adapters to be named
This will be necessary in the future to support multiple network
adapters in a single system.
2024-02-28 10:44:18 +01:00
bjorn3 674f5b6d77 Always use the mac handle of the network scheme instead of the mac config 2024-02-28 09:39:19 +01:00
Jeremy Soller 9f2cfbd54d Merge branch 'fix_dnsd' into 'master'
Allow dnsd to create udp sockets

See merge request redox-os/netstack!43
2024-01-08 15:58:53 +00:00
bjorn3 e12a74854c Allow dnsd to create udp sockets
This is essential for the functioning of dnsd.
2024-01-08 14:10:49 +01:00
bjorn3 9d5c8207db Try fetching the mac address directly from the network driver 2024-01-07 15:38:15 +01:00
Jeremy Soller a992d901cf Merge branch 'remove_debug_log' into 'master'
Remove debug log

See merge request redox-os/netstack!41
2023-09-11 17:58:29 +00:00
Gartox 2dcc57863c Remove debug log 2023-09-11 19:54:07 +02:00
Jeremy Soller ebd229ae6c Update for new rust 2023-09-07 20:04:57 -06:00
Jeremy Soller a318dfb63b Merge branch 'update_smoltcp' into 'master'
Migrating to smoltcp 0.10 and add support for multiple interfaces

See merge request redox-os/netstack!39
2023-09-08 01:58:46 +00:00
Gartox 07431ef9df Fix warnings 2023-09-07 22:15:00 +02:00
Gartox 2645eeadb4 Change netcfg to adapt to the new router 2023-09-07 22:03:13 +02:00
Gartox f1f170835e Remove debug print 2023-09-04 12:27:00 +02:00
Gartox c03a446b7a Change log level 2023-09-04 12:24:29 +02:00
Gartox 78a035f0ea Fix TCP accept and accept packet from null mac address 2023-09-04 12:22:55 +02:00
Gartox c89d82100c Add can_recv to LinkDevice
This allow polling faster when there is
still packets to be received
2023-09-04 11:55:54 +02:00
Gartox 270419f82c Fix ping latency 2023-09-04 11:37:43 +02:00
Gartox 0b2b4e41c3 Add support for multiple interfaces
- Smoltcp now talk to a IP device that does the routing
- Add RouteTable
- Add trait LinkDevice representing devices (eth0, loopback...)
- Remove old device
2023-09-04 10:11:02 +02:00
4lDO2 ad28f1ae31 Merge branch 'fix_dependencies' into 'master'
Fix netutils deps

See merge request redox-os/netstack!40
2023-09-01 15:47:15 +00:00
Gartox d47cdbf1fe Fix TCP listening endpoint, fpath formatting, port release while listening:
Now TCPListenEndpoint is stored in the SchemeFile because the
TcpSocket::endpoint() only store endpoints for connected sockets,
not listening ones
2023-09-01 11:18:58 +02:00
Gartox 035bcf1d69 Migrating to smoltcp 0.10 2023-09-01 11:18:56 +02:00
Gartox 2f1443b925 Fix netutils deps 2023-09-01 11:09:54 +02:00
4lDO2 dec8ed1a50 Update dependencies. 2023-08-31 21:11:41 +02:00