Hi,
On 1/9/22 5:45 am, Samuel Thibault wrote:
> Ah, you are just dumping the routing table in ascii format? I don't
> think we want that, and rather get a series of route structures. procfs
> can then do the ascii rendering.
OK, I didn't think of that. But my code works and is proof of concept.
Damien Zammit, le mer. 31 août 2022 14:37:29 +, a ecrit:
> +error_t
> +S_pfinet_getroutes (io_t port,
> + vm_size_t amount,
> + data_t *routes,
> + mach_msg_type_number_t *len)
> +{
> + error_t err = 0;
> + char rs[(MAX_ROUTES + 1) * 128];
> +
---
hurd/pfinet.defs| 10
pfinet/pfinet-ops.c | 56 +
2 files changed, 66 insertions(+)
diff --git a/hurd/pfinet.defs b/hurd/pfinet.defs
index ec0b03e34..a6000142e 100644
--- a/hurd/pfinet.defs
+++ b/hurd/pfinet.defs
@@ -37,3 +37,13 @@ rout