Permalink
Browse files

Comcast Fixes:

DSCP and buffer overflow.
  • Loading branch information...
1 parent 7195dfa commit 2f343c3844d08edd97ad660c25368fb943670b73 @Victek committed May 10, 2014
Showing with 11 additions and 0 deletions.
  1. +4 −0 release/src-rt/linux/linux-2.6/net/ipv6/addrconf.c
  2. +7 −0 release/src/router/rc/firewall.c
@@ -1386,6 +1386,8 @@ void addrconf_leave_solict(struct inet6_dev *idev, struct in6_addr *addr)
static void addrconf_join_anycast(struct inet6_ifaddr *ifp)
{
struct in6_addr addr;
+ if (ifp->prefix_len >= 127) /* RFC 6164 */
+ return;
ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len);
if (ipv6_addr_any(&addr))
return;
@@ -1395,6 +1397,8 @@ static void addrconf_join_anycast(struct inet6_ifaddr *ifp)
static void addrconf_leave_anycast(struct inet6_ifaddr *ifp)
{
struct in6_addr addr;
+ if (ifp->prefix_len >= 127) /* RFC 6164 */
+ return;
ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len);
if (ipv6_addr_any(&addr))
return;
@@ -624,6 +624,13 @@ static void mangle_table(void)
#endif
#endif
}
+ // Reset Incoming DSCP to 0x00
+#ifdef LINUX26
+ modprobe("xt_DSCP");
+#else
+ modprobe("ipt_DSCP");
+#endif
+ ipt_write("-I PREROUTING -i %s -j DSCP --set-dscp 0\n", wanface);
}
ip46t_write("COMMIT\n");

0 comments on commit 2f343c3

Please sign in to comment.