Crate libnet
Source pub use crate::route::add_route;
pub use crate::route::get_route;
pub use crate::route::ensure_route_present;
pub use crate::route::delete_route;
- ip
- Structures and functions for interacting with IP network configuration and
state.
- link
- Structures and functions for interacting with link-layer network
configuration and state.
- pf_key
- Functions for managing RFC2367 keys
- route
- Structures and functions for interacting with routing configuration and
state.
- sys
- System-level machinery
- DropIp
- A wrapper for IpInfo that deletes the associated address when dropped. Mostly
for testing purposes< carefully.
- DropLink
- A wrapper for LinkInfo that deletes the associated link when dropped. Mostly
for testing purposes< carefully.
- DropLinkLocal
- A wrapper for a link name that deletes the associated IPv6 link localaddress
when dropped. Mostly for testing purposes< carefully.
- IpInfo
- Information in the kernel about an IP address.
- LinkInfo
- Information about a datalink.
- TfportInfo
- Information about a single tfport link
- Error
- Error variants returned by netadm_sys.
- IpState
- The state of an IP address in the kernel.
- LinkClass
- Link class specifies the type of datalink.
- LinkFlags
- Link flags specifiy if a link is active, persistent, or both.
- LinkHandle
- A link handle can be either a string or a numeric id.
- LinkState
- Link state indicates the carrier status of the link.
- connect_simnet_peers
- Connect two simnet peers.
- create_ipaddr
- Create an IP address and give it the provided address object name.
- create_simnet_link
- Create a simnet link.
- create_tfport_link
- Create a tfport link.
- create_vnic_link
- Create a virtual NIC link.
- delete_ipaddr
- Delete an IP address with the given address object name.
- delete_link
- Delete a data link identified by
handle
. - enable_v6_link_local
- Enable generation of an IPv6 link-local address for an interface
- get_ipaddr_info
- Get information about a specific IP interface
Get information about a specific IP interface
- get_ipaddrs
- Get a list of all IP addresses on the system.
- get_link
- Get a datalink with the given
id
. - get_links
- Get a vector of all Layer-2 links present on the system.
- get_neighbor
- Get neighbor information for a particular IP address.
- get_routes
- Get all routes present on the system.
- get_tfport_info
- Given the LinkHandle for a tfport, return the details of the link.
- ipaddr_exists
- Check if an IP address with the given address object name exists.
- linkname_to_id
- Given a datalink name, return it’s numeric id.