Hello, just a few questions about the API
On Sun, Mar 14, 2021 at 8:31 PM Julien Lepiller <[email protected]> wrote: > ;; same as "ip a add 192.0.2.15/24 dev enp1s0 > (addr-add "enp1s0" "192.0.2.15/24") Why not separating the netmask from the address ? It forces to do string manipulation, and prevent the use of bitfield, or the dotted bytes representation "255.255.255.0". > (addr-add "enp1s0" "2001:db8::1a4c/64" #:ipv6? #t) what does the "ipv6?" parameter add ? This could be deduced from the address length, no ? > ;; same as "ip r add default via 192.0.2.1 dev enp1s0" > (route-add "default" #:device "enp1s0" #:via "192.0.2.1") "via" could also be called "gateway" (maybe that's an oldtimer thing ;-) ) But that's all kind of bikesheddy... -- Vincent Legoll
