Skip to content

Commit

Permalink
Add licensing heading
Browse files Browse the repository at this point in the history
Signed-off-by: Fredi Raspall <[email protected]>
  • Loading branch information
Fredi-raspall committed Feb 6, 2025
1 parent 79ad72e commit 728e03e
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions routing/src/adjacency.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! State objects to keep adjacency information
use crate::interface::IfIndex;
use net::eth::mac::Mac;
use std::collections::HashMap;
Expand Down
5 changes: 5 additions & 0 deletions routing/src/encapsulation.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! Objects to model packet encapsulations
use net::vxlan::Vni;
use std::net::IpAddr;

Expand Down
5 changes: 5 additions & 0 deletions routing/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! The error results used by this library.
use thiserror::Error;

#[allow(dead_code)]
Expand Down
5 changes: 5 additions & 0 deletions routing/src/interface.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! State objects for network interfaces and interface table.
use crate::errors::RouterError;
use net::eth::mac::Mac;
use net::vlan::Vid;
Expand Down
5 changes: 5 additions & 0 deletions routing/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! A library to implement routing functions.
mod adjacency;
mod encapsulation;
mod errors;
Expand Down
6 changes: 6 additions & 0 deletions routing/src/nexthop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! Object definitions for (shared) routing next-hops. These
//! refer to other objects like Encapsulation.
use crate::encapsulation::Encapsulation;
use std::cell::RefCell;
use std::cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd};
Expand Down
5 changes: 5 additions & 0 deletions routing/src/prefix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! Type to represent IP-version neutral network prefixes.
use ipnet::{Ipv4Net, Ipv6Net};
use iptrie::{IpPrefix, Ipv4Prefix, Ipv6Prefix};
use std::fmt::Display;
Expand Down
5 changes: 5 additions & 0 deletions routing/src/rmac.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Open Network Fabric Authors

//! Submodule to implement a table of EVPN router macs.
use net::eth::mac::Mac;
use net::vxlan::Vni;
use std::collections::{hash_map::Entry, HashMap};
Expand Down

0 comments on commit 728e03e

Please sign in to comment.