16 Dec
2025
16 Dec
'25
2:58 a.m.
On 2025-12-15 17:05, Jon Maloy wrote:
On 2025-12-15 04:40, David Gibson wrote:
[...]
+struct ip4_addr_entry { + struct in_addr addr; + int prefix_len; + int permanent;
Might as well make these uint8_t and bool, respectively. There will be some padding, but the overall structure will still be smaller.
Or, it might be worth considering replacing 'permanent' with a flags mask, in case we have future uses for it.
Agree with that. I'll make that change, and if we ver need more we can replace the boolean with a bitmask. /jon
Provided we agree on keeping guest side subscriptions, we could mark the address entries "guest_side" and "host_side", hence giving only the owning side the right to remove/alter the entry. /j