Bug 9767 - missing native u32 classifier for routing policy
Summary: missing native u32 classifier for routing policy
Status: REJECTED INVALID
Alias: None
Product: Networking
Classification: Unclassified
Component: IPV4 (show other bugs)
Hardware: All Linux
: P1 low
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 00:30 UTC by Marco Berizzi
Modified: 2008-09-16 11:52 UTC (History)
0 users

See Also:
Kernel Version: all since 2.2
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Marco Berizzi 2008-01-17 00:30:49 UTC
This is not a bug report, but a feature request.
routing policy database management is supported since linux 2.2, but it lacks u32 selector (matching by IP protocols, transport ports).
fwmark is a workaround for this missing feature, but source ip address selection will not work anyway: the mark value can't be used for source address selection because at the time source address selection is performed, there is no packet yet and thus no mark value.
Comment 1 Anonymous Emailer 2008-01-17 00:46:02 UTC
Reply-To: akpm@linux-foundation.org

On Thu, 17 Jan 2008 00:30:49 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=9767
> 
>            Summary: missing native u32 classifier for routing policy
>            Product: Networking
>            Version: 2.5
>      KernelVersion: all since 2.2
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: low
>           Priority: P1
>          Component: IPV4
>         AssignedTo: shemminger@linux-foundation.org
>         ReportedBy: pupilla@hotmail.com
> 
> 
> This is not a bug report, but a feature request.
> routing policy database management is supported since linux 2.2, but it lacks
> u32 selector (matching by IP protocols, transport ports).
> fwmark is a workaround for this missing feature, but source ip address
> selection will not work anyway: the mark value can't be used for source
> address
> selection because at the time source address selection is performed, there is
> no packet yet and thus no mark value.
> 
Comment 2 Patrick McHardy 2008-02-02 03:41:10 UTC
This can not be done since routes are cached and the cache needs to use the same keys as the routing rules for the lookup.
Comment 3 Marco Berizzi 2008-02-02 05:01:11 UTC
I was talking with Jamal about this and he suggested to move this stuff to tc action level. Something like:

tc filter add dev lo parent ffff: protocol ip prio 10 u32 \
match ip dport 80 0xffff flowid 1:10 \
action reroute|policyroute to table http-routing-table
Comment 4 Stephen Hemminger 2008-09-16 11:52:25 UTC
This is not a bug. Pls discuss enhancements on mailing list instead <netdev@vger.kernel.org>

Note You need to log in before you can comment on or make changes to this bug.