[Top][All Lists]

[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


just a few questions about the API

On Sun, Mar 14, 2021 at 8:31 PM Julien Lepiller <> wrote:

>   ;; same as "ip a add dev enp1s0
>   (addr-add "enp1s0" "")

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

>   (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 dev enp1s0"
>   (route-add "default" #:device "enp1s0" #:via "")

"via" could also be called "gateway" (maybe that's an oldtimer
thing ;-) )

But that's all kind of bikesheddy...

Vincent Legoll

reply via email to

[Prev in Thread] Current Thread [Next in Thread]