Module nozzle_bindings::nozzle_bindings [−][src]
Structs
Handle | A handle into the nozzle library. Returned from open and needed for all other calls |
Ip | IP address info as returned from get_ips |
Enums
Action | Which script to run when run_updown is called |
Domain | IpV4/IpV6 in the struct returned from get_ips |
Functions
add_ip | Add an ip address to a nozzle device. multiple addresses can be added to one device. The prefix is a the number that comes after the ip address when configuring: eg: 192.168.0.1/24 - the prefix is “24” |
close | Deconfigure and destroy a nozzle device |
del_ip | remove an ip address from a nozzle device |
get_fd | Return a unix FD for the device |
get_handle_by_name | Find the nozzle handle of a device by giving its name |
get_ips | Return a Vec of Ip adressess attached to this device |
get_mac | Returns the MAC address of the device |
get_mtu | Get the MTU of the device |
get_name_by_handle | Return the name of the device |
open | Create a new tap device on the system |
reset_mac | Reset the device’s MAC address to the defaut |
reset_mtu | Reset the device’s MTU back to the default |
run_updown | Run an up/down script before/after configuring a device. See Action |
set_down | mark nozzle device as “down” |
set_mac | Setsthe MAC address of the device |
set_mtu | Set the MTU of the device |
set_up | Mark nozzle device as “up” |