RE: route addition/deletion from within kernel

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

 



-> > 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

  Use routing sockets. Find more about routing sockets
  using "man netlink" or "man rtnetlink"
  http://www.rt.com/man/rtnetlink.4.html

Naidu.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux