libnl/lib
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
..
cli rename sch -> qdisc 2011-03-21 16:47:42 +01:00
fib_lookup Documentation updates 2011-03-22 00:40:26 +01:00
genl constify struct trans_tbl 2010-11-17 16:09:08 +01:00
netfilter rename nl_send_auto_complete() -> nl_send_auto(), nl_auto_complete -> nl_complete_msg() 2010-11-18 14:13:49 +01:00
route Adding rule with "From" option doesn't work 2011-05-03 11:40:21 +02:00
.gitignore Build separate libraries for each netilnk family 2008-05-15 18:01:50 +02:00
addr.c addr: hide nl_addr_destroy() 2010-11-26 16:32:10 +01:00
attr.c Omit empty nested attributes 2011-03-23 13:39:18 +01:00
cache.c Provide nl_cache_set_arg{1,2}() to specify cache args 2011-04-10 10:22:27 +02:00
cache_mngr.c Documentation updates 2011-03-22 00:40:26 +01:00
cache_mngt.c restructure module documentation order 2008-12-10 18:12:30 +01:00
data.c restructure module documentation order 2008-12-10 18:12:30 +01:00
error.c Improve rtnl_link_change() behaviour 2011-04-13 16:42:34 +02:00
handlers.c restructure module documentation order 2008-12-10 18:12:30 +01:00
Makefile.am dummy interface support 2011-04-15 15:31:22 +02:00
msg.c Documentation updates 2011-03-22 00:40:26 +01:00
nl.c API to issue direct GET requests to the kernel 2011-04-11 12:34:01 +02:00
object.c Provide nl_object_dump_buf() to easily dump to buffers 2011-04-10 10:22:01 +02:00
socket.c socket: constify interface 2010-11-18 12:47:16 +01:00
utils.c Add support for ARPHRD_NONE 2011-04-19 09:57:14 +02:00