diff options
author | vincent <vincent> | 2005-09-29 13:52:57 +0000 |
---|---|---|
committer | vincent <vincent> | 2005-09-29 13:52:57 +0000 |
commit | 791932ed8ba9d3f6378acca3c3757e12a69a100b (patch) | |
tree | 526646a9cbc2684e1a6a71ce864565aefe46ed5a /ospfd/ospf_ism.h | |
parent | ae87dc866cdd9d2c14b1a242cf4ea55fe35dff62 (diff) | |
download | quagga-791932ed8ba9d3f6378acca3c3757e12a69a100b.tar.bz2 quagga-791932ed8ba9d3f6378acca3c3757e12a69a100b.tar.xz |
2005-09-29 Alain Ritoux <alain.ritoux@6wind.com>
* ospfd/ospf_vty.c: forece default route LSA to be re_issued whenever
cost is changed ( [no] ip ospf area XXX default-cost YYY)
Support ignore-mtu option
* ospfd/ospfd.h: define OSPF_MTU_IGNORE_DEFAULT
* ospfd/ospf_packet.c: support ignore-mtu option
* ospfd/ospf_interface.h: field added for skipping MTU check
* ospfd/ospf_interface.c: fix memory leak in ospf_crypt_key_delete()
Set mtu_ignore field to default value
* ospfd/ospf_abr.[ch]: export ospf_abr_announce_network_to_area()
* ospfd/ospf_ism.h: add MACRO to convert internal ISM status into SNMP
correct values
* ospfd/ospf_snmp.c: add sanity check on LSA type in lsdb_lookup_next()
convert OSPFIFSTATE internal status into SNMP values
Diffstat (limited to 'ospfd/ospf_ism.h')
-rw-r--r-- | ospfd/ospf_ism.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_ism.h b/ospfd/ospf_ism.h index 58f80c38..94d75b49 100644 --- a/ospfd/ospf_ism.h +++ b/ospfd/ospf_ism.h @@ -35,6 +35,10 @@ #define ISM_DR 7 #define OSPF_ISM_STATE_MAX 8 +/* Because DR/DROther values are exhanged wrt RFC */ +#define ISM_SNMP(x) (((x) == ISM_DROther) ? ISM_DR : \ + ((x) == ISM_DR) ? ISM_DROther : (x)) + /* OSPF Interface State Machine Event. */ #define ISM_NoEvent 0 #define ISM_InterfaceUp 1 |