[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] pfinet: New RPC S_pfinet_getroutes to get routing table
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/3] pfinet: New RPC S_pfinet_getroutes to get routing table |
Date: |
Wed, 31 Aug 2022 21:45:21 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Damien Zammit, le mer. 31 août 2022 14:37:29 +0000, 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];
> + int n;
> + char *buf;
> +
> + n = get_routing_table (buf, 0, n);
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.
Samuel
[PATCH 2/3] pfinet: New RPC S_pfinet_getroutes to get routing table, Damien Zammit, 2022/08/31
- Re: [PATCH 2/3] pfinet: New RPC S_pfinet_getroutes to get routing table,
Samuel Thibault <=
[PATCH 3/3] procfs: Populate /proc/route with network routes, Damien Zammit, 2022/08/31