diff options
author | Olivier Dugeon <olivier.dugeon@orange.com> | 2017-07-31 16:39:00 +0200 |
---|---|---|
committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2017-07-31 16:39:00 +0200 |
commit | a6df2b80d7f7f7f9b7329c15555bdd6f4bb4812d (patch) | |
tree | 92e4b5172ac587ccb7a49b890686307e7ab0d418 /ospfd/ospf_opaque.h | |
parent | Update PR #839 following review (diff) | |
download | frr-a6df2b80d7f7f7f9b7329c15555bdd6f4bb4812d.tar.xz frr-a6df2b80d7f7f7f9b7329c15555bdd6f4bb4812d.zip |
Correct code style as requested by review of PR839
* As per https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl
script result, remove extra white space and add TAB when necessary
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_opaque.h')
-rw-r--r-- | ospfd/ospf_opaque.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/ospfd/ospf_opaque.h b/ospfd/ospf_opaque.h index 60435e502..2470cd2e2 100644 --- a/ospfd/ospf_opaque.h +++ b/ospfd/ospf_opaque.h @@ -82,33 +82,31 @@ * used for various LSA opaque usage e.g. Traffic Engineering. */ struct tlv_header { - u_int16_t type; /* Type of Value */ - u_int16_t length; /* Length of Value portion only, in bytes */ + u_int16_t type; /* Type of Value */ + u_int16_t length; /* Length of Value portion only, in bytes */ }; -#define TLV_HDR_SIZE \ - (sizeof (struct tlv_header)) +#define TLV_HDR_SIZE (sizeof(struct tlv_header)) #define TLV_BODY_SIZE(tlvh) \ - (ROUNDUP (ntohs ((tlvh)->length), sizeof (u_int32_t))) + (ROUNDUP(ntohs((tlvh)->length), sizeof(u_int32_t))) -#define TLV_SIZE(tlvh) \ - (TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh)) +#define TLV_SIZE(tlvh) (TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh)) #define TLV_HDR_TOP(lsah) \ - (struct tlv_header *)((char *)(lsah) + OSPF_LSA_HEADER_SIZE) + (struct tlv_header *)((char *)(lsah) + OSPF_LSA_HEADER_SIZE) #define TLV_HDR_NEXT(tlvh) \ - (struct tlv_header *)((char *)(tlvh) + TLV_SIZE(tlvh)) + (struct tlv_header *)((char *)(tlvh) + TLV_SIZE(tlvh)) #define TLV_HDR_SUBTLV(tlvh) \ - (struct tlv_header *)((char *)(tlvh) + TLV_HDR_SIZE) + (struct tlv_header *)((char *)(tlvh) + TLV_HDR_SIZE) -#define TLV_DATA(tlvh) (void *)((char *)(tlvh) + TLV_HDR_SIZE) +#define TLV_DATA(tlvh) (void *)((char *)(tlvh) + TLV_HDR_SIZE) -#define TLV_TYPE(tlvh) tlvh.header.type -#define TLV_LEN(tlvh) tlvh.header.length -#define TLV_HDR(tlvh) tlvh.header +#define TLV_TYPE(tlvh) tlvh.header.type +#define TLV_LEN(tlvh) tlvh.header.length +#define TLV_HDR(tlvh) tlvh.header /* Following declaration concerns the Opaque LSA management */ enum lsa_opcode { @@ -148,7 +146,7 @@ extern int ospf_opaque_new_if(struct interface *ifp); extern int ospf_opaque_del_if(struct interface *ifp); extern void ospf_opaque_ism_change(struct ospf_interface *oi, int old_status); extern void ospf_opaque_nsm_change(struct ospf_neighbor *nbr, int old_status); -extern void ospf_opaque_config_write_router(struct vty *vty, struct ospf *); +extern void ospf_opaque_config_write_router(struct vty *vty, struct ospf *ospf); extern void ospf_opaque_config_write_if(struct vty *vty, struct interface *ifp); extern void ospf_opaque_config_write_debug(struct vty *vty); extern void show_opaque_info_detail(struct vty *vty, struct ospf_lsa *lsa); @@ -156,7 +154,7 @@ extern void ospf_opaque_lsa_dump(struct stream *s, u_int16_t length); extern void ospf_opaque_lsa_originate_schedule(struct ospf_interface *oi, int *init_delay); -extern struct ospf_lsa *ospf_opaque_lsa_install(struct ospf_lsa *, +extern struct ospf_lsa *ospf_opaque_lsa_install(struct ospf_lsa *lsa, int rt_recalc); extern struct ospf_lsa *ospf_opaque_lsa_refresh(struct ospf_lsa *lsa); |