--- zzzz-none-000/linux-4.1.38/net/netfilter/xt_TCPOPTSTRIP.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/net/netfilter/xt_TCPOPTSTRIP.c 2020-11-25 10:06:48.000000000 +0000 @@ -91,6 +91,11 @@ static unsigned int tcpoptstrip_tg4(struct sk_buff *skb, const struct xt_action_param *par) { +#if defined(CONFIG_BCM_KF_BLOG) && defined(CONFIG_BLOG_FEATURE) + skb->ipt_check |= IPT_TARGET_TCPOPTSTRIP; + if ( skb->ipt_check & IPT_TARGET_CHECK ) + return XT_CONTINUE; +#endif return tcpoptstrip_mangle_packet(skb, par, ip_hdrlen(skb), sizeof(struct iphdr) + sizeof(struct tcphdr)); } @@ -104,6 +109,12 @@ u_int8_t nexthdr; __be16 frag_off; +#if defined(CONFIG_BCM_KF_BLOG) && defined(CONFIG_BLOG_FEATURE) + skb->ipt_check |= IPT_TARGET_TCPOPTSTRIP; + if ( skb->ipt_check & IPT_TARGET_CHECK ) + return XT_CONTINUE; +#endif + nexthdr = ipv6h->nexthdr; tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); if (tcphoff < 0)