hi
currently, i'm trying to use rtnetlink to modify the kernel's routing
table
i tried to compile the sample code found at
http://qos.ittc.ukans.edu/netlink/html/node16.html
// opening the netlink socket to communicate with the kernel
if (rtnl_open(&rth) < 0)
{
fprintf(stderr, "cannot open rtnetlink\n");
exit(1);
}
// sending the packet to the kernel.
if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0)
exit(2);
however the compiler is unable to reference rtnl_open()....
i think i have already included all the necessary header files
anyone has any idea?
Sent via Deja.com
http://www.deja.com/