summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-08 23:24:32 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-08 23:24:32 +0200
commitee0eb1d891eb0a41fb63368bff264f59cb2bb851 (patch)
tree72cd0535aac68878929c3121e79153f300fd4ba2 /src/network/networkd-link.c
parent3edf03546d707369ce4ab62968640a6f01bc8972 (diff)
Revert "networkd: create "kernel" setting for IPForwarding"
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index b30fd7ae89..f039a2d687 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1481,9 +1481,6 @@ static int link_set_ipv4_forward(Link *link) {
const char *p = NULL;
int r;
- if (link->network->ip_forward == ADDRESS_FAMILY_KERNEL)
- return 0;
-
p = strjoina("/proc/sys/net/ipv4/conf/", link->ifname, "/forwarding");
r = write_string_file_no_create(p, one_zero(link_ipv4_forward_enabled(link)));
if (r < 0)
@@ -1500,9 +1497,6 @@ static int link_set_ipv6_forward(Link *link) {
if (!socket_ipv6_is_supported())
return 0;
- if (link->network->ip_forward == ADDRESS_FAMILY_KERNEL)
- return 0;
-
p = strjoina("/proc/sys/net/ipv6/conf/", link->ifname, "/forwarding");
r = write_string_file_no_create(p, one_zero(link_ipv6_forward_enabled(link)));
if (r < 0)