RTEMS CPU Kit with SuperCore
Data Structures | Macros | Typedefs
ip_mroute.h File Reference
#include <netinet/in.h>
#include <net/route.h>
Include dependency graph for ip_mroute.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vifctl
 
struct  mfcctl
 
struct  mrtstat
 
struct  sioc_sg_req
 
struct  sioc_vif_req
 
struct  vif
 
struct  mfc
 
struct  igmpmsg
 
struct  rtdetq
 
struct  tbf
 

Macros

#define MRT_INIT   100 /* initialize forwarder */
 
#define MRT_DONE   101 /* shut down forwarder */
 
#define MRT_ADD_VIF   102 /* create virtual interface */
 
#define MRT_DEL_VIF   103 /* delete virtual interface */
 
#define MRT_ADD_MFC   104 /* insert forwarding cache entry */
 
#define MRT_DEL_MFC   105 /* delete forwarding cache entry */
 
#define MRT_VERSION   106 /* get kernel version number */
 
#define MRT_ASSERT   107 /* enable assert processing */
 
#define MRT_PIM   MRT_ASSERT /* enable PIM processing */
 
#define MRT_API_SUPPORT   109 /* supported MRT API */
 
#define MRT_API_CONFIG   110 /* config MRT API */
 
#define MRT_ADD_BW_UPCALL   111 /* create bandwidth monitor */
 
#define MRT_DEL_BW_UPCALL   112 /* delete bandwidth monitor */
 
#define GET_TIME(t)   microtime(&t)
 
#define MAXVIFS   32
 
#define ALL_VIFS   (vifi_t)-1
 
#define VIFM_SET(n, m)   ((m) |= (1 << (n)))
 
#define VIFM_CLR(n, m)   ((m) &= ~(1 << (n)))
 
#define VIFM_ISSET(n, m)   ((m) & (1 << (n)))
 
#define VIFM_CLRALL(m)   ((m) = 0x00000000)
 
#define VIFM_COPY(mfrom, mto)   ((mto) = (mfrom))
 
#define VIFM_SAME(m1, m2)   ((m1) == (m2))
 
#define VIFF_TUNNEL   0x1 /* vif represents a tunnel end-point */
 
#define VIFF_SRCRT   0x2 /* tunnel uses IP source routing */
 
#define IGMPMSG_NOCACHE   1
 
#define IGMPMSG_WRONGVIF   2
 
#define MFCTBLSIZ   256
 
#define MFCHASHMOD(h)   ((h) & (MFCTBLSIZ - 1))
 
#define MAX_UPQ   4 /* max. no of pkts in upcall Q */
 
#define MAX_BKT_SIZE   10000 /* 10K bytes size */
 
#define MAXQSIZE   10 /* max # of pkts in queue */
 

Typedefs

typedef u_long vifbitmap_t
 
typedef u_short vifi_t