mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
lib: make is_default_host_route use a const struct prefix
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
3f1ba9b836
commit
35518f5419
@ -531,7 +531,7 @@ static inline int is_host_route(struct prefix *p)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int is_default_host_route(struct prefix *p)
|
static inline int is_default_host_route(const struct prefix *p)
|
||||||
{
|
{
|
||||||
if (p->family == AF_INET) {
|
if (p->family == AF_INET) {
|
||||||
return (p->u.prefix4.s_addr == INADDR_ANY &&
|
return (p->u.prefix4.s_addr == INADDR_ANY &&
|
||||||
|
Loading…
Reference in New Issue
Block a user