link: Pass correct attribute and a payload to rename a link.

Alexey AbramovSun Oct 09 15:42:45+0200 2022

d3ae6c3

link: Pass correct attribute and a payload to rename a link. * ip/link.scm (link-set): Send IFLA_IFNAME attribute with a new desired interfaces name. Signed-off-by: Julien Lepiller <julien@lepiller.eu>

ip/link.scm

211211
                '())
212212
          ,@(if name
213213
                (list
214-
                  (make-route-attr IFLA_TXQLEN
215-
                    (make-u32-route-attr txqueuelen)))
214+
                  (make-route-attr IFLA_IFNAME
215+
                    (make-string-route-attr name)))
216216
                '())
217217
          ,@(if address
218218
                (list