mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 17:24:26 +00:00
Merge pull request #11201 from donaldsharp/unused_in_netlink_compiles
Remove some unused functions in zebra
This commit is contained in:
commit
8f5e706a2f
@ -48,6 +48,7 @@ void ifreq_set_name(struct ifreq *ifreq, struct interface *ifp)
|
||||
strlcpy(ifreq->ifr_name, ifp->name, sizeof(ifreq->ifr_name));
|
||||
}
|
||||
|
||||
#ifndef HAVE_NETLINK
|
||||
/* call ioctl system call */
|
||||
int if_ioctl(unsigned long request, caddr_t buffer)
|
||||
{
|
||||
@ -73,6 +74,7 @@ int if_ioctl(unsigned long request, caddr_t buffer)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* call ioctl system call */
|
||||
int vrf_if_ioctl(unsigned long request, caddr_t buffer, vrf_id_t vrf_id)
|
||||
@ -127,7 +129,6 @@ static int if_ioctl_ipv6(unsigned long request, caddr_t buffer)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* ! HAVE_NETLINK */
|
||||
|
||||
/*
|
||||
* get interface metric
|
||||
@ -174,6 +175,7 @@ void if_get_mtu(struct interface *ifp)
|
||||
ifp->mtu6 = ifp->mtu = -1;
|
||||
#endif
|
||||
}
|
||||
#endif /* ! HAVE_NETLINK */
|
||||
|
||||
/*
|
||||
* Handler for interface address programming via the zebra dplane,
|
||||
@ -217,13 +219,6 @@ enum zebra_dplane_result kernel_address_update_ctx(
|
||||
ZEBRA_DPLANE_REQUEST_SUCCESS : ZEBRA_DPLANE_REQUEST_FAILURE);
|
||||
}
|
||||
|
||||
#endif /* !HAVE_NETLINK */
|
||||
|
||||
#ifdef HAVE_NETLINK
|
||||
|
||||
/* TODO -- remove; no use of these apis with netlink any longer */
|
||||
|
||||
#else /* ! HAVE_NETLINK */
|
||||
#ifdef HAVE_STRUCT_IFALIASREQ
|
||||
|
||||
/*
|
||||
|
@ -357,8 +357,6 @@ enum rib_update_event {
|
||||
RIB_UPDATE_MAX
|
||||
};
|
||||
|
||||
extern void route_entry_copy_nexthops(struct route_entry *re,
|
||||
struct nexthop *nh);
|
||||
int route_entry_update_nhe(struct route_entry *re,
|
||||
struct nhg_hash_entry *new_nhghe);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user