diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-10 18:41:54 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-10 19:00:17 +0100 |
commit | 672682a6b9d6fb6a3722c3fea1a93b4831747b54 (patch) | |
tree | 8d7956ff4c9171faad0702afe01b9ac2656d3322 /src/network/networkd.h | |
parent | 3831838ae7b3ac145711bb84a71cb86cdd829975 (diff) |
networkd: VLAN - allow multiple vlans to be created on a link
Also limit the range of vlan ids. Other implementations and
documentation use the ranges {0,1}-{4094,4095}, but we use
the one accepted by the kernel: 0-4094.
Reported-by: Oleksii Shevchuk <alxchk@gmail.com>
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 184f631ecf..726cd83699 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -75,7 +75,7 @@ struct NetDev { char *name; NetDevKind kind; - int vlanid; + uint64_t vlanid; int ifindex; NetDevState state; @@ -97,7 +97,7 @@ struct Network { char *description; NetDev *bridge; NetDev *bond; - NetDev *vlan; + Hashmap *vlans; bool dhcp; bool dhcp_dns; bool dhcp_mtu; |