Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #218 from mcr/improve-macvlan-documentation-2
Browse files Browse the repository at this point in the history
  • Loading branch information
little-dude authored Dec 29, 2021
2 parents 77ac20b + 592eec6 commit a32d89f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtnetlink/src/link/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ impl LinkAddRequest {
}

/// Create macvlan on a link.
/// This is equivalent to `ip link add NAME name link LINK type macvlan mode MACVLAN_MODE`,
/// but instead of specifying a link name (`LINK`), we specify a link index.
/// This is equivalent to `ip link add name NAME link LINK type macvlan mode MACVLAN_MODE`,
/// but instead of specifying a link name (`LINK`), we specify a link index.
/// The MACVLAN_MODE is an integer consisting of flags from MACVLAN_MODE (netlink-packet-route/src/rtnl/constants.rs)
/// being: _PRIVATE, _VEPA, _BRIDGE, _PASSTHRU, _SOURCE, which can be *combined*.
pub fn macvlan(self, name: String, index: u32, mode: u32) -> Self {
Expand Down

0 comments on commit a32d89f

Please sign in to comment.