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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user