summaryrefslogtreecommitdiff
path: root/bgpd/bgp_flowspec_util.c
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2020-03-22 17:32:31 -0700
committerGitHub <noreply@github.com>2020-03-22 17:32:31 -0700
commit544955aa78d0064ea68d39e1a6774a18be377ff1 (patch)
tree8d27da1454aab204a57d4ff30a73cdfef683be8e /bgpd/bgp_flowspec_util.c
parent8034b3c8372c3bbbbe3c7bf185b226de40752440 (diff)
parentbd494ec5ed8124991be72fe24e61189429d72c2c (diff)
Merge pull request #6070 from donaldsharp/bgp_const_struct_work
bgpd: More `const struct prefix` work
Diffstat (limited to 'bgpd/bgp_flowspec_util.c')
-rw-r--r--bgpd/bgp_flowspec_util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_flowspec_util.c b/bgpd/bgp_flowspec_util.c
index c117d08bfb..79d5268c7d 100644
--- a/bgpd/bgp_flowspec_util.c
+++ b/bgpd/bgp_flowspec_util.c
@@ -76,9 +76,8 @@ static int bgp_flowspec_call_non_opaque_decode(uint8_t *nlri_content, int len,
return ret;
}
-bool bgp_flowspec_contains_prefix(struct prefix *pfs,
- struct prefix *input,
- int prefix_check)
+bool bgp_flowspec_contains_prefix(const struct prefix *pfs,
+ struct prefix *input, int prefix_check)
{
uint32_t offset = 0;
int type;