summaryrefslogtreecommitdiff
path: root/pimd/pim_str.h
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_str.h')
-rw-r--r--pimd/pim_str.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pimd/pim_str.h b/pimd/pim_str.h
index 15f5227de8..da72573570 100644
--- a/pimd/pim_str.h
+++ b/pimd/pim_str.h
@@ -28,8 +28,18 @@
#include <prefix.h>
+/*
+ * Longest possible length of a (S,G) string is 36 bytes
+ * 123.123.123.123 = 16 * 2
+ * (,) = 3
+ * NULL Character at end = 1
+ * (123.123.123.123,123,123,123,123)
+ */
+#define PIM_SG_LEN 36
+
void pim_addr_dump (const char *onfail, struct prefix *p, char *buf, int buf_size);
void pim_inet4_dump(const char *onfail, struct in_addr addr, char *buf, int buf_size);
char *pim_str_sg_dump (const struct prefix_sg *sg);
+char *pim_str_sg_set (const struct prefix_sg *sg, char *sg_str);
#endif