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
211 | 211 | '()) | |
212 | 212 | ,@(if name | |
213 | 213 | (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))) | |
216 | 216 | '()) | |
217 | 217 | ,@(if address | |
218 | 218 | (list |