Bug 11621 - IP rule with fwmark doesn't accept mask
Summary: IP rule with fwmark doesn't accept mask
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.30.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-16 01:47 UTC by Evgeny
Modified: 2020-11-15 15:41 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.