Skip to content

Commit

Permalink
mediatek: hnat: set ipv6 local out skb with hnat_alg mark
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwckf authored Oct 6, 2023
1 parent ae0c192 commit bacf916
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2159,9 +2159,15 @@ mtk_hnat_ipv6_nf_local_out(void *priv, struct sk_buff *skb,
if (unlikely(!skb_hnat_is_hashed(skb)))
return NF_ACCEPT;

ip6h = ipv6_hdr(skb);

if (ip6h->nexthdr != NEXTHDR_IPIP) {
hnat_set_head_frags(state, skb, 1, hnat_set_alg);
return NF_ACCEPT;
}

entry = &hnat_priv->foe_table_cpu[skb_hnat_ppe(skb)][skb_hnat_entry(skb)];
if (skb_hnat_reason(skb) == HIT_UNBIND_RATE_REACH) {
ip6h = ipv6_hdr(skb);
if (ip6h->nexthdr == NEXTHDR_IPIP) {
/* Map-E LAN->WAN: need to record orig info before fn. */
if (mape_toggle) {
Expand Down

0 comments on commit bacf916

Please sign in to comment.