17.9 Routing Table Operations
On some systems, two ioctl requests are provided to operate on the routing table. These two requests require that the third argument to ioctl be a pointer to an rtentry structure, which is defined by including the <net/route.h> header. These requests are normally issued by the route program. Only the superuser can issue these requests. On systems with routing sockets (Chapter 18), these requests use routing sockets instead of ioctl.
SIOCADDRT | Add an entry to the routing table. |
SIOCDELRT | Delete an entry from the routing table. |