diff options
| author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-04-20 07:34:03 -0700 |
|---|---|---|
| committer | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-04-21 07:24:20 -0700 |
| commit | fef327404f3171eb74f27f67794b65569ddcb95f (patch) | |
| tree | 82fbd7b6e321140356264ba7feb41dede7500e2a | |
| parent | aa0677b4b6ec5d074f933edc75bdd21354fe3e76 (diff) | |
lib: two extra bytes were being allocated for the SG string
Fixup in response to Jafar's review comments.
This is actually old code moved in from pimd to lib. But the fixup does
make sense.
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
| -rw-r--r-- | lib/prefix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index ffc973f6ea..d3c387e102 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -323,12 +323,12 @@ union prefixconstptr { /* * Longest possible length of a (S,G) string is 36 bytes - * 123.123.123.123 = 16 * 2 + * 123.123.123.123 = 15 * 2 * (,) = 3 * NULL Character at end = 1 * (123.123.123.123,123.123.123.123) */ -#define PREFIX_SG_STR_LEN 36 +#define PREFIX_SG_STR_LEN 34 /* Max bit/byte length of IPv4 address. */ #define IPV4_MAX_BYTELEN 4 |
