version 1.1, 2012/02/21 17:26:12
|
version 1.1.1.4, 2016/11/02 10:09:11
|
Line 107 struct ospf6_lsa_header
|
Line 107 struct ospf6_lsa_header
|
((L)->header->adv_router == (a) && (L)->header->id == (i) && \ |
((L)->header->adv_router == (a) && (L)->header->id == (i) && \ |
(L)->header->type == (t)) |
(L)->header->type == (t)) |
#define OSPF6_LSA_IS_DIFFER(L1, L2) ospf6_lsa_is_differ (L1, L2) |
#define OSPF6_LSA_IS_DIFFER(L1, L2) ospf6_lsa_is_differ (L1, L2) |
#define OSPF6_LSA_IS_MAXAGE(L) (ospf6_lsa_age_current (L) == MAXAGE) | #define OSPF6_LSA_IS_MAXAGE(L) (ospf6_lsa_age_current (L) == OSPF_LSA_MAXAGE) |
#define OSPF6_LSA_IS_CHANGED(L1, L2) ospf6_lsa_is_changed (L1, L2) |
#define OSPF6_LSA_IS_CHANGED(L1, L2) ospf6_lsa_is_changed (L1, L2) |
|
#define OSPF6_LSA_IS_SEQWRAP(L) ((L)->header->seqnum == htonl(OSPF_MAX_SEQUENCE_NUMBER + 1)) |
|
|
|
|
struct ospf6_lsa |
struct ospf6_lsa |
{ |
{ |
char name[64]; /* dump string */ |
char name[64]; /* dump string */ |
|
|
struct ospf6_lsa *prev; | struct route_node *rn; |
struct ospf6_lsa *next; | |
|
|
unsigned char lock; /* reference counter */ |
unsigned char lock; /* reference counter */ |
unsigned char flag; /* special meaning (e.g. floodback) */ |
unsigned char flag; /* special meaning (e.g. floodback) */ |
Line 140 struct ospf6_lsa
|
Line 141 struct ospf6_lsa
|
#define OSPF6_LSA_FLOODBACK 0x02 |
#define OSPF6_LSA_FLOODBACK 0x02 |
#define OSPF6_LSA_DUPLICATE 0x04 |
#define OSPF6_LSA_DUPLICATE 0x04 |
#define OSPF6_LSA_IMPLIEDACK 0x08 |
#define OSPF6_LSA_IMPLIEDACK 0x08 |
|
#define OSPF6_LSA_SEQWRAPPED 0x20 |
|
|
struct ospf6_lsa_handler |
struct ospf6_lsa_handler |
{ |
{ |
u_int16_t type; /* host byte order */ |
u_int16_t type; /* host byte order */ |
const char *name; |
const char *name; |
|
const char *short_name; |
int (*show) (struct vty *, struct ospf6_lsa *); |
int (*show) (struct vty *, struct ospf6_lsa *); |
|
char *(*get_prefix_str) (struct ospf6_lsa *, char *buf, int buflen, int pos); |
u_char debug; |
u_char debug; |
}; |
}; |
|
|
Line 205 extern struct ospf6_lsa_handler unknown_handler;
|
Line 209 extern struct ospf6_lsa_handler unknown_handler;
|
continue; \ |
continue; \ |
} |
} |
|
|
| |
/* Function Prototypes */ |
/* Function Prototypes */ |
extern const char *ospf6_lstype_name (u_int16_t type); |
extern const char *ospf6_lstype_name (u_int16_t type); |
|
extern const char *ospf6_lstype_short_name (u_int16_t type); |
extern u_char ospf6_lstype_debug (u_int16_t type); |
extern u_char ospf6_lstype_debug (u_int16_t type); |
extern int ospf6_lsa_is_differ (struct ospf6_lsa *lsa1, struct ospf6_lsa *lsa2); |
extern int ospf6_lsa_is_differ (struct ospf6_lsa *lsa1, struct ospf6_lsa *lsa2); |
extern int ospf6_lsa_is_changed (struct ospf6_lsa *lsa1, struct ospf6_lsa *lsa2); |
extern int ospf6_lsa_is_changed (struct ospf6_lsa *lsa1, struct ospf6_lsa *lsa2); |
Line 237 extern int ospf6_lsa_expire (struct thread *);
|
Line 242 extern int ospf6_lsa_expire (struct thread *);
|
extern int ospf6_lsa_refresh (struct thread *); |
extern int ospf6_lsa_refresh (struct thread *); |
|
|
extern unsigned short ospf6_lsa_checksum (struct ospf6_lsa_header *); |
extern unsigned short ospf6_lsa_checksum (struct ospf6_lsa_header *); |
|
extern int ospf6_lsa_checksum_valid (struct ospf6_lsa_header *); |
extern int ospf6_lsa_prohibited_duration (u_int16_t type, u_int32_t id, |
extern int ospf6_lsa_prohibited_duration (u_int16_t type, u_int32_t id, |
u_int32_t adv_router, void *scope); |
u_int32_t adv_router, void *scope); |
|
|
Line 245 extern struct ospf6_lsa_handler *ospf6_get_lsa_handler
|
Line 251 extern struct ospf6_lsa_handler *ospf6_get_lsa_handler
|
|
|
extern void ospf6_lsa_init (void); |
extern void ospf6_lsa_init (void); |
extern void ospf6_lsa_terminate (void); |
extern void ospf6_lsa_terminate (void); |
extern void ospf6_lsa_cmd_init (void); |
|
|
|
extern int config_write_ospf6_debug_lsa (struct vty *vty); |
extern int config_write_ospf6_debug_lsa (struct vty *vty); |
extern void install_element_ospf6_debug_lsa (void); |
extern void install_element_ospf6_debug_lsa (void); |