diff options
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 2732967ee6..6801280012 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -292,15 +292,6 @@ int zebra_check_addr(const struct prefix *p) return 1; } -/** - * copy_nexthop - copy a nexthop to the rib structure. - */ -void route_entry_copy_nexthops(struct route_entry *re, struct nexthop *nh) -{ - assert(!re->nhe->nhg.nexthop); - copy_nexthops(&re->nhe->nhg.nexthop, nh, NULL); -} - static void route_entry_attach_ref(struct route_entry *re, struct nhg_hash_entry *new) { @@ -381,7 +372,7 @@ struct route_entry *rib_match(afi_t afi, safi_t safi, vrf_id_t vrf_id, if (!table) return 0; - memset(&p, 0, sizeof(struct prefix)); + memset(&p, 0, sizeof(p)); p.family = afi; if (afi == AFI_IP) { p.u.prefix4 = addr->ipv4; |
