summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_interface.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 21:13:34 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 21:13:34 +0200
commitd7c0a89a3a5697783a6dd89333ab660074790890 (patch)
treeeefa73e502f919b524b8a345437260d4acc23083 /ospf6d/ospf6_interface.h
parenttools, doc: update checkpatch for u_int_* (diff)
downloadfrr-d7c0a89a3a5697783a6dd89333ab660074790890.tar.xz
frr-d7c0a89a3a5697783a6dd89333ab660074790890.zip
*: 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 'ospf6d/ospf6_interface.h')
-rw-r--r--ospf6d/ospf6_interface.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/ospf6d/ospf6_interface.h b/ospf6d/ospf6_interface.h
index 9b9952beb..553e89a22 100644
--- a/ospf6d/ospf6_interface.h
+++ b/ospf6d/ospf6_interface.h
@@ -48,50 +48,50 @@ struct ospf6_interface {
/* Interface ID; use interface->ifindex */
/* ospf6 instance id */
- u_char instance_id;
+ uint8_t instance_id;
/* I/F transmission delay */
- u_int32_t transdelay;
+ uint32_t transdelay;
/* Network Type */
- u_char type;
+ uint8_t type;
/* Router Priority */
- u_char priority;
+ uint8_t priority;
/* Time Interval */
- u_int16_t hello_interval;
- u_int16_t dead_interval;
- u_int32_t rxmt_interval;
+ uint16_t hello_interval;
+ uint16_t dead_interval;
+ uint32_t rxmt_interval;
- u_int32_t state_change;
+ uint32_t state_change;
/* Cost */
- u_int32_t cost;
+ uint32_t cost;
/* I/F MTU */
- u_int32_t ifmtu;
+ uint32_t ifmtu;
/* Configured MTU */
- u_int32_t c_ifmtu;
+ uint32_t c_ifmtu;
/* Interface State */
- u_char state;
+ uint8_t state;
/* Interface socket setting trial counter, resets on success */
- u_char sso_try_cnt;
+ uint8_t sso_try_cnt;
/* OSPF6 Interface flag */
char flag;
/* MTU mismatch check */
- u_char mtu_ignore;
+ uint8_t mtu_ignore;
/* Decision of DR Election */
- u_int32_t drouter;
- u_int32_t bdrouter;
- u_int32_t prev_drouter;
- u_int32_t prev_bdrouter;
+ uint32_t drouter;
+ uint32_t bdrouter;
+ uint32_t prev_drouter;
+ uint32_t prev_bdrouter;
/* Linklocal LSA Database: includes Link-LSA */
struct ospf6_lsdb *lsdb;
@@ -119,17 +119,17 @@ struct ospf6_interface {
void *bfd_info;
/* Statistics Fields */
- u_int32_t hello_in;
- u_int32_t hello_out;
- u_int32_t db_desc_in;
- u_int32_t db_desc_out;
- u_int32_t ls_req_in;
- u_int32_t ls_req_out;
- u_int32_t ls_upd_in;
- u_int32_t ls_upd_out;
- u_int32_t ls_ack_in;
- u_int32_t ls_ack_out;
- u_int32_t discarded;
+ uint32_t hello_in;
+ uint32_t hello_out;
+ uint32_t db_desc_in;
+ uint32_t db_desc_out;
+ uint32_t ls_req_in;
+ uint32_t ls_req_out;
+ uint32_t ls_upd_in;
+ uint32_t ls_upd_out;
+ uint32_t ls_ack_in;
+ uint32_t ls_ack_out;
+ uint32_t discarded;
QOBJ_FIELDS
};