GNU bug report logs -
#58382
[PATCH 0/3] guile-netlink: Add support for bonds
Previous Next
Reported by: Alexey Abramov <levenson <at> mmer.org>
Date: Sat, 8 Oct 2022 16:52:02 UTC
Severity: normal
Tags: patch
Done: Julien Lepiller <julien <at> lepiller.eu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* ip/link.scm (link-set): Add new argument `master'. It is suppose to
be a name of the master interface to which our current device has to
be bound.
---
ip/link.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/ip/link.scm b/ip/link.scm
index 521cffa..70ab79f 100644
--- a/ip/link.scm
+++ b/ip/link.scm
@@ -164,7 +164,8 @@ criteria."
(trailers-on #f) (trailers-off #f)
(carrier-on #f) (carrier-off #f)
(txqueuelen #f) (name #f) (address #f)
- (broadcast #f) (mtu #f) (netns #f))
+ (broadcast #f) (mtu #f) (netns #f)
+ (master #f))
(define request-num (random 65535))
(define id (if (number? device) device (link-name->index device)))
(define netnsfd (cond
@@ -229,6 +230,11 @@ criteria."
(make-route-attr IFLA_MTU
(make-u32-route-attr mtu)))
'())
+ ,@(if master
+ (list
+ (make-route-attr IFLA_MASTER
+ (make-u32-route-attr (link-name->index master))))
+ '())
,@(if netns
(list
(make-route-attr IFLA_NET_NS_FD
--
2.36.1
This bug report was last modified 2 years and 221 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.