summaryrefslogtreecommitdiff
path: root/bgpd/bgp_open.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 15:13:34 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 15:13:34 -0400
commitd7c0a89a3a5697783a6dd89333ab660074790890 (patch)
treeeefa73e502f919b524b8a345437260d4acc23083 /bgpd/bgp_open.h
parent28ac5a038101c66e4275a9b1ef6fb37b4f74fb6a (diff)
*: use C99 standard fixed-width integer types
The following types are nonstandard: - u_char - u_short - u_int - u_long - u_int8_t - u_int16_t - u_int32_t Replace them with the C99 standard types: - uint8_t - unsigned short - unsigned int - unsigned long - uint8_t - uint16_t - uint32_t Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_open.h')
-rw-r--r--bgpd/bgp_open.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h
index 83b79a589a..c92fd9b0a7 100644
--- a/bgpd/bgp_open.h
+++ b/bgpd/bgp_open.h
@@ -23,14 +23,14 @@
/* Standard header for capability TLV */
struct capability_header {
- u_char code;
- u_char length;
+ uint8_t code;
+ uint8_t length;
};
/* Generic MP capability data */
struct capability_mp_data {
uint16_t afi; /* iana_afi_t */
- u_char reserved;
+ uint8_t reserved;
uint8_t safi; /* iana_safi_t */
};
@@ -41,11 +41,11 @@ struct capability_as4 {
struct graceful_restart_af {
afi_t afi;
safi_t safi;
- u_char flag;
+ uint8_t flag;
};
struct capability_gr {
- u_int16_t restart_flag_time;
+ uint16_t restart_flag_time;
struct graceful_restart_af gr[];
};
@@ -93,10 +93,10 @@ struct capability_gr {
#define RESTART_R_BIT 0x8000
#define RESTART_F_BIT 0x80
-extern int bgp_open_option_parse(struct peer *, u_char, int *);
+extern int bgp_open_option_parse(struct peer *, uint8_t, int *);
extern void bgp_open_capability(struct stream *, struct peer *);
-extern void bgp_capability_vty_out(struct vty *, struct peer *, u_char,
+extern void bgp_capability_vty_out(struct vty *, struct peer *, uint8_t,
json_object *);
-extern as_t peek_for_as4_capability(struct peer *, u_char);
+extern as_t peek_for_as4_capability(struct peer *, uint8_t);
#endif /* _QUAGGA_BGP_OPEN_H */