Re: route addition/deletion from within kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The preferred way is to use netlink messages. You will have to open a 
netlink socket, and then send the RTM_NEWROUTE message after packing the 
message correctly.

Cheers,
tomar

 On Fri, 13 Aug 2004, rvemuri wrote:

> Hi all,
>         What APIs do I call if I need to add/delete routes (to be called from 
> a module) . I tried to follow the socket ioctl handlers for route 
> addition/deletion but looks like these are not exported ((struct fib_table 
> *)tb->tb_insert() == fn_hash_insert, I am working on 2.4.18,btw), I get the 
> feeling I am complete off-track looking for APIs, can somebody point out how 
> I can go about doing this. 
> Thanks in advance,
> vemuri
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 



-- You have moved the mouse. Windows must be restarted for the 
   changes to take effect.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux