blob: f14bd96029e92bff2f00fb6ff1af662d84f532f7 [file] [log] [blame]
Ratan Gupta8ab17922017-05-25 13:07:05 +05301#pragma once
William A. Kennington IIIebb1ad02019-04-21 18:02:49 -07002#include <string>
Ratan Gupta8ab17922017-05-25 13:07:05 +05303
4/** @brief Adds the given interface and addr info
5 * into the ifaddr list.
6 * @param[in] name - Interface name.
7 * @param[in] addr - IP address.
8 * @param[in] mask - subnet mask.
9 * @param[in] flags - Interface flags.
10 */
11
12void mock_addIP(const char* name, const char* addr, const char* mask,
13 unsigned int flags);
William A. Kennington IIIebb1ad02019-04-21 18:02:49 -070014
15/** @brief Adds an address string to index mapping
16 *
17 * @param[in] name - Interface name
18 * @param[in] idx - Interface index
19 */
20void mock_addIF(const std::string& name, int idx);