|
RTEMS CPU Kit with SuperCore
|
#include "opt_mrouting.h"#include <sys/param.h>#include <sys/queue.h>#include <sys/systm.h>#include <sys/kernel.h>#include <sys/proc.h>#include <sys/mbuf.h>#include <sys/socket.h>#include <sys/socketvar.h>#include <sys/domain.h>#include <sys/protosw.h>#include <sys/ioctl.h>#include <net/if.h>#include <net/route.h>#include <net/raw_cb.h>#include <netinet/in.h>#include <netinet/in_var.h>#include <netinet/ip_mroute.h>
Data Structures | |
| struct | rtfc_arg |
Macros | |
| #define | SA(p) ((struct sockaddr *)(p)) |
| #define | sa_equal(a1, a2) (bcmp((a1), (a2), (a1)->sa_len) == 0) |
| #define | equal(a1, a2) (bcmp((caddr_t)(a1), (caddr_t)(a2), (a1)->sa_len) == 0) |
| #define | ROUNDUP(a) (a>0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long)) |
| #define | senderr(x) { error = x ; goto bad; } |
Functions | |
| void | route_init (void) |
| void | rtalloc (struct route *ro) |
| void | rtalloc_ign (struct route *ro, u_long ignore) |
| struct rtentry * | rtalloc1 (struct sockaddr *dst, int report, u_long ignflags) |
| void | rtfree (struct rtentry *rt) |
| void | ifafree (struct ifaddr *ifa) |
| void | rtredirect (struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct sockaddr *src, struct rtentry **rtp) |
| int | rtioctl (int req, caddr_t data, struct proc *p) |
| struct ifaddr * | ifa_ifwithroute (int flags, struct sockaddr *dst, struct sockaddr *gateway) |
| int | rtrequest (int req, struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) |
| int | rt_setgate (struct rtentry *rt0, struct sockaddr *dst, struct sockaddr *gate) |
| int | rtinit (struct ifaddr *ifa, int cmd, int flags) |
Variables | |
| struct route_cb | route_cb |
| struct radix_node_head * | rt_tables [AF_MAX+1] |
1.8.13