Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
rc: Apply same DHCP workaround for broken DHCP servers to dualwan mod…
Browse files Browse the repository at this point in the history
…e (fix suggested by theMIRon)
  • Loading branch information
RMerl committed Oct 2, 2016
1 parent 07603fb commit 6cb5a30
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions release/src/router/rc/firewall.c
Original file line number Diff line number Diff line change
Expand Up @@ -3333,9 +3333,11 @@ TRACE_PT("writing Parental Control\n");
wan_proto = nvram_safe_get(strcat_r(prefix, "proto", tmp));
wan_ip = nvram_safe_get(strcat_r(prefix, "ipaddr", tmp));

if(!strcmp(wan_proto, "dhcp") || !strcmp(wan_proto, "bigpond")) // oleg patch
fprintf(fp, "-A INPUT -p udp --sport 67 --dport 68 -j %s\n", logaccept);

if (!strcmp(wan_proto, "dhcp") || !strcmp(wan_proto, "bigpond") ||
nvram_get_int(strcat_r(prefix, "dhcpenable_x", tmp)))
{
fprintf(fp, "-A INPUT -p udp --sport 67 --dport 68 -j %s\n", logaccept);
}
break; // set one time.
}

Expand Down

0 comments on commit 6cb5a30

Please sign in to comment.