summaryrefslogtreecommitdiffstats
path: root/pimd/pim_vty.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-10-20 16:09:30 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:11 +0100
commiteaa54bdb6729bbe97d938e70ee5580dcad666f0f (patch)
treed2044c0458b40729fd1bcaa31340079784b362be /pimd/pim_vty.c
parentpimd: add support for IGMPv2 (diff)
downloadfrr-eaa54bdb6729bbe97d938e70ee5580dcad666f0f.tar.xz
frr-eaa54bdb6729bbe97d938e70ee5580dcad666f0f.zip
pimd: replace grp_str[100] with grp_str[INET_ADDRSTRLEN]
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vty.c')
-rw-r--r--pimd/pim_vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c
index 644fb8e69..f5cdc2bd2 100644
--- a/pimd/pim_vty.c
+++ b/pimd/pim_vty.c
@@ -160,7 +160,7 @@ int pim_global_config_write(struct vty *vty)
vty_out(vty, "!%s", VTY_NEWLINE);
++writes;
for (ALL_LIST_ELEMENTS_RO(qpim_ssmpingd_list, node, ss)) {
- char source_str[100];
+ char source_str[INET_ADDRSTRLEN];
pim_inet4_dump("<src?>", ss->source_addr, source_str, sizeof(source_str));
vty_out(vty, "ip ssmpingd %s%s", source_str, VTY_NEWLINE);
++writes;
@@ -247,8 +247,8 @@ int pim_interface_config_write(struct vty *vty)
struct listnode *node;
struct igmp_join *ij;
for (ALL_LIST_ELEMENTS_RO(pim_ifp->igmp_join_list, node, ij)) {
- char group_str[100];
- char source_str[100];
+ char group_str[INET_ADDRSTRLEN];
+ char source_str[INET_ADDRSTRLEN];
pim_inet4_dump("<grp?>", ij->group_addr, group_str, sizeof(group_str));
pim_inet4_dump("<src?>", ij->source_addr, source_str, sizeof(source_str));
vty_out(vty, " ip igmp join %s %s%s",