libnl/lib/route
Romary Sonrier cb6a089d80 Adding rule with "From" option doesn't work
OK i found the bug, is is the patch !!

Can someone push it into the git tree ?
Regards,

Romary Sonrier

=========================
My analysis:

I guess that the pay load is *struct fib_rule_hdr*
struct fib_rule_hdr {
__u8 family;
__u8 dst_len;
__u8 src_len;
__u8 tos;

__u8 table;
__u8 res1; /* reserved */
__u8 res2; /* reserved */
__u8 action;

__u32 flags;
};

> [PAYLOAD] 12 octets
> 02 00 00 00 0a 00 00 01 00 00 00 00 ............
so

family = 02 , fine

table = 10, fine
but
src_len =0 !!!! should be 32
2011-05-03 11:40:21 +02:00
..
cls Unified TC API 2011-03-21 15:51:52 +01:00
link Expose <netlink/route/link/inet.h> 2011-04-20 11:53:04 +02:00
qdisc rename sch -> qdisc 2011-03-21 16:47:42 +01:00
.gitignore Let git ignore generated pktloc source files 2010-07-03 15:56:07 +02:00
addr.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
class.c trafic class/classifer API improvements and documentation 2011-03-29 12:41:59 +02:00
classid.c Improve readability of classid string representation 2011-04-20 16:29:42 +02:00
cls.c trafic class/classifer API improvements and documentation 2011-03-29 12:41:59 +02:00
link.c Fix clone() of AF specific link data 2011-04-21 14:46:06 +02:00
neigh.c Documentation updates 2011-03-22 00:40:26 +01:00
neightbl.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
nexthop.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
pktloc.c Allow NLSYSCONFDIR environment variable to overwrite built-in sysconfdir 2011-03-24 21:14:52 +01:00
pktloc_grammar.l Packet location updates 2010-10-27 01:21:50 +02:00
pktloc_syntax.y pktloc: support to specify a shift operator for packet locations 2010-11-04 20:01:36 +01:00
qdisc.c Qdisc API improvements and documentation 2011-03-25 18:13:19 +01:00
route.c Documentation updates 2011-03-22 00:40:26 +01:00
route_obj.c add missing checks for ROUTE_ATTR_MULTIPATH 2011-03-22 13:11:09 +01:00
route_utils.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
rtnl.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
rule.c Adding rule with "From" option doesn't work 2011-05-03 11:40:21 +02:00
tc.c Provide rtnl_tc_get_link() and fix link refcnt 2011-04-21 14:48:54 +02:00