diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2006-06-29 20:20:52 +0000 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2006-06-29 20:20:52 +0000 |
commit | d7e60dd7a9f0213aaa82d256a78ab74887946e53 (patch) | |
tree | 2e3488591d1ac48d10ddca05fa4cd68e3611f583 /ospfd/ospfd.h | |
parent | 5f41e90e49b8ced6b5adac3933736067d2b24584 (diff) |
[ospfd] Implement new ospf router subcommand "log-adjacency-changes [detail]"
2006-06-28 Erik Muller <erikm@internap.com>
* ospfd.h: Define 2 new struct ospf config flags:
OSPF_LOG_ADJACENCY_CHANGES and OSPF_LOG_ADJACENCY_DETAIL
* ospf_nsm.c (nsm_change_state): Log adjacency changes if
requested.
* ospf_vty.c (ospf_log_adjacency_changes): New command function
to implement ospf subcommand "log-adjacency-changes [detail]".
(no_ospf_log_adjacency_changes) Turn off log-adjacency-changes.
(show_ip_ospf) Show whether adjacency changes are logged.
(ospf_config_write) Add "log-adjacency-changes [detail]" to config.
(ospf_vty_init) Add ospf_log_adjacency_changes and
no_ospf_log_adjacency_changes.
* ospfd.texi: Document new ospf router subcommand
"log-adjacency-changes [detail]".
Diffstat (limited to 'ospfd/ospfd.h')
-rw-r--r-- | ospfd/ospfd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospfd.h b/ospfd/ospfd.h index f2a61094..c15b4d39 100644 --- a/ospfd/ospfd.h +++ b/ospfd/ospfd.h @@ -181,6 +181,8 @@ struct ospf u_char config; #define OSPF_RFC1583_COMPATIBLE (1 << 0) #define OSPF_OPAQUE_CAPABLE (1 << 2) +#define OSPF_LOG_ADJACENCY_CHANGES (1 << 3) +#define OSPF_LOG_ADJACENCY_DETAIL (1 << 4) #ifdef HAVE_OPAQUE_LSA /* Opaque-LSA administrative flags. */ |