diff options
author | David Lamparter <equinox@diac24.net> | 2019-07-28 09:26:21 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-07-28 09:26:21 +0200 |
commit | 9c3a2171376652d1ba2276b551ad427da3ca2bbd (patch) | |
tree | 460e267253549ad9f064d441e5b75bda198869d5 /lib/prefix.h | |
parent | lib: fix prefix_cmp() return values (diff) | |
download | frr-9c3a2171376652d1ba2276b551ad427da3ca2bbd.tar.xz frr-9c3a2171376652d1ba2276b551ad427da3ca2bbd.zip |
lib: use some more transparent unions for prefixes
... so we can pass prefix_ipv4/prefix_ipv6 in.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r-- | lib/prefix.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index d57b43dac..5f88eaae0 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -410,10 +410,10 @@ extern const char *prefix2str(union prefixconstptr, char *, int); extern int prefix_match(const struct prefix *, const struct prefix *); extern int prefix_match_network_statement(const struct prefix *, const struct prefix *); -extern int prefix_same(const struct prefix *, const struct prefix *); -extern int prefix_cmp(const struct prefix *, const struct prefix *); +extern int prefix_same(union prefixconstptr, union prefixconstptr); +extern int prefix_cmp(union prefixconstptr, union prefixconstptr); extern int prefix_common_bits(const struct prefix *, const struct prefix *); -extern void prefix_copy(struct prefix *dest, const struct prefix *src); +extern void prefix_copy(union prefixptr, union prefixconstptr); extern void apply_mask(struct prefix *); extern struct prefix *sockunion2prefix(const union sockunion *dest, |