diff options
author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 |
---|---|---|
committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 |
commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /lib/bfd.h | |
parent | *: add indent control files (diff) | |
download | frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.tar.xz frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.zip |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/bfd.h')
-rw-r--r-- | lib/bfd.h | 90 |
1 files changed, 40 insertions, 50 deletions
@@ -36,9 +36,8 @@ #define BFD_MAX_DETECT_MULT 255 #define BFD_GBL_FLAG_IN_SHUTDOWN (1 << 0) /* The daemon in shutdown */ -struct bfd_gbl -{ - u_int16_t flags; +struct bfd_gbl { + u_int16_t flags; }; #define BFD_FLAG_PARAM_CFG (1 << 0) /* parameters have been configured */ @@ -50,67 +49,58 @@ struct bfd_gbl #define BFD_STATUS_UP (1 << 2) /* BFD session status is up */ enum bfd_sess_type { - BFD_TYPE_NOT_CONFIGURED, - BFD_TYPE_SINGLEHOP, - BFD_TYPE_MULTIHOP + BFD_TYPE_NOT_CONFIGURED, + BFD_TYPE_SINGLEHOP, + BFD_TYPE_MULTIHOP }; -struct bfd_info -{ - u_int16_t flags; - u_int8_t detect_mult; - u_int32_t desired_min_tx; - u_int32_t required_min_rx; - time_t last_update; - u_int8_t status; - enum bfd_sess_type type; +struct bfd_info { + u_int16_t flags; + u_int8_t detect_mult; + u_int32_t desired_min_tx; + u_int32_t required_min_rx; + time_t last_update; + u_int8_t status; + enum bfd_sess_type type; }; -extern struct bfd_info * -bfd_info_create(void); +extern struct bfd_info *bfd_info_create(void); -extern void -bfd_info_free(struct bfd_info **bfd_info); +extern void bfd_info_free(struct bfd_info **bfd_info); -extern int -bfd_validate_param(struct vty *vty, const char *dm_str, const char *rx_str, - const char *tx_str, u_int8_t *dm_val, u_int32_t *rx_val, - u_int32_t *tx_val); +extern int bfd_validate_param(struct vty *vty, const char *dm_str, + const char *rx_str, const char *tx_str, + u_int8_t *dm_val, u_int32_t *rx_val, + u_int32_t *tx_val); -extern void -bfd_set_param (struct bfd_info **bfd_info, u_int32_t min_rx, u_int32_t min_tx, - u_int8_t detect_mult, int defaults, int *command); -extern void -bfd_peer_sendmsg (struct zclient *zclient, struct bfd_info *bfd_info, - int family, void *dst_ip, void *src_ip, char *if_name, - int ttl, int multihop, int command, int set_flag, - vrf_id_t vrf_id); +extern void bfd_set_param(struct bfd_info **bfd_info, u_int32_t min_rx, + u_int32_t min_tx, u_int8_t detect_mult, int defaults, + int *command); +extern void bfd_peer_sendmsg(struct zclient *zclient, struct bfd_info *bfd_info, + int family, void *dst_ip, void *src_ip, + char *if_name, int ttl, int multihop, int command, + int set_flag, vrf_id_t vrf_id); -extern const char * -bfd_get_command_dbg_str(int command); +extern const char *bfd_get_command_dbg_str(int command); -extern struct interface * -bfd_get_peer_info (struct stream *s, struct prefix *dp, struct prefix *sp, - int *status, vrf_id_t vrf_id); +extern struct interface *bfd_get_peer_info(struct stream *s, struct prefix *dp, + struct prefix *sp, int *status, + vrf_id_t vrf_id); -const char * -bfd_get_status_str(int status); +const char *bfd_get_status_str(int status); -extern void -bfd_show_param(struct vty *vty, struct bfd_info *bfd_info, int bfd_tag, - int extra_space, u_char use_json, json_object *json_obj); +extern void bfd_show_param(struct vty *vty, struct bfd_info *bfd_info, + int bfd_tag, int extra_space, u_char use_json, + json_object *json_obj); -extern void -bfd_show_info(struct vty *vty, struct bfd_info *bfd_info, int multihop, - int extra_space, u_char use_json, json_object *json_obj); +extern void bfd_show_info(struct vty *vty, struct bfd_info *bfd_info, + int multihop, int extra_space, u_char use_json, + json_object *json_obj); -extern void -bfd_client_sendmsg (struct zclient *zclient, int command); +extern void bfd_client_sendmsg(struct zclient *zclient, int command); -extern void -bfd_gbl_init(void); +extern void bfd_gbl_init(void); -extern void -bfd_gbl_exit(void); +extern void bfd_gbl_exit(void); #endif /* _ZEBRA_BFD_H */ |