resolve: rename Link.name -> Link.ifname

This also changes the type from char[IF_NAMESIZE] to char*.
By changing the type, now resolved-link.h can drop the dependency to
the header net/if.h.
This commit is contained in:
Yu Watanabe
2019-04-13 17:51:59 +09:00
parent dc653bf487
commit 6ff79f7640
7 changed files with 28 additions and 27 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <net/if.h>
#include "in-addr-util.h"
#include "ratelimit.h"
#include "resolve-util.h"
@@ -67,7 +65,7 @@ struct Link {
bool is_managed;
char name[IF_NAMESIZE];
char *ifname;
uint32_t mtu;
uint8_t operstate;