diff options
-rw-r--r-- | include/net/xfrm.h | 2 | ||||
-rw-r--r-- | net/xfrm/xfrm_policy.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 46f44703b611..567f08b559a1 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -845,7 +845,7 @@ __be16 xfrm_flowi_dport(const struct flowi *fl) | |||
845 | return port; | 845 | return port; |
846 | } | 846 | } |
847 | 847 | ||
848 | extern int xfrm_selector_match(struct xfrm_selector *sel, | 848 | extern int xfrm_selector_match(const struct xfrm_selector *sel, |
849 | const struct flowi *fl, | 849 | const struct flowi *fl, |
850 | unsigned short family); | 850 | unsigned short family); |
851 | 851 | ||
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 28c865adf609..4827c8db864d 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -58,7 +58,7 @@ static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, | |||
58 | int dir); | 58 | int dir); |
59 | 59 | ||
60 | static inline int | 60 | static inline int |
61 | __xfrm4_selector_match(struct xfrm_selector *sel, const struct flowi *fl) | 61 | __xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) |
62 | { | 62 | { |
63 | return addr_match(&fl->fl4_dst, &sel->daddr, sel->prefixlen_d) && | 63 | return addr_match(&fl->fl4_dst, &sel->daddr, sel->prefixlen_d) && |
64 | addr_match(&fl->fl4_src, &sel->saddr, sel->prefixlen_s) && | 64 | addr_match(&fl->fl4_src, &sel->saddr, sel->prefixlen_s) && |
@@ -69,7 +69,7 @@ __xfrm4_selector_match(struct xfrm_selector *sel, const struct flowi *fl) | |||
69 | } | 69 | } |
70 | 70 | ||
71 | static inline int | 71 | static inline int |
72 | __xfrm6_selector_match(struct xfrm_selector *sel, const struct flowi *fl) | 72 | __xfrm6_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) |
73 | { | 73 | { |
74 | return addr_match(&fl->fl6_dst, &sel->daddr, sel->prefixlen_d) && | 74 | return addr_match(&fl->fl6_dst, &sel->daddr, sel->prefixlen_d) && |
75 | addr_match(&fl->fl6_src, &sel->saddr, sel->prefixlen_s) && | 75 | addr_match(&fl->fl6_src, &sel->saddr, sel->prefixlen_s) && |
@@ -79,7 +79,7 @@ __xfrm6_selector_match(struct xfrm_selector *sel, const struct flowi *fl) | |||
79 | (fl->oif == sel->ifindex || !sel->ifindex); | 79 | (fl->oif == sel->ifindex || !sel->ifindex); |
80 | } | 80 | } |
81 | 81 | ||
82 | int xfrm_selector_match(struct xfrm_selector *sel, const struct flowi *fl, | 82 | int xfrm_selector_match(const struct xfrm_selector *sel, const struct flowi *fl, |
83 | unsigned short family) | 83 | unsigned short family) |
84 | { | 84 | { |
85 | switch (family) { | 85 | switch (family) { |