diff options
author | paul <paul> | 2004-10-11 13:00:30 +0200 |
---|---|---|
committer | paul <paul> | 2004-10-11 13:00:30 +0200 |
commit | 6c83567192ada1a66822c3f35580ce6a85f51ac9 (patch) | |
tree | 39ef09859fae79b7c7e234a671bf2e04f8e9264a /ospfd/ospf_lsa.h | |
parent | 2004-10-11 Paul Jakma <paul@dishone.st> (diff) | |
download | frr-6c83567192ada1a66822c3f35580ce6a85f51ac9.tar.xz frr-6c83567192ada1a66822c3f35580ce6a85f51ac9.zip |
2004-10-11 Paul Jakma <paul@dishone.st>
* (global) Const char update and signed/unsigned fixes.
* (various headers) size defines should be unsigned.
* ospf_interface.h: remove duplicated defines, include the
authoritative header - though, these defines should probably
be moved to a dedicated header, or ospfd.h.
* ospf_lsa.h: (struct lsa) ls_seqnum should be unsigned.
* ospf_packet.c: (ospf_write) cast result of shift to unsigned.
Diffstat (limited to 'ospfd/ospf_lsa.h')
-rw-r--r-- | ospfd/ospf_lsa.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_lsa.h b/ospfd/ospf_lsa.h index 6d60b5793..6d10e645d 100644 --- a/ospfd/ospf_lsa.h +++ b/ospfd/ospf_lsa.h @@ -45,8 +45,8 @@ #define OSPF_OPAQUE_AREA_LSA 10 #define OSPF_OPAQUE_AS_LSA 11 -#define OSPF_LSA_HEADER_SIZE 20 -#define OSPF_MAX_LSA_SIZE 1500 +#define OSPF_LSA_HEADER_SIZE 20U +#define OSPF_MAX_LSA_SIZE 1500U /* AS-external-LSA refresh method. */ #define LSA_REFRESH_IF_CHANGED 0 @@ -60,7 +60,7 @@ struct lsa_header u_char type; struct in_addr id; struct in_addr adv_router; - int ls_seqnum; + u_int32_t ls_seqnum; u_int16_t checksum; u_int16_t length; }; |