network_bridge

Library for creating networking bridges

2 releases

0.1.1 Dec 23, 2018
0.1.0 Sep 13, 2018

MIT/Apache

11KB
179 lines

network-bridge Build Status

Rust crate (library) for creating and managing network bridges on Linux.

Example

One can create a bridge using a simple builder pattern:

use network_bridge::BridgeBuilder;

let bridge = BridgeBuilder::new("bridge_name")
		.interface("eth0")
		.interface("eth1")
		.build();

In the future, one will be able to set more properties of the bridge using this crate.

(Note that if using Rust 2015, an extern crate declaration is required.)

Disclaimer

This crate is licensed under:

  • MIT License (see LICENSE-MIT); or
  • Apache 2.0 License (see LICENSE-Apache-2.0),

at your option.

Please note that this crate is under heavy development, we will use sematic versioning, but during the 0.1.* phase, no guarantees are made about backwards compatibility.

Regardless, check back often and thanks for taking a look!


lib.rs:

This crate is a simple wrapper around the ioctls exposed by Linux.

The goal of this crate is to make it easy to create networking bridges in Rust.

Dependencies

~1.5MB
~36K SLoC