diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-02-02 10:28:18 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-02-02 15:31:12 +0200 |
| commit | 48e1932b90a64d5b3fd9880b34bab4fc2fe238ec (patch) | |
| tree | 492d38fdd8d5a4516e7ff654c6def810d4db7af8 /bgpd/bgp_aspath.h | |
| parent | 8adc13a85495a0bdc2168719bb56548561d27c75 (diff) | |
bgpd: Replace 65535 with UINT16_MAX
Just consistent.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_aspath.h')
| -rw-r--r-- | bgpd/bgp_aspath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_aspath.h b/bgpd/bgp_aspath.h index 9df352fcd6..4b16818167 100644 --- a/bgpd/bgp_aspath.h +++ b/bgpd/bgp_aspath.h @@ -32,7 +32,7 @@ /* Private AS range defined in RFC2270. */ #define BGP_PRIVATE_AS_MIN 64512U -#define BGP_PRIVATE_AS_MAX 65535U +#define BGP_PRIVATE_AS_MAX UINT16_MAX /* Private 4 byte AS range defined in RFC6996. */ #define BGP_PRIVATE_AS4_MIN 4200000000U @@ -40,7 +40,7 @@ /* we leave BGP_AS_MAX as the 16bit AS MAX number. */ #define BGP_AS_ZERO 0 -#define BGP_AS_MAX 65535U +#define BGP_AS_MAX UINT16_MAX #define BGP_AS4_MAX 4294967295U /* Transition 16Bit AS as defined by IANA */ #define BGP_AS_TRANS 23456U |
