Skip to content

Commit f782470

Browse files
committed
Add enum entries to InfoGreTap and InfoGreTap6 by aliasing
Signed-off-by: Julius Rüberg <[email protected]>
1 parent cf6e5dc commit f782470

File tree

6 files changed

+352
-100
lines changed

6 files changed

+352
-100
lines changed

src/link/link_info/gre/gre_tap.rs

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/link/link_info/gre/gre_tap6.rs

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/link/link_info/gre/gre_tun.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ use super::{
1919
IFLA_GRE_REMOTE, IFLA_GRE_TOS, IFLA_GRE_TTL, IFLA_GRE_UNSPEC,
2020
};
2121

22+
pub use InfoGreTun as InfoGreTap;
23+
2224
#[derive(Debug, PartialEq, Eq, Clone)]
2325
#[non_exhaustive]
2426
pub enum InfoGreTun {

src/link/link_info/gre/gre_tun6.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ use super::{
2020
IFLA_GRE_TTL, IFLA_GRE_UNSPEC,
2121
};
2222

23+
pub use InfoGreTun6 as InfoGreTap6;
24+
2325
#[derive(Debug, PartialEq, Eq, Clone)]
2426
#[non_exhaustive]
2527
pub enum InfoGreTun6 {

src/link/link_info/gre/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
// SPDX-License-Identifier: MIT
22

3-
pub mod gre_tap;
4-
pub mod gre_tap6;
53
pub mod gre_tun;
64
pub mod gre_tun6;
75

8-
pub use self::gre_tap::InfoGreTap;
9-
pub use self::gre_tap6::InfoGreTap6;
10-
pub use self::gre_tun::InfoGreTun;
11-
pub use self::gre_tun6::InfoGreTun6;
6+
pub use self::gre_tun::{InfoGreTap, InfoGreTun};
7+
pub use self::gre_tun6::{InfoGreTap6, InfoGreTun6};
128

139
const GRE_CSUM: u16 = 0x8000;
1410
const GRE_ROUTING: u16 = 0x4000;

0 commit comments

Comments
 (0)