【RealTek sdk-3.4.14b】RTL8197FH sdk 防火墙ip6tables xt-mac异常问题修改

sdk说明

** Gateway/AP firmware v3.4.14b – Aug 26, 2019**
 Wireless LAN driver changes as:
 Refine WiFi Stability and Performance
 Add 8812F MU-MIMO
 Add 97G/8812F multiple mac-clone
 Add 97G 2T3R antenna diversity
 Fix 97G/8812F/8814B MP issues
 Add CH144 DFS support for JP
 Fix PPPOE Dial on dial-on-demand abnormal when dual stack
 Fix Ethernet padding info disclosure
 Add WPA3 WEB UI
 Add RealSON support
 Add EasyMesh supports

问题描述

Realtek sdk-3.4.14b ip6tables使用-m mac 打标mark不生效,从而导致Qos限速上传不生效

ip6tables -t mangle -A PREROUTING  -m mac --mac-source 00:11:22:33:44:55 -j CONNMARK --set-mark 0x12/0xffffffff

解决方案

      修改linux-3.10/net/netfilter/xt_mac.c

修改

static int compare_with_header_cache_dest_mac(const struct sk_buff *skb, unsigned char *macaddr)
{
	struct dst_entry *dst &#

你可能感兴趣的:(RealTek,3.4.14b,sdk,RealTek,sdk,linux)