How to send rtnetlink message from kernel space to create IP route
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.