summaryrefslogtreecommitdiff
path: root/src/network/networkd-fdb.c
diff options
context:
space:
mode:
authorTobias Jungel <Tobias.Jungel@gmail.com>2016-06-12 20:01:14 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-12 20:01:14 +0200
commit0e83e7a5a25ac90fc43c6f6d73007f9177614f3e (patch)
tree31ea9c942ad437abd1accedb7e0f4dbd088e91b7 /src/network/networkd-fdb.c
parentceac40781befe3b47141fea2e445258de572952f (diff)
networkd: more vlan cleanup (#3506)
use config_parse_vlanid to parse vlan for BridgeFDB entries
Diffstat (limited to 'src/network/networkd-fdb.c')
-rw-r--r--src/network/networkd-fdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/network/networkd-fdb.c b/src/network/networkd-fdb.c
index 9829438ba2..be8aebee2d 100644
--- a/src/network/networkd-fdb.c
+++ b/src/network/networkd-fdb.c
@@ -26,6 +26,7 @@
#include "networkd-fdb.h"
#include "networkd.h"
#include "util.h"
+#include "vlan-util.h"
#define STATIC_FDB_ENTRIES_PER_NETWORK_MAX 1024U
@@ -240,9 +241,9 @@ int config_parse_fdb_vlan_id(
if (r < 0)
return log_oom();
- r = config_parse_unsigned(unit, filename, line, section,
- section_line, lvalue, ltype,
- rvalue, &fdb_entry->vlan_id, userdata);
+ r = config_parse_vlanid(unit, filename, line, section,
+ section_line, lvalue, ltype,
+ rvalue, &fdb_entry->vlan_id, userdata);
if (r < 0)
return r;