mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-21 00:23:05 +00:00
Add setmtu command, fix bond lifetime issue
This commit is contained in:
@ -456,6 +456,26 @@ class Bond {
|
||||
*/
|
||||
static SharedPtr<Bond> getBondByPeerId(int64_t identity);
|
||||
|
||||
/**
|
||||
* Set MTU for link by given interface name and IP address (across all bonds)
|
||||
*
|
||||
* @param mtu MTU to be used on this link
|
||||
* @param ifStr interface name to match
|
||||
* @param ipStr IP address to match
|
||||
* @return Whether the MTU was set
|
||||
*/
|
||||
static bool setAllMtuByTuple(uint16_t mtu, const std::string& ifStr, const std::string& ipStr);
|
||||
|
||||
/**
|
||||
* Set MTU for link by given interface name and IP address
|
||||
*
|
||||
* @param mtu MTU to be used on this link
|
||||
* @param ifStr interface name to match
|
||||
* @param ipStr IP address to match
|
||||
* @return Whether the MTU was set
|
||||
*/
|
||||
bool setMtuByTuple(uint16_t mtu, const std::string& ifStr, const std::string& ipStr);
|
||||
|
||||
/**
|
||||
* Add a new bond to the bond controller.
|
||||
*
|
||||
|
Reference in New Issue
Block a user