From 3d3d425547a3f38473fcf8737b85dfebb630479d Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 15 May 2014 20:10:33 +0200 Subject: [PATCH] networkd: rename Address and Route list fields --- src/network/networkd-address.c | 4 ++-- src/network/networkd-link.c | 4 ++-- src/network/networkd-network.c | 4 ++-- src/network/networkd-route.c | 4 ++-- src/network/networkd.h | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 87688a5..e6e3f8f 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -59,7 +59,7 @@ int address_new_static(Network *network, unsigned section, Address **ret) { address->network = network; - LIST_PREPEND(static_addresses, network->static_addresses, address); + LIST_PREPEND(addresses, network->static_addresses, address); if (section) { address->section = section; @@ -92,7 +92,7 @@ void address_free(Address *address) { return; if (address->network) { - LIST_REMOVE(static_addresses, address->network->static_addresses, address); + LIST_REMOVE(addresses, address->network->static_addresses, address); if (address->section) hashmap_remove(address->network->addresses_by_section, diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 8dd742a..34b8d61 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -291,7 +291,7 @@ static int link_enter_set_routes(Link *link) { log_debug_link(link, "setting routes"); - LIST_FOREACH(static_routes, rt, link->network->static_routes) { + LIST_FOREACH(routes, rt, link->network->static_routes) { r = route_configure(rt, link, &route_handler); if (r < 0) { log_warning_link(link, @@ -487,7 +487,7 @@ static int link_enter_set_addresses(Link *link) { log_debug_link(link, "setting addresses"); - LIST_FOREACH(static_addresses, ad, link->network->static_addresses) { + LIST_FOREACH(addresses, ad, link->network->static_addresses) { r = address_configure(ad, link, &address_handler); if (r < 0) { log_warning_link(link, diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 76381c4..2a68d3e 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -98,7 +98,7 @@ static int network_load_one(Manager *manager, const char *filename) { LIST_PREPEND(networks, manager->networks, network); - LIST_FOREACH(static_routes, route, network->static_routes) { + LIST_FOREACH(routes, route, network->static_routes) { if (!route->family) { log_warning("Route section without Gateway field configured in %s. " "Ignoring", filename); @@ -106,7 +106,7 @@ static int network_load_one(Manager *manager, const char *filename) { } } - LIST_FOREACH(static_addresses, address, network->static_addresses) { + LIST_FOREACH(addresses, address, network->static_addresses) { if (!address->family) { log_warning("Address section without Address field configured in %s. " "Ignoring", filename); diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 8b020ad..d0a04ec 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -52,7 +52,7 @@ int route_new_static(Network *network, unsigned section, Route **ret) { route->network = network; - LIST_PREPEND(static_routes, network->static_routes, route); + LIST_PREPEND(routes, network->static_routes, route); if (section) { route->section = section; @@ -86,7 +86,7 @@ void route_free(Route *route) { return; if (route->network) { - LIST_REMOVE(static_routes, route->network->static_routes, route); + LIST_REMOVE(routes, route->network->static_routes, route); if (route->section) hashmap_remove(route->network->routes_by_section, diff --git a/src/network/networkd.h b/src/network/networkd.h index f250f19..e2e15b5 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -172,7 +172,7 @@ struct Address { struct in6_addr in6; } in_addr; - LIST_FIELDS(Address, static_addresses); + LIST_FIELDS(Address, addresses); }; struct Route { @@ -194,7 +194,7 @@ struct Route { struct in6_addr in6; } dst_addr; - LIST_FIELDS(Route, static_routes); + LIST_FIELDS(Route, routes); }; typedef enum LinkState { -- 2.7.4