We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22f4950 commit d76171cCopy full SHA for d76171c
src/link/add.rs
@@ -795,6 +795,12 @@ impl LinkAddRequest {
795
self
796
}
797
798
+ /// Define the hardware address of the link when creating it (equivalent to
799
+ /// `ip link add NAME address ADDRESS`)
800
+ pub fn address(self, address: Vec<u8>) -> Self {
801
+ self.append_nla(LinkAttribute::Address(address))
802
+ }
803
+
804
fn append_nla(mut self, nla: LinkAttribute) -> Self {
805
self.message.attributes.push(nla);
806
0 commit comments