Skip to content

Commit 3bd79ff

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

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,16 +1,12 @@
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

86
use std::fmt::Display;
97

10-
pub use self::gre_tap::InfoGreTap;
11-
pub use self::gre_tap6::InfoGreTap6;
12-
pub use self::gre_tun::InfoGreTun;
13-
pub use self::gre_tun6::InfoGreTun6;
8+
pub use self::gre_tun::{InfoGreTap, InfoGreTun};
9+
pub use self::gre_tun6::{InfoGreTap6, InfoGreTun6};
1410

1511
const GRE_CSUM: u16 = 0x8000;
1612
const GRE_ROUTING: u16 = 0x4000;

0 commit comments

Comments
 (0)