Bug 11621

Summary: IP rule with fwmark doesn't accept mask
Product: Busybox Reporter: Evgeny <ascheulov>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs, rsalvaterra
Priority: P5    
Version: 1.30.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Evgeny 2019-01-16 01:47:12 UTC
ip rule doesn't work with mask, for example:

ip ru add fwmark 0x1/0x1 table 1
Comment 1 rsalvaterra 2020-07-29 13:18:00 UTC
It would really be great to have this fixed, since OpenWrt's mwan3 relies on fwmark/fwmask to work correctly, and thus depends on iproute's ip, which takes about 280 kiB on MIPS, even when compiled with MIPS16 instructions. :/
Comment 2 aaronjg 2020-11-15 13:46:07 UTC
@rsalvaterra 

I was just looking into this. Busybox will also need to support "unreachable" and "blackhole" rules to fully replace iproute2 for mwan3.
Comment 3 rsalvaterra 2020-11-15 15:41:19 UTC
Yeah, I also noticed that after implementing fwmask support, but it doesn't seem as trivial to me.