mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 08:50:26 +00:00
zebra: clean up const use in bsd build
Missed a bsd/routing socket change when enforcing use of const in some kernel-facing api calls. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
123214efb8
commit
c886868f64
@ -88,7 +88,8 @@ static int kernel_rtm_add_labels(struct mpls_label_stack *nh_label,
|
||||
#endif
|
||||
|
||||
/* Interface between zebra message and rtm message. */
|
||||
static int kernel_rtm_ipv4(int cmd, struct prefix *p, struct route_entry *re)
|
||||
static int kernel_rtm_ipv4(int cmd, const struct prefix *p,
|
||||
struct route_entry *re)
|
||||
|
||||
{
|
||||
struct sockaddr_in *mask = NULL;
|
||||
@ -272,7 +273,8 @@ static int sin6_masklen(struct in6_addr mask)
|
||||
#endif /* SIN6_LEN */
|
||||
|
||||
/* Interface between zebra message and rtm message. */
|
||||
static int kernel_rtm_ipv6(int cmd, struct prefix *p, struct route_entry *re)
|
||||
static int kernel_rtm_ipv6(int cmd, const struct prefix *p,
|
||||
struct route_entry *re)
|
||||
{
|
||||
struct sockaddr_in6 *mask;
|
||||
struct sockaddr_in6 sin_dest, sin_mask, sin_gate;
|
||||
@ -374,7 +376,7 @@ static int kernel_rtm_ipv6(int cmd, struct prefix *p, struct route_entry *re)
|
||||
return 0; /*XXX*/
|
||||
}
|
||||
|
||||
static int kernel_rtm(int cmd, struct prefix *p, struct route_entry *re)
|
||||
static int kernel_rtm(int cmd, const struct prefix *p, struct route_entry *re)
|
||||
{
|
||||
switch (PREFIX_FAMILY(p)) {
|
||||
case AF_INET:
|
||||
|
Loading…
Reference in New Issue
Block a user