Commit Graph

98 Commits

Author SHA1 Message Date
bjorn3 9d5c8207db Try fetching the mac address directly from the network driver 2024-01-07 15:38:15 +01: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
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 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
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 c0a108ca11 Fix warnings and bump Rust edition to 2021 2023-08-27 15:04:44 +02:00
4lDO2 54d64d6ecb Use redox-daemon 2022-07-27 16:39:18 +02:00
4lDO2 8f7d759508 Update dependencies. 2021-06-17 18:15:31 +02:00
Jeremy Soller 01f30577c1 Update smoltcp 2019-11-29 18:54:09 -07:00
Jeremy Soller 0c665a30a1 Handle scheme EOF 2019-07-18 21:33:23 -06:00
Jeremy Soller 2079856d97 Update to new fevent 2019-03-13 14:11:38 -06:00
Jeremy Soller 00ad7e74ab Remove debugging 2019-03-12 20:32:14 -06:00
Jeremy Soller 4384a16d4f Ensure that missing network events do not hang the network stack 2019-03-12 20:31:02 -06:00
Jeremy Soller 370b11fbf3 Cleanup of wait queue 2019-03-11 20:03:11 -06:00
Jeremy Soller dca4ea500d Post read fevent at EOF 2019-02-17 20:31:13 -07:00
Jeremy Soller 19aabd5e66 Fix hangs when a tcp stream is closed 2019-02-17 20:19:35 -07:00
Jeremy Soller dba4db694c Use WouldBlock with network file 2019-02-02 13:58:19 -07:00
Jeremy Soller 880c107dd3 Enable debugging 2019-01-05 07:54:45 -07:00
Jeremy Soller 3fcafeed85 Update smolnetd 2019-01-01 18:29:29 -07:00
Jeremy Soller 4d537dbd57 Fix compilation 2018-12-06 17:55:51 -07:00
Colleen 01b6f9b98c fix return statement of else block in dup function 2018-12-06 17:45:38 +00:00
Jeremy Soller 6a9fa00603 Update smolnetd 2018-10-29 19:54:53 -06:00
Jeremy Soller 4dd40fa373 Implement fgetfl, fsetfl for null 2018-09-20 14:22:30 -07:00
jD91mZM2 f9d6f5d87f Update smoltcp 2018-06-19 15:50:09 +02:00
jD91mZM2 7fe9c67a53 Use new SchemeBlock trait (#29)
* Use new SchemeBlock trait

* Use EAGAIN over EWOULDBLOCK
2018-05-30 10:55:05 -06:00
jD91mZM2 6ffe327989 Switch to an edge-triggered event system (#28) 2018-05-30 09:25:57 -06:00
Romeo Disca 3a92b2c466 add udp support (#26)
* icmp.rs add udp branches to read and write

* add write_buf implementation to icmp udp port unreachable

* add udp port support
2018-05-21 13:12:24 -06:00
Jeremy Soller 7d181f5e68 Update to new event 2018-05-20 11:31:37 -06:00
Jeremy Soller f645041293 dnsd: enter null namespace 2018-05-19 19:33:41 -06:00
Dan Robertson 76d8feae8d Use smoltcp::time types instead of u64 timestamps
smoltcp is moving towards using time::Duration and time::Instant instead
of a u64 timestamp.
2018-02-16 02:59:09 +00:00
Egor Karavaev 67a2d7900a netcfg adds/set method 2018-02-03 15:42:06 +03:00
Egor Karavaev cf78d85d64 netcfg commits on fsync 2018-02-03 00:40:30 +03:00
Egor Karavaev 1eeec8eae0 Netcfg notifications. 2018-01-30 22:09:31 +03:00
Egor Karavaev eea72fcef3 Remove closed fd. 2018-01-29 02:00:14 +03:00
Egor Karavaev ae7d9b40f8 netcfg: interface addr node. 2018-01-29 02:00:14 +03:00
Egor Karavaev 1e95808242 netcfg write nodes 2018-01-29 02:00:14 +03:00
Egor Karavaev a7f365d96c Add the netcfg schema. 2018-01-29 02:00:14 +03:00
Egor Karavaev 32c673d814 dnsd timeouts 2018-01-28 23:12:19 +03:00
Egor Karavaev e6dfb7f5b2 Implement the dns: schema. 2018-01-28 22:48:51 +03:00
Egor Karavaev 5fba322823 Add dnds bin. 2018-01-28 22:48:39 +03:00
Dan Robertson b3812568fe Use byteorder to improve readability
Use byteorder instead of using less readable bitmasks and shifts.
2018-01-23 23:26:53 +00:00
Dan Robertson 372d688de9 Updates to sync with upstream changes
polling API for EthernetInterface has changed.
2017-12-25 03:50:48 +00:00
Dan Robertson 5d3a830ce7 Sync with smoltcp updates
- Use EthernetInterfaceBuilder instead of EthernetInterface::new
 - smoltcp removed the ArpCache trait in favor of ManagedMap.

NB: This breaks the use of loopback and sending packets to yourself.
2017-12-20 22:16:01 +00:00