[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile Netlink 1.0 released
From: |
Vincent Legoll |
Subject: |
Re: Guile Netlink 1.0 released |
Date: |
Sun, 14 Mar 2021 21:40:37 +0100 |
Hello,
just a few questions about the API
On Sun, Mar 14, 2021 at 8:31 PM Julien Lepiller <julien@lepiller.eu> 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