RTNETLINK (7)
Linux IPv4 routing socket.
SYNOPSIS
#include <asm/types.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <sys/socket.h>
rtnetlink_socket = socket(PF_NETLINK, int socket_type , NETLINK_ROUTE);
DESCRIPTION
Rtnetlink allows the kernel's routing tables to be read and altered.
It is used within the kernel to communicate between
various subsystems, though this usage is not documented here, and for
communication with user-space programs.
Network routes, ip addresses, link parameters, neighbour setups, queueing
disciplines, traffic classes and packet classifiers may all be controlled
through
NETLINK_ROUTE
sockets. It is based on netlink messages, see
netlink (7)
for more information.
|
|