diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-13 19:56:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-13 20:17:07 +0100 |
commit | fd6d906cf46ecef45ebbb5a361e1dc436f031d7a (patch) | |
tree | 5e8c9039b071c247958252265d63fa9a8d98ac6a /src/network/networkd-address.c | |
parent | cb9fc36a1211967e8c58b0502a26c42552ac8060 (diff) |
networkd: rename misnamed boolean
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r-- | src/network/networkd-address.c | 8 |
1 files changed, 4 insertions, 4 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; |