Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

libnet-ospf.h File Reference

#include <sys/types.h>

Go to the source code of this file.

Defines

#define IPPROTO_OSPF   89
#define IPPROTO_OSPF_LSA   890
#define OSPFVERSION   2
#define LIBNET_MODX   4102
#define LIBNET_OSPF_H   0x10
#define LIBNET_HELLO_H   0x18
#define LIBNET_DBD_H   0x8
#define LIBNET_LSR_H   0xc
#define LIBNET_LSU_H   0x4
#define LIBNET_LSA_H   0x14
#define LIBNET_AUTH_H   0x8
#define LIBNET_OSPF_CKSUM   0x10
#define LIBNET_LS_RTR_LEN   0x10
#define LIBNET_LS_NET_LEN   0x8
#define LIBNET_LS_SUM_LEN   0xc
#define LIBNET_LS_AS_EXT_LEN   0x10
#define LIBNET_OSPF_UMD   0
#define LIBNET_OSPF_HELLO   1
#define LIBNET_OSPF_DBD   2
#define LIBNET_OSPF_LSR   3
#define LIBNET_OSPF_LSU   4
#define LIBNET_OSPF_LSA   5
#define LIBNET_OSPF_AUTH_NULL   0
#define LIBNET_OSPF_AUTH_SIMPLE   1
#define LIBNET_OSPF_AUTH_MD5   2
#define LIBNET_OPT_EBIT   0x02
#define LIBNET_OPT_MCBIT   0x04
#define LIBNET_OPT_NPBIT   0x08
#define LIBNET_OPT_EABIT   0x10
#define LIBNET_OPT_DCBIT   0x20
#define LIBNET_DBD_IBIT   0x01
#define LIBNET_DBD_MBIT   0x02
#define LIBNET_DBD_MSBIT   0x04
#define LIBNET_LS_TYPE_RTR   1
#define LIBNET_LS_TYPE_NET   2
#define LIBNET_LS_TYPE_IP   3
#define LIBNET_LS_TYPE_ASBR   4
#define LIBNET_LS_TYPE_ASEXT   5
#define LIBNET_RTR_FLAGS_W   0x0100
#define LIBNET_RTR_FLAGS_E   0x0200
#define LIBNET_RTR_FLAGS_B   0x0400
#define LIBNET_LINK_ID_NBR_ID   1
#define LIBNET_LINK_ID_IP_DES   2
#define LIBNET_LINK_ID_SUB   3
#define LIBNET_RTR_TYPE_PTP   1
#define LIBNET_RTR_TYPE_TRANS   2
#define LIBNET_RTR_TYPE_STUB   3
#define RTR_TYPE_VRTL   4
#define LIBNET_AS_E_BIT_ON   0x80000000

Functions

int libnet_build_ospf (u_short, u_char, u_long, u_long, u_short, const char *, int, u_char *)
int libnet_build_ospf_hello (u_long, u_short, u_char, u_char, u_int, u_long, u_long, u_long, const char *, int, u_char *)
int libnet_build_ospf_dbd (u_short, u_char, u_char, u_int, const char *, int, u_char *)
int libnet_build_ospf_lsr (u_int, u_int, u_long, const char *, int, u_char *)
int libnet_build_ospf_lsu (u_int, const char *, int, u_char *)
int libnet_build_ospf_lsa (u_short, u_char, u_char, u_int, u_long, u_int, u_short, const char *, int, u_char *)
int libnet_build_ospf_lsa_rtr (u_short, u_short, u_int, u_int, u_char, u_char, u_short, const char *, int, u_char *)
int libnet_build_ospf_lsa_net (u_long, u_int, const char *, int, u_char *)
int libnet_build_ospf_lsa_sum (u_long, u_int, u_int, const char *, int, u_char *)
int libnet_build_ospf_lsa_as (u_long, u_int, u_long, u_int, const char *, int, u_char *)
void libnet_ospf_lsa_checksum (u_char *, int)


Define Documentation

#define IPPROTO_OSPF   89
 

Definition at line 45 of file libnet-ospf.h.

#define IPPROTO_OSPF_LSA   890
 

Definition at line 47 of file libnet-ospf.h.

#define LIBNET_AS_E_BIT_ON   0x80000000
 

Definition at line 257 of file libnet-ospf.h.

#define LIBNET_AUTH_H   0x8
 

Definition at line 61 of file libnet-ospf.h.

#define LIBNET_DBD_H   0x8
 

Definition at line 57 of file libnet-ospf.h.

#define LIBNET_DBD_IBIT   0x01
 

Definition at line 145 of file libnet-ospf.h.

#define LIBNET_DBD_MBIT   0x02
 

Definition at line 146 of file libnet-ospf.h.

#define LIBNET_DBD_MSBIT   0x04
 

Definition at line 147 of file libnet-ospf.h.

#define LIBNET_HELLO_H   0x18
 

Definition at line 56 of file libnet-ospf.h.

#define LIBNET_LINK_ID_IP_DES   2
 

Definition at line 214 of file libnet-ospf.h.

#define LIBNET_LINK_ID_NBR_ID   1
 

Definition at line 213 of file libnet-ospf.h.

#define LIBNET_LINK_ID_SUB   3
 

Definition at line 215 of file libnet-ospf.h.

#define LIBNET_LS_AS_EXT_LEN   0x10
 

Definition at line 71 of file libnet-ospf.h.

#define LIBNET_LS_NET_LEN   0x8
 

Definition at line 69 of file libnet-ospf.h.

#define LIBNET_LS_RTR_LEN   0x10
 

Definition at line 68 of file libnet-ospf.h.

#define LIBNET_LS_SUM_LEN   0xc
 

Definition at line 70 of file libnet-ospf.h.

#define LIBNET_LS_TYPE_ASBR   4
 

Definition at line 158 of file libnet-ospf.h.

#define LIBNET_LS_TYPE_ASEXT   5
 

Definition at line 159 of file libnet-ospf.h.

#define LIBNET_LS_TYPE_IP   3
 

Definition at line 157 of file libnet-ospf.h.

#define LIBNET_LS_TYPE_NET   2
 

Definition at line 156 of file libnet-ospf.h.

#define LIBNET_LS_TYPE_RTR   1
 

Definition at line 155 of file libnet-ospf.h.

#define LIBNET_LSA_H   0x14
 

Definition at line 60 of file libnet-ospf.h.

#define LIBNET_LSR_H   0xc
 

Definition at line 58 of file libnet-ospf.h.

#define LIBNET_LSU_H   0x4
 

Definition at line 59 of file libnet-ospf.h.

#define LIBNET_MODX   4102
 

Definition at line 49 of file libnet-ospf.h.

#define LIBNET_OPT_DCBIT   0x20
 

Definition at line 118 of file libnet-ospf.h.

#define LIBNET_OPT_EABIT   0x10
 

Definition at line 117 of file libnet-ospf.h.

#define LIBNET_OPT_EBIT   0x02
 

Definition at line 114 of file libnet-ospf.h.

#define LIBNET_OPT_MCBIT   0x04
 

Definition at line 115 of file libnet-ospf.h.

#define LIBNET_OPT_NPBIT   0x08
 

Definition at line 116 of file libnet-ospf.h.

#define LIBNET_OSPF_AUTH_MD5   2
 

Definition at line 94 of file libnet-ospf.h.

#define LIBNET_OSPF_AUTH_NULL   0
 

Definition at line 92 of file libnet-ospf.h.

#define LIBNET_OSPF_AUTH_SIMPLE   1
 

Definition at line 93 of file libnet-ospf.h.

#define LIBNET_OSPF_CKSUM   0x10
 

Definition at line 62 of file libnet-ospf.h.

#define LIBNET_OSPF_DBD   2
 

Definition at line 83 of file libnet-ospf.h.

#define LIBNET_OSPF_H   0x10
 

Definition at line 55 of file libnet-ospf.h.

#define LIBNET_OSPF_HELLO   1
 

Definition at line 82 of file libnet-ospf.h.

#define LIBNET_OSPF_LSA   5
 

Definition at line 86 of file libnet-ospf.h.

#define LIBNET_OSPF_LSR   3
 

Definition at line 84 of file libnet-ospf.h.

#define LIBNET_OSPF_LSU   4
 

Definition at line 85 of file libnet-ospf.h.

#define LIBNET_OSPF_UMD   0
 

Definition at line 81 of file libnet-ospf.h.

#define LIBNET_RTR_FLAGS_B   0x0400
 

Definition at line 210 of file libnet-ospf.h.

#define LIBNET_RTR_FLAGS_E   0x0200
 

Definition at line 209 of file libnet-ospf.h.

#define LIBNET_RTR_FLAGS_W   0x0100
 

Definition at line 208 of file libnet-ospf.h.

#define LIBNET_RTR_TYPE_PTP   1
 

Definition at line 218 of file libnet-ospf.h.

#define LIBNET_RTR_TYPE_STUB   3
 

Definition at line 220 of file libnet-ospf.h.

#define LIBNET_RTR_TYPE_TRANS   2
 

Definition at line 219 of file libnet-ospf.h.

#define OSPFVERSION   2
 

Definition at line 48 of file libnet-ospf.h.

#define RTR_TYPE_VRTL   4
 

Definition at line 221 of file libnet-ospf.h.


Function Documentation

int libnet_build_ospf u_short  ,
u_char  ,
u_long  ,
u_long  ,
u_short  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_dbd u_short  ,
u_char  ,
u_char  ,
u_int  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_hello u_long  ,
u_short  ,
u_char  ,
u_char  ,
u_int  ,
u_long  ,
u_long  ,
u_long  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_lsa u_short  ,
u_char  ,
u_char  ,
u_int  ,
u_long  ,
u_int  ,
u_short  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_lsa_as u_long  ,
u_int  ,
u_long  ,
u_int  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_lsa_net u_long  ,
u_int  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_lsa_rtr u_short  ,
u_short  ,
u_int  ,
u_int  ,
u_char  ,
u_char  ,
u_short  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_lsa_sum u_long  ,
u_int  ,
u_int  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_lsr u_int  ,
u_int  ,
u_long  ,
const char *  ,
int  ,
u_char * 
 

int libnet_build_ospf_lsu u_int  ,
const char *  ,
int  ,
u_char * 
 

void libnet_ospf_lsa_checksum u_char *  ,
int 
 


Generated on Sun May 14 14:51:27 2006 by  doxygen 1.4.2