util.hpp (ff12acbb8c02d965232e14829518bc6c4d34e53d) | util.hpp (9644479597cc3ec3ca659f458521a4156fc738b0) |
---|---|
1#pragma once 2#include "types.hpp" 3 4#include <netinet/ether.h> 5#include <netinet/in.h> 6#include <unistd.h> 7 8#include <cstring> --- 134 unchanged lines hidden (view full) --- 143{ 144 return prefix <= sizeof(typename FamilyTraits<family>::addr) * 8; 145} 146bool isValidPrefix(int family, uint8_t prefixLength); 147 148/** @brief Get all the interfaces from the system. 149 * @returns list of interface names. 150 */ | 1#pragma once 2#include "types.hpp" 3 4#include <netinet/ether.h> 5#include <netinet/in.h> 6#include <unistd.h> 7 8#include <cstring> --- 134 unchanged lines hidden (view full) --- 143{ 144 return prefix <= sizeof(typename FamilyTraits<family>::addr) * 8; 145} 146bool isValidPrefix(int family, uint8_t prefixLength); 147 148/** @brief Get all the interfaces from the system. 149 * @returns list of interface names. 150 */ |
151InterfaceList getInterfaces(); | 151string_uset getSystemInterfaces(); |
152 153/** @brief Delete the given interface. 154 * @param[in] intf - interface name. 155 */ 156void deleteInterface(stdplus::const_zstring intf); 157 158/** @brief Converts the interface name into a u-boot environment 159 * variable that would hold its ethernet address. --- 64 unchanged lines hidden --- | 152 153/** @brief Delete the given interface. 154 * @param[in] intf - interface name. 155 */ 156void deleteInterface(stdplus::const_zstring intf); 157 158/** @brief Converts the interface name into a u-boot environment 159 * variable that would hold its ethernet address. --- 64 unchanged lines hidden --- |