lkml.org 
[lkml]   [2013]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectrouting rule with additional attributes (RTA_DST)
From
Hi All,

while cretaing rules via NETLINK, I observed not (well) documented in
rtnetlink(7) behaviour.

If I created rule using RTM_NEWRULE message, I'm able to provide
RTA_DST attribute with destination IP (setting up rtmsg.dst_len to the
appropriate value).
Such message to NETLINK provides to creating following rules:
#ip ru sh
...
19999: from 10.0.0.1 to 10.10.0.11 lookup 19
...

So, could you please tell:
-can I count on this behaviour in future linux kernels?
-which additional attributes can be also passed? I tried
RTA_IIF/RTA_OIF and it looks like it works too.
-is there any way to debug how kernel choose rules?

Thanks in advance,
Vasily.


\
 
 \ /
  Last update: 2013-10-30 10:41    [W:0.036 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site