Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I am working on a Linux kernel module; one of the functionality being to create IPv4 routes from kernel. I could find lot of material on user-kernel space ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    4

    How to send rtnetlink message from kernel space to create IP route


    Hi All,

    I am working on a Linux kernel module; one of the functionality being to create IPv4 routes from kernel. I could find lot of material on user-kernel space interaction but nothing that describes a kernel module, which uses rtnetlink to create ip route.

    After a bit of digging in kernel code, I could find the following apis - kernel_sendmsg, sock_create_kern. Can anyone point to some links where I can find relevant info.

    Many Thanks

  2. #2
    Linux Newbie
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    109
    Not sure if this helps.
    compile networking stack kernel module
    Cheers...
    Robert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •