*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: route | Section: 9 | Source: OpenBSD | File: route.9
RT_SETGATE(9) FreeBSD Kernel Developer's Manual RT_SETGATE(9) NAME rt_setgate, rtredirect, rtdeletemsg - kernel routing interface SYNOPSIS #include <net/route.h> int rt_setgate(struct rtentry *rt, struct sockaddr *gate, u_int tableid); void rtredirect(struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *src, struct rtentry **rtp, unsigned int rdomain); int rtdeletemsg(struct rtentry *rt, struct ifnet *ifp, u_int tableid); DESCRIPTION Routing entries describe the routes to be taken by packets in a router. rt_setgate(struct rtentry *rt, struct sockaddr *gate, u_int tableid) Set the address of the gateway for routes described by rt to gate. If memory must be allocated to hold the gateway address, the address for which rt describes routes will be copied from gate. rtredirect(struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *src, struct rtentry **rtp, unsigned int rdomain) Redirect routes to dst through gateway, such as in response to an ICMP redirect message. src should be the address from which the redirect message was received. If rtp is not NULL, it will be populated by the routing entry corresponding to dst. rtdeletemsg(struct rtentry *rt, struct ifnet *ifp, u_int tableid) Delete routing table entry rt from table tableid and forward a notification message to all AF_ROUTE sockets. RETURN VALUES rt_setgate() may fail with: [ENOBUFS] Memory could not be allocated for the gateway. rtdeletemsg() may fail with: [EAFNOSUPPORT] The protocol used by rt is not supported by table with ID tableid. [ESRCH] No routing entry for rt could be found. [ESRCH] rt is a multipath routing entry that conflicts with an existing one. SEE ALSO route(4), route(8), rt_timer_add(9), rtable_add(9), rtlabel_id2name(9), rtrequest(9) FreeBSD 14.1-RELEASE-p8 January 11, 2017 FreeBSD 14.1-RELEASE-p8

Navigation Options