Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
mroute6.h File Reference
#include <linux/types.h>
#include <linux/sockios.h>

Go to the source code of this file.

Data Structures

struct  if_set
 
struct  mif6ctl
 
struct  mf6cctl
 
struct  sioc_sg_req6
 
struct  sioc_mif_req6
 
struct  mrt6msg
 

Macros

#define MRT6_BASE   200
 
#define MRT6_INIT   (MRT6_BASE) /* Activate the kernel mroute code */
 
#define MRT6_DONE   (MRT6_BASE+1) /* Shutdown the kernel mroute */
 
#define MRT6_ADD_MIF   (MRT6_BASE+2) /* Add a virtual interface */
 
#define MRT6_DEL_MIF   (MRT6_BASE+3) /* Delete a virtual interface */
 
#define MRT6_ADD_MFC   (MRT6_BASE+4) /* Add a multicast forwarding entry */
 
#define MRT6_DEL_MFC   (MRT6_BASE+5) /* Delete a multicast forwarding entry */
 
#define MRT6_VERSION   (MRT6_BASE+6) /* Get the kernel multicast version */
 
#define MRT6_ASSERT   (MRT6_BASE+7) /* Activate PIM assert mode */
 
#define MRT6_PIM   (MRT6_BASE+8) /* enable PIM code */
 
#define MRT6_TABLE   (MRT6_BASE+9) /* Specify mroute table ID */
 
#define SIOCGETMIFCNT_IN6   SIOCPROTOPRIVATE /* IP protocol privates */
 
#define SIOCGETSGCNT_IN6   (SIOCPROTOPRIVATE+1)
 
#define SIOCGETRPF   (SIOCPROTOPRIVATE+2)
 
#define MAXMIFS   32
 
#define ALL_MIFS   ((mifi_t)(-1))
 
#define IF_SETSIZE   256
 
#define NIFBITS   (sizeof(if_mask) * 8) /* bits per mask */
 
#define DIV_ROUND_UP(x, y)   (((x) + ((y) - 1)) / (y))
 
#define IF_SET(n, p)   ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS)))
 
#define IF_CLR(n, p)   ((p)->ifs_bits[(n)/NIFBITS] &= ~(1 << ((n) % NIFBITS)))
 
#define IF_ISSET(n, p)   ((p)->ifs_bits[(n)/NIFBITS] & (1 << ((n) % NIFBITS)))
 
#define IF_COPY(f, t)   bcopy(f, t, sizeof(*(f)))
 
#define IF_ZERO(p)   bzero(p, sizeof(*(p)))
 
#define MIFF_REGISTER   0x1 /* register vif */
 
#define MRT6MSG_NOCACHE   1
 
#define MRT6MSG_WRONGMIF   2
 
#define MRT6MSG_WHOLEPKT   3 /* used for use level encap */
 

Typedefs

typedef unsigned long mifbitmap_t
 
typedef unsigned short mifi_t
 
typedef __u32 if_mask
 
typedef struct if_set if_set
 

Macro Definition Documentation

#define ALL_MIFS   ((mifi_t)(-1))

Definition at line 37 of file mroute6.h.

#define DIV_ROUND_UP (   x,
  y 
)    (((x) + ((y) - 1)) / (y))

Definition at line 48 of file mroute6.h.

#define IF_CLR (   n,
  p 
)    ((p)->ifs_bits[(n)/NIFBITS] &= ~(1 << ((n) % NIFBITS)))

Definition at line 57 of file mroute6.h.

#define IF_COPY (   f,
  t 
)    bcopy(f, t, sizeof(*(f)))

Definition at line 59 of file mroute6.h.

#define IF_ISSET (   n,
  p 
)    ((p)->ifs_bits[(n)/NIFBITS] & (1 << ((n) % NIFBITS)))

Definition at line 58 of file mroute6.h.

#define IF_SET (   n,
  p 
)    ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS)))

Definition at line 56 of file mroute6.h.

#define IF_SETSIZE   256

Definition at line 40 of file mroute6.h.

#define IF_ZERO (   p)    bzero(p, sizeof(*(p)))

Definition at line 60 of file mroute6.h.

#define MAXMIFS   32

Definition at line 34 of file mroute6.h.

#define MIFF_REGISTER   0x1 /* register vif */

Definition at line 75 of file mroute6.h.

#define MRT6_ADD_MFC   (MRT6_BASE+4) /* Add a multicast forwarding entry */

Definition at line 23 of file mroute6.h.

#define MRT6_ADD_MIF   (MRT6_BASE+2) /* Add a virtual interface */

Definition at line 21 of file mroute6.h.

#define MRT6_ASSERT   (MRT6_BASE+7) /* Activate PIM assert mode */

Definition at line 26 of file mroute6.h.

#define MRT6_BASE   200

Definition at line 18 of file mroute6.h.

#define MRT6_DEL_MFC   (MRT6_BASE+5) /* Delete a multicast forwarding entry */

Definition at line 24 of file mroute6.h.

#define MRT6_DEL_MIF   (MRT6_BASE+3) /* Delete a virtual interface */

Definition at line 22 of file mroute6.h.

#define MRT6_DONE   (MRT6_BASE+1) /* Shutdown the kernel mroute */

Definition at line 20 of file mroute6.h.

#define MRT6_INIT   (MRT6_BASE) /* Activate the kernel mroute code */

Definition at line 19 of file mroute6.h.

#define MRT6_PIM   (MRT6_BASE+8) /* enable PIM code */

Definition at line 27 of file mroute6.h.

#define MRT6_TABLE   (MRT6_BASE+9) /* Specify mroute table ID */

Definition at line 28 of file mroute6.h.

#define MRT6_VERSION   (MRT6_BASE+6) /* Get the kernel multicast version */

Definition at line 25 of file mroute6.h.

#define MRT6MSG_NOCACHE   1

Definition at line 127 of file mroute6.h.

#define MRT6MSG_WHOLEPKT   3 /* used for use level encap */

Definition at line 129 of file mroute6.h.

#define MRT6MSG_WRONGMIF   2

Definition at line 128 of file mroute6.h.

#define NIFBITS   (sizeof(if_mask) * 8) /* bits per mask */

Definition at line 44 of file mroute6.h.

#define SIOCGETMIFCNT_IN6   SIOCPROTOPRIVATE /* IP protocol privates */

Definition at line 30 of file mroute6.h.

#define SIOCGETRPF   (SIOCPROTOPRIVATE+2)

Definition at line 32 of file mroute6.h.

#define SIOCGETSGCNT_IN6   (SIOCPROTOPRIVATE+1)

Definition at line 31 of file mroute6.h.

Typedef Documentation

typedef __u32 if_mask

Definition at line 43 of file mroute6.h.

typedef struct if_set if_set
typedef unsigned long mifbitmap_t

Definition at line 35 of file mroute6.h.

typedef unsigned short mifi_t

Definition at line 36 of file mroute6.h.