diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-22 17:14:32 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-22 17:14:32 -0400 |
| commit | 35518f541959416be5c7624a1041226a04093f1b (patch) | |
| tree | 83b8e6abe7e8fa331bcedc2986c6cfbc053e6ec8 | |
| parent | 3f1ba9b83627689afed6a073502af4c67c3e581a (diff) | |
lib: make is_default_host_route use a const struct prefix
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | lib/prefix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index b01f7d1fdc..51b3dacb8d 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -531,7 +531,7 @@ static inline int is_host_route(struct prefix *p) 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) { return (p->u.prefix4.s_addr == INADDR_ANY && |
