mirror of
https://github.com/padavanonly/immortalwrt.git
synced 2025-12-16 17:01:06 +00:00
Update hnat_nf_hook.c
This commit is contained in:
parent
5c15d0669b
commit
59953ad02b
@ -494,7 +494,14 @@ unsigned int do_hnat_ge_to_ext(struct sk_buff *skb, const char *func)
|
||||
else
|
||||
index = entry->ipv6_5t_route.act_dp;
|
||||
|
||||
skb->dev = get_dev_from_index(index);
|
||||
dev = get_dev_from_index(index);
|
||||
if (!dev) {
|
||||
trace_printk("%s: called from %s. Get wifi interface fail\n",
|
||||
__func__, func);
|
||||
return 0;
|
||||
}
|
||||
|
||||
skb->dev = dev;
|
||||
|
||||
if (IS_HQOS_MODE && eth_hdr(skb)->h_proto == HQOS_MAGIC_TAG) {
|
||||
skb = skb_unshare(skb, GFP_ATOMIC);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user