X Tutup
Skip to content

Commit 62b83cf

Browse files
committed
networkd: Renamed table_id field to table
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.
1 parent f98dd1e commit 62b83cf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/network/netdev/netdev-gperf.gperf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ Bridge.MulticastQuerier, config_parse_tristate, 0,
133133
Bridge.MulticastSnooping, config_parse_tristate, 0, offsetof(Bridge, mcast_snooping)
134134
Bridge.VLANFiltering, config_parse_tristate, 0, offsetof(Bridge, vlan_filtering)
135135
Bridge.STP, config_parse_tristate, 0, offsetof(Bridge, stp)
136-
VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table_id)
137-
VRF.Table, config_parse_route_table, 0, offsetof(Vrf, table_id)
136+
VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table)
137+
VRF.Table, config_parse_route_table, 0, offsetof(Vrf, table)

src/network/netdev/vrf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static int netdev_vrf_fill_message_create(NetDev *netdev, Link *link, sd_netlink
3535

3636
assert(v);
3737

38-
r = sd_netlink_message_append_u32(m, IFLA_VRF_TABLE, v->table_id);
38+
r = sd_netlink_message_append_u32(m, IFLA_VRF_TABLE, v->table);
3939
if (r < 0)
4040
return log_netdev_error_errno(netdev, r, "Could not append IPLA_VRF_TABLE attribute: %m");
4141

src/network/netdev/vrf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef struct Vrf Vrf;
2626
struct Vrf {
2727
NetDev meta;
2828

29-
uint32_t table_id;
29+
uint32_t table;
3030
};
3131

3232
DEFINE_NETDEV_CAST(VRF, Vrf);

0 commit comments

Comments
 (0)
X Tutup