RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros | Functions | Variables
rtsock.c File Reference
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sysctl.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 <net/if.h>
#include <net/route.h>
#include <net/raw_cb.h>
Include dependency graph for rtsock.c:

Data Structures

struct  walkarg
 

Macros

#define sa_equal(a1, a2)   (bcmp((a1), (a2), (a1)->sa_len) == 0)
 
#define senderr(e)   { error = e; goto flush;}
 
#define metric(f, e)   if (which & (f)) out->e = in->e;
 
#define ROUNDUP(a)   ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
 
#define ADVANCE(x, n)   (x += ROUNDUP((n)->sa_len))
 

Functions

void rt_missmsg (int type, struct rt_addrinfo *rtinfo, int flags, int error)
 
void rt_ifmsg (struct ifnet *ifp)
 
void rt_newaddrmsg (int cmd, struct ifaddr *ifa, int error, struct rtentry *rt)
 
 SYSCTL_NODE (_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock,"")
 
 DOMAIN_SET (route)
 

Variables

struct domain routedomain
 

Variable Documentation

◆ routedomain

struct domain routedomain
Initial value:
=
{ PF_ROUTE, "route", route_init, 0, 0,
routesw, &routesw[sizeof(routesw)/sizeof(routesw[0])],
NULL, NULL, 0, 0 }