blob: 4d934b3c0bc29395d58f4aaf249cfcaf40d84195 [file] [log] [blame]
#pragma once
#include <net/ethernet.h>
#include <string>
/** @brief Adds the given interface and addr info
* into the ifaddr list.
* @param[in] name - Interface name.
* @param[in] addr - IP address.
* @param[in] mask - subnet mask.
* @param[in] flags - Interface flags.
*/
void mock_addIP(const char* name, const char* addr, const char* mask,
unsigned int flags);
/** @brief Adds an address string to index mapping and MAC mapping
*
* @param[in] name - Interface name
* @param[in] idx - Interface index
* @param[in] mac - Interface MAC address
*/
void mock_addIF(const std::string& name, int idx,
const ether_addr& mac = ether_addr{});