diff options
author | Olivier Dugeon <olivier.dugeon@orange.com> | 2017-07-21 16:34:33 +0200 |
---|---|---|
committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2017-07-21 16:34:33 +0200 |
commit | 2a39170c6bd4dddf803a8c4c241e8ab072d78cca (patch) | |
tree | dbaa7efdc0b4306200155fcdd00e93169c9644e5 /ospfd/ospf_opaque.h | |
parent | OSPF OPAQUE, TE and RI macro refactoring & cleanup (diff) | |
download | frr-2a39170c6bd4dddf803a8c4c241e8ab072d78cca.tar.xz frr-2a39170c6bd4dddf803a8c4c241e8ab072d78cca.zip |
Correct indentation and remove _opcode_t typedef
* Correct struct tlh_header indentation in opaque.h
* Change typedef enum _opcode_t by enum lsa_opcode
* Propagate change in ospf_te.[c,h) and ospf_ri.c
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_opaque.h')
-rw-r--r-- | ospfd/ospf_opaque.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ospfd/ospf_opaque.h b/ospfd/ospf_opaque.h index 88a6854b8..60435e502 100644 --- a/ospfd/ospf_opaque.h +++ b/ospfd/ospf_opaque.h @@ -81,8 +81,7 @@ * Following section defines generic TLV (type, length, value) macros, * used for various LSA opaque usage e.g. Traffic Engineering. */ -struct tlv_header -{ +struct tlv_header { u_int16_t type; /* Type of Value */ u_int16_t length; /* Length of Value portion only, in bytes */ }; @@ -112,11 +111,11 @@ struct tlv_header #define TLV_HDR(tlvh) tlvh.header /* Following declaration concerns the Opaque LSA management */ -typedef enum _opcode_t { +enum lsa_opcode { REORIGINATE_THIS_LSA, REFRESH_THIS_LSA, FLUSH_THIS_LSA -} opcode_t; +}; /* Prototypes. */ |