<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello guys,<br>
<br>
I am using libnl 3.0 from git
(cc33b0940f8ca0a34c9fbc085963e7887adc4db7)<br>
<br>
I am trying to add rules to the kernel routing engine, using libnl.
(kernel 2.6.35-28-generic x86_64 GNU/Linux / Ubuntu)<br>
<br>
What i'm trying to do would be , with iproute2 :<b> ip rule add from
127.0.0.1 table 10 prio 100</b><br>
<br>
There is not any tool like src/nl-rule-add.c yet, so i did my own ,
you can find it as attachement.<br>
<br>
It seems that the call :<b> rtnl_rule_set_src(rule, a)</b> doesn't
have any effect.<br>
<br>
Do you have any idea?<br>
<br>
I tried to compare with iproute2 code source, but that's not that
easy. They use a struct "struct rtmsg", that is not use in libnl.<br>
<br>
Any help would be welcome.... <br>
<br>
Regards,<br>
<br>
Romary Sonrier<br>
<br>
</body>
</html>