]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: Renamed `table_id` field to `table`
authorAndreas Rammhold <andreas@rammhold.de>
Wed, 30 Aug 2017 23:14:05 +0000 (01:14 +0200)
committerAndreas Rammhold <andreas@rammhold.de>
Wed, 30 Aug 2017 23:14:05 +0000 (01:14 +0200)
Other parts of the code do just use `table` as identifier for the actual
routing table id. This change should make it easier to read through the
code since the meaning or rather the name stays the same.

src/network/netdev/netdev-gperf.gperf
src/network/netdev/vrf.c
src/network/netdev/vrf.h

index 2a9bf2b1e30799a4482783518b7ec077941274ec..98182d5f3afff8f354ad4a3254db609976c60cdd 100644 (file)
@@ -133,5 +133,5 @@ Bridge.MulticastQuerier,     config_parse_tristate,                0,
 Bridge.MulticastSnooping,    config_parse_tristate,                0,                             offsetof(Bridge, mcast_snooping)
 Bridge.VLANFiltering,        config_parse_tristate,                0,                             offsetof(Bridge, vlan_filtering)
 Bridge.STP,                  config_parse_tristate,                0,                             offsetof(Bridge, stp)
-VRF.TableId,                 config_parse_uint32,                  0,                             offsetof(Vrf, table_id)
-VRF.Table,                   config_parse_route_table,             0,                             offsetof(Vrf, table_id)
+VRF.TableId,                 config_parse_uint32,                  0,                             offsetof(Vrf, table)
+VRF.Table,                   config_parse_route_table,             0,                             offsetof(Vrf, table)
index f48b413102af6fed14f8231b18959bd6d56a9726..a3b271ca237538bb5fbdadec909973743702268b 100644 (file)
@@ -35,7 +35,7 @@ static int netdev_vrf_fill_message_create(NetDev *netdev, Link *link, sd_netlink
 
         assert(v);
 
-        r = sd_netlink_message_append_u32(m, IFLA_VRF_TABLE, v->table_id);
+        r = sd_netlink_message_append_u32(m, IFLA_VRF_TABLE, v->table);
         if (r < 0)
                 return log_netdev_error_errno(netdev, r, "Could not append IPLA_VRF_TABLE attribute: %m");
 
index 00f54ed96db501ab670303ac41aef40363a74ed7..06f3c17bc1c0201265fe1f232fb8574b68266518 100644 (file)
@@ -26,7 +26,7 @@ typedef struct Vrf Vrf;
 struct Vrf {
         NetDev meta;
 
-        uint32_t table_id;
+        uint32_t table;
 };
 
 DEFINE_NETDEV_CAST(VRF, Vrf);