From 0ea93ab26cd5b59df9c34005ccaaab8a8328392d Mon Sep 17 00:00:00 2001 From: Fedor Date: Mon, 11 Oct 2010 11:39:23 -0400 Subject: [PATCH] rc: cosmetic code change --- release/src/router/rc/firewall.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/release/src/router/rc/firewall.c b/release/src/router/rc/firewall.c index 7966ac545d..96c3af11c7 100644 --- a/release/src/router/rc/firewall.c +++ b/release/src/router/rc/firewall.c @@ -568,19 +568,8 @@ static void filter_input(void) * from addresses other than used for query. This could lead to a lower level * of security, so allow to disable it via nvram variable. */ - if (nvram_invmatch("dhcp_pass", "0")) { - switch (get_wan_proto()) { - case WP_PPTP: - if (nvram_get_int("pptp_dhcp") == 0) - break; - /* Fall through */ - case WP_DHCP: - case WP_L2TP: - ipt_write("-A INPUT -p udp --sport 67 --dport 68 -j %s\n", chain_in_accept); - break; - default: - break; - } + if (nvram_invmatch("dhcp_pass", "0") && using_dhcpc()) { + ipt_write("-A INPUT -p udp --sport 67 --dport 68 -j %s\n", chain_in_accept); } strlcpy(t, nvram_safe_get("rmgt_sip"), sizeof(t)); -- 2.11.4.GIT