summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-01-22 14:49:24 +0100
committerTom Gundersen <teg@jklm.no>2014-01-25 11:25:17 +0100
commit54abf461d6b10dc270c4bb2aeac65f240ff1c5cd (patch)
tree5589a8c4ac8b3245c7e2e816bbac6c8bf42bca9e /src/network/networkd.h
parent168a3f602fa2250dc0d0aab140ab91945d5f6efa (diff)
networkd: add basic VLAN support
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index 2323e3db85..22dcbd0987 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -53,6 +53,7 @@ struct netdev_enslave_callback {
typedef enum NetdevKind {
NETDEV_KIND_BRIDGE,
NETDEV_KIND_BOND,
+ NETDEV_KIND_VLAN,
_NETDEV_KIND_MAX,
_NETDEV_KIND_INVALID = -1
} NetdevKind;
@@ -74,6 +75,8 @@ struct Netdev {
char *name;
NetdevKind kind;
+ int vlanid;
+
Link *link;
NetdevState state;
@@ -94,6 +97,7 @@ struct Network {
char *description;
Netdev *bridge;
Netdev *bond;
+ Netdev *vlan;
bool dhcp;
bool dhcp_dns;
bool dhcp_mtu;
@@ -258,6 +262,10 @@ int config_parse_bond(const char *unit, const char *filename, unsigned line,
const char *section, unsigned section_line, const char *lvalue,
int ltype, const char *rvalue, void *data, void *userdata);
+int config_parse_vlan(const char *unit, const char *filename, unsigned line,
+ const char *section, unsigned section_line, const char *lvalue,
+ int ltype, const char *rvalue, void *data, void *userdata);
+
/* gperf */
const struct ConfigPerfItem* network_gperf_lookup(const char *key, unsigned length);