diff options
Diffstat (limited to 'pimd/pim_str.h')
| -rw-r--r-- | pimd/pim_str.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pimd/pim_str.h b/pimd/pim_str.h index d2af0110a4..97263e6a37 100644 --- a/pimd/pim_str.h +++ b/pimd/pim_str.h @@ -25,6 +25,20 @@ #include <sys/socket.h> #include <arpa/inet.h> +#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 |
