summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-25 17:17:26 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-26 07:52:27 +0200
commit899c2a4520526d43113f73cf673f20e2486a40fb (patch)
tree9c4b0824f4ecaf814d0b6ccdc3cc458caadc487a /interface.h
parent62e3cb52941032e13a8ad421454b9bc93382ef75 (diff)
downloadnetifd-899c2a4520526d43113f73cf673f20e2486a40fb.tar.gz
interface: support "device" attribute and deprecate "ifname"
Interfaces need to be assigned to devices. For that purpose a "device" option should be more accurate than "ifname" one. For backward compatibility old option remains supported too. Config example: config device option name 'br-lan' option type 'bridge' list ports 'lan1' list ports 'lan2' config interface 'lan' option device 'br-lan' option proto 'static' Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.h b/interface.h
index 9c136b6..1767bf1 100644
--- a/interface.h
+++ b/interface.h
@@ -107,7 +107,7 @@ struct interface {
enum interface_event hotplug_ev;
const char *name;
- const char *ifname;
+ const char *device;
char *jail;
char *jail_ifname;
int netns_fd;