@@ -166,8 +166,8 @@ stage.
a new network device named +ifname+ of specified device type. Returns 1 on
success, 0 on error.
-- +int REMOVE_NETDEV(const char *ifname)+ – Removes network device +ifname+.
- Returns 1 on success, 0 on error.
+- +int NETDEV_REMOVE_DEVICE(const char *ifname)+ – Removes network device
+ +ifname+. Returns 1 on success, 0 on error.
2.2 Network address management
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -28,8 +28,10 @@ int tst_netdev_add_device(const char *file, const int lineno,
#define NETDEV_ADD_DEVICE(ifname, devtype) \
tst_netdev_add_device(__FILE__, __LINE__, (ifname), (devtype))
-int tst_remove_netdev(const char *file, const int lineno, const char *ifname);
-#define REMOVE_NETDEV(ifname) tst_remove_netdev(__FILE__, __LINE__, (ifname))
+int tst_netdev_remove_device(const char *file, const int lineno,
+ const char *ifname);
+#define NETDEV_REMOVE_DEVICE(ifname) \
+ tst_netdev_remove_device(__FILE__, __LINE__, (ifname))
int tst_netdev_add_address(const char *file, const int lineno,
const char *ifname, unsigned int family, const void *address,
@@ -201,7 +201,8 @@ int tst_netdev_add_device(const char *file, const int lineno,
return ret;
}
-int tst_remove_netdev(const char *file, const int lineno, const char *ifname)
+int tst_netdev_remove_device(const char *file, const int lineno,
+ const char *ifname)
{
struct ifinfomsg info = { .ifi_family = AF_UNSPEC };
struct tst_rtnl_context *ctx;
Use the same naming style as in the rest of netdevice library. Signed-off-by: Martin Doucha <mdoucha@suse.cz> --- doc/network-c-api.txt | 4 ++-- include/tst_netdevice.h | 6 ++++-- lib/tst_netdevice.c | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-)