Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dn_route.h File Reference
#include <net/sock.h>
#include <linux/if_arp.h>

Go to the source code of this file.

Data Structures

struct  dn_route
 

Macros

#define DN_RT_F_PID   0x07 /* Mask for packet type */
 
#define DN_RT_F_PF   0x80 /* Padding Follows */
 
#define DN_RT_F_VER   0x40 /* Version =0 discard packet if ==1 */
 
#define DN_RT_F_IE   0x20 /* Intra Ethernet, Reserved in short pkt */
 
#define DN_RT_F_RTS   0x10 /* Packet is being returned to sender */
 
#define DN_RT_F_RQR   0x08 /* Return packet to sender upon non-delivery */
 
#define DN_RT_PKT_MSK   0x06
 
#define DN_RT_PKT_SHORT   0x02 /* Short routing packet */
 
#define DN_RT_PKT_LONG   0x06 /* Long routing packet */
 
#define DN_RT_PKT_CNTL   0x01 /* Set to 1 if a control packet */
 
#define DN_RT_CNTL_MSK   0x0f /* Mask for control packets */
 
#define DN_RT_PKT_INIT   0x01 /* Initialisation packet */
 
#define DN_RT_PKT_VERI   0x03 /* Verification Message */
 
#define DN_RT_PKT_HELO   0x05 /* Hello and Test Message */
 
#define DN_RT_PKT_L1RT   0x07 /* Level 1 Routing Message */
 
#define DN_RT_PKT_L2RT   0x09 /* Level 2 Routing Message */
 
#define DN_RT_PKT_ERTH   0x0b /* Ethernet Router Hello */
 
#define DN_RT_PKT_EEDH   0x0d /* Ethernet EndNode Hello */
 
#define DN_RT_INFO_TYPE   0x03 /* Type mask */
 
#define DN_RT_INFO_L1RT   0x02 /* L1 Router */
 
#define DN_RT_INFO_L2RT   0x01 /* L2 Router */
 
#define DN_RT_INFO_ENDN   0x03 /* EndNode */
 
#define DN_RT_INFO_VERI   0x04 /* Verification Reqd. */
 
#define DN_RT_INFO_RJCT   0x08 /* Reject Flag, Reserved */
 
#define DN_RT_INFO_VFLD   0x10 /* Verification Failed, Reserved */
 
#define DN_RT_INFO_NOML   0x20 /* No Multicast traffic accepted */
 
#define DN_RT_INFO_BLKR   0x40 /* Blocking Requested */
 

Functions

struct sk_buffdn_alloc_skb (struct sock *sk, int size, gfp_t pri)
 
int dn_route_output_sock (struct dst_entry **pprt, struct flowidn *, struct sock *sk, int flags)
 
int dn_cache_dump (struct sk_buff *skb, struct netlink_callback *cb)
 
void dn_rt_cache_flush (int delay)
 
void dn_route_init (void)
 
void dn_route_cleanup (void)
 

Macro Definition Documentation

#define DN_RT_CNTL_MSK   0x0f /* Mask for control packets */

Definition at line 40 of file dn_route.h.

#define DN_RT_F_IE   0x20 /* Intra Ethernet, Reserved in short pkt */

Definition at line 27 of file dn_route.h.

#define DN_RT_F_PF   0x80 /* Padding Follows */

Definition at line 25 of file dn_route.h.

#define DN_RT_F_PID   0x07 /* Mask for packet type */

Definition at line 24 of file dn_route.h.

#define DN_RT_F_RQR   0x08 /* Return packet to sender upon non-delivery */

Definition at line 29 of file dn_route.h.

#define DN_RT_F_RTS   0x10 /* Packet is being returned to sender */

Definition at line 28 of file dn_route.h.

#define DN_RT_F_VER   0x40 /* Version =0 discard packet if ==1 */

Definition at line 26 of file dn_route.h.

#define DN_RT_INFO_BLKR   0x40 /* Blocking Requested */

Definition at line 58 of file dn_route.h.

#define DN_RT_INFO_ENDN   0x03 /* EndNode */

Definition at line 53 of file dn_route.h.

#define DN_RT_INFO_L1RT   0x02 /* L1 Router */

Definition at line 51 of file dn_route.h.

#define DN_RT_INFO_L2RT   0x01 /* L2 Router */

Definition at line 52 of file dn_route.h.

#define DN_RT_INFO_NOML   0x20 /* No Multicast traffic accepted */

Definition at line 57 of file dn_route.h.

#define DN_RT_INFO_RJCT   0x08 /* Reject Flag, Reserved */

Definition at line 55 of file dn_route.h.

#define DN_RT_INFO_TYPE   0x03 /* Type mask */

Definition at line 50 of file dn_route.h.

#define DN_RT_INFO_VERI   0x04 /* Verification Reqd. */

Definition at line 54 of file dn_route.h.

#define DN_RT_INFO_VFLD   0x10 /* Verification Failed, Reserved */

Definition at line 56 of file dn_route.h.

#define DN_RT_PKT_CNTL   0x01 /* Set to 1 if a control packet */

Definition at line 38 of file dn_route.h.

#define DN_RT_PKT_EEDH   0x0d /* Ethernet EndNode Hello */

Definition at line 47 of file dn_route.h.

#define DN_RT_PKT_ERTH   0x0b /* Ethernet Router Hello */

Definition at line 46 of file dn_route.h.

#define DN_RT_PKT_HELO   0x05 /* Hello and Test Message */

Definition at line 43 of file dn_route.h.

#define DN_RT_PKT_INIT   0x01 /* Initialisation packet */

Definition at line 41 of file dn_route.h.

#define DN_RT_PKT_L1RT   0x07 /* Level 1 Routing Message */

Definition at line 44 of file dn_route.h.

#define DN_RT_PKT_L2RT   0x09 /* Level 2 Routing Message */

Definition at line 45 of file dn_route.h.

#define DN_RT_PKT_LONG   0x06 /* Long routing packet */

Definition at line 35 of file dn_route.h.

#define DN_RT_PKT_MSK   0x06

Definition at line 32 of file dn_route.h.

#define DN_RT_PKT_SHORT   0x02 /* Short routing packet */

Definition at line 34 of file dn_route.h.

#define DN_RT_PKT_VERI   0x03 /* Verification Message */

Definition at line 42 of file dn_route.h.

Function Documentation

struct sk_buff* dn_alloc_skb ( struct sock sk,
int  size,
gfp_t  pri 
)
read

Definition at line 118 of file dn_nsp_out.c.

int dn_cache_dump ( struct sk_buff skb,
struct netlink_callback cb 
)

Definition at line 1708 of file dn_route.c.

void dn_route_cleanup ( void  )

Definition at line 1915 of file dn_route.c.

void dn_route_init ( void  )

Definition at line 1854 of file dn_route.c.

int dn_route_output_sock ( struct dst_entry **  pprt,
struct flowidn ,
struct sock sk,
int  flags 
)

Definition at line 1285 of file dn_route.c.

void dn_rt_cache_flush ( int  delay)

Definition at line 394 of file dn_route.c.