diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-09-25 08:02:42 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-11-25 13:12:10 -0500 |
| commit | 67526c4b8c6a4f4757d617ea9fd54d7f95a540d0 (patch) | |
| tree | 1a4a0c28402a42ed9fe86fcbaece791d3546d2fc | |
| parent | 735809756f8389b54098f4abcb42c233bb1f1dcd (diff) | |
lib: Remove route_node_match_ipv[4|6] not being used
These functions are not being used. Let's just remove
them from our code base.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | lib/table.c | 26 | ||||
| -rw-r--r-- | lib/table.h | 4 |
2 files changed, 0 insertions, 30 deletions
diff --git a/lib/table.c b/lib/table.c index 3bf93894ec..cf185de226 100644 --- a/lib/table.c +++ b/lib/table.c @@ -208,32 +208,6 @@ struct route_node *route_node_match(struct route_table *table, return NULL; } -struct route_node *route_node_match_ipv4(struct route_table *table, - const struct in_addr *addr) -{ - struct prefix_ipv4 p; - - memset(&p, 0, sizeof(p)); - p.family = AF_INET; - p.prefixlen = IPV4_MAX_BITLEN; - p.prefix = *addr; - - return route_node_match(table, (struct prefix *)&p); -} - -struct route_node *route_node_match_ipv6(struct route_table *table, - const struct in6_addr *addr) -{ - struct prefix_ipv6 p; - - memset(&p, 0, sizeof(p)); - p.family = AF_INET6; - p.prefixlen = IPV6_MAX_BITLEN; - p.prefix = *addr; - - return route_node_match(table, &p); -} - /* Lookup same prefix node. Return NULL when we can't find route. */ struct route_node *route_node_lookup(struct route_table *table, union prefixconstptr pu) diff --git a/lib/table.h b/lib/table.h index acfc876154..c31be2b688 100644 --- a/lib/table.h +++ b/lib/table.h @@ -195,10 +195,6 @@ extern struct route_node *route_node_lookup_maynull(struct route_table *table, union prefixconstptr pu); extern struct route_node *route_node_match(struct route_table *table, union prefixconstptr pu); -extern struct route_node *route_node_match_ipv4(struct route_table *table, - const struct in_addr *addr); -extern struct route_node *route_node_match_ipv6(struct route_table *table, - const struct in6_addr *addr); extern unsigned long route_table_count(struct route_table *table); |
