summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-13 19:56:13 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-13 20:17:07 +0100
commitfd6d906cf46ecef45ebbb5a361e1dc436f031d7a (patch)
tree5e8c9039b071c247958252265d63fa9a8d98ac6a /src/network
parentcb9fc36a1211967e8c58b0502a26c42552ac8060 (diff)
networkd: rename misnamed boolean
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-address.c8
-rw-r--r--src/network/networkd.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index b4eb91ebb6..ce0e923cbe 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -116,7 +116,7 @@ int address_establish(Address *address, Link *link) {
address->scope < RT_SCOPE_LINK;
/* Add firewall entry if this is requested */
- if (address->ip_forward_done != masq) {
+ if (address->ip_masquerade_done != masq) {
union in_addr_union masked = address->in_addr;
in_addr_mask(address->family, &masked, address->prefixlen);
@@ -124,7 +124,7 @@ int address_establish(Address *address, Link *link) {
if (r < 0)
log_link_warning_errno(link, r, "Could not enable IP masquerading: %m");
- address->ip_forward_done = masq;
+ address->ip_masquerade_done = masq;
}
return 0;
@@ -137,7 +137,7 @@ int address_release(Address *address, Link *link) {
assert(link);
/* Remove masquerading firewall entry if it was added */
- if (address->ip_forward_done) {
+ if (address->ip_masquerade_done) {
union in_addr_union masked = address->in_addr;
in_addr_mask(address->family, &masked, address->prefixlen);
@@ -145,7 +145,7 @@ int address_release(Address *address, Link *link) {
if (r < 0)
log_link_warning_errno(link, r, "Failed to disable IP masquerading: %m");
- address->ip_forward_done = false;
+ address->ip_masquerade_done = false;
}
return 0;
diff --git a/src/network/networkd.h b/src/network/networkd.h
index b36590e2d6..ea4547b940 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -160,7 +160,7 @@ struct Address {
union in_addr_union in_addr;
union in_addr_union in_addr_peer;
- bool ip_forward_done;
+ bool ip_masquerade_done;
LIST_FIELDS(Address, addresses);
};