Carries out a request to change the routing table.
#include <sys/types.h> #include <sys/errno.h> #include <sys/mbuf.h> #include <net/if.h> #include <net/af.h> #include <net/route.h>
int rtrequest_gr (req, dst, gateway, gidlist, netmask, flags, ret_nrt) int req; struct sockaddr *dst, *gateway, *netmask; int flags; struct rtentry **ret_nrt; struct gidstruct *gidlist;
The rtrequest_gr kernel service carries out a request to change the routing table. Interfaces call the rtrequest_gr service at boot time to make their local routes known for routing table ioctl operations. Interfaces also call the rtrequest_gr service as the result of routing redirects. The request is either to add (if the req parameter has a value of RMT_ADD) or delete (the req parameter is a value of RMT_DELETE) the route.
The gidlist parameter specifies a list of group id restrictions. A route can be allocated only if its group id restrictions specify that it can be used by the user on whose behalf the allocation is done. A route with a NULL gidlist can be used by any user.
The rtrequest_gr kernel service can be called from either the process or interrupt environment.
To carry out a request to change the routing table, invoke the rtrequest_gr kernel service as follows:
rtrequest_gr(RTM_ADD, dst, gateway, netmask, flags, &rtp);
The rtrequest_gr kernel service is part of Base Operating System (BOS) Runtime.
The rtinit kernel service.
Network Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.
The rtrequest kernel service.