diff options
| author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-03-19 11:36:41 -0700 |
|---|---|---|
| committer | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-04-20 08:33:20 -0700 |
| commit | c6b6b53b294ae37e35f802769a6da21a88f63e18 (patch) | |
| tree | 32d383a4c109206d71d609d8c9916a44ea21dfda /pimd/pim_str.h | |
| parent | 9718c54ef44f46e97ecb4aa4c570f4337113322c (diff) | |
lib: move SG prefix2str APIs from pimd to lib
This is to allow zebra to use these APIs instead of re-defining.
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_str.h')
| -rw-r--r-- | pimd/pim_str.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_str.h b/pimd/pim_str.h index 12a33a810f..94ba324154 100644 --- a/pimd/pim_str.h +++ b/pimd/pim_str.h @@ -33,13 +33,14 @@ * NULL Character at end = 1 * (123.123.123.123,123,123,123,123) */ -#define PIM_SG_LEN 36 +#define PIM_SG_LEN PREFIX_SG_STR_LEN +#define pim_inet4_dump prefix_mcast_inet4_dump +#define pim_str_sg_set prefix_sg2str 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 |
