diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-02-02 09:28:18 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-02-02 14:31:12 +0100 |
commit | 48e1932b90a64d5b3fd9880b34bab4fc2fe238ec (patch) | |
tree | 492d38fdd8d5a4516e7ff654c6def810d4db7af8 /bgpd/bgpd.c | |
parent | Merge pull request #7985 from donaldsharp/eigrp_uninited (diff) | |
download | frr-48e1932b90a64d5b3fd9880b34bab4fc2fe238ec.tar.xz frr-48e1932b90a64d5b3fd9880b34bab4fc2fe238ec.zip |
bgpd: Replace 65535 with UINT16_MAX
Just consistent.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index edd90d704..37403ccff 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -5216,10 +5216,10 @@ int peer_timers_set(struct peer *peer, uint32_t keepalive, uint32_t holdtime) struct peer *member; struct listnode *node, *nnode; - if (keepalive > 65535) + if (keepalive > UINT16_MAX) return BGP_ERR_INVALID_VALUE; - if (holdtime > 65535) + if (holdtime > UINT16_MAX) return BGP_ERR_INVALID_VALUE; if (holdtime < 3 && holdtime != 0) @@ -5296,7 +5296,7 @@ int peer_timers_connect_set(struct peer *peer, uint32_t connect) struct peer *member; struct listnode *node, *nnode; - if (connect > 65535) + if (connect > UINT16_MAX) return BGP_ERR_INVALID_VALUE; /* Set flag and configuration on peer. */ |