summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorMike RE Mallin <mremallin@gmail.com>2024-05-31 10:08:59 -0400
committerMike RE Mallin <mremallin@gmail.com>2024-05-31 10:27:22 -0400
commitf4f19cc20f73c692a7eead14d4c82740576ea059 (patch)
tree5ed78f6fe31ccd6676fdbc8860b72d3ff037d2fe /lib/prefix.h
parentb69ec60dc6e1f7942a5818b9d7154c1caa0f4441 (diff)
lib, zebra: Update prefix_sg structure for IPv6 group support
Signed-off-by: Mike RE Mallin <mremallin@gmail.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index 14f2695933..48388cd019 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -282,7 +282,7 @@ struct prefix_fs {
struct prefix_sg {
uint8_t family;
uint16_t prefixlen;
- struct in_addr src __attribute__((aligned(8)));
+ struct ipaddr src __attribute__((aligned(8)));
struct in_addr grp;
};
@@ -415,6 +415,8 @@ extern int str2prefix(const char *string, struct prefix *prefix);
#define PREFIX2STR_BUFFER PREFIX_STRLEN
+extern void prefix_mcast_ip_dump(const char *onfail, const struct ipaddr *addr,
+ char *buf, int buf_size);
extern void prefix_mcast_inet4_dump(const char *onfail, struct in_addr addr,
char *buf, int buf_size);
extern const char *prefix_sg2str(const struct prefix_sg *sg, char *str);