Commit 200ce96e5601391a6d97c87067edf21fa94fb74e

Authored by David S. Miller
1 parent 19bd62441c

xfrm: Const'ify selector argument to xfrm_selector_match()

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -845,7 +845,7 @@
845 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 849 const struct flowi *fl,
850 850 unsigned short family);
851 851  
net/xfrm/xfrm_policy.c
... ... @@ -58,7 +58,7 @@
58 58 int dir);
59 59  
60 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 63 return addr_match(&fl->fl4_dst, &sel->daddr, sel->prefixlen_d) &&
64 64 addr_match(&fl->fl4_src, &sel->saddr, sel->prefixlen_s) &&
... ... @@ -69,7 +69,7 @@
69 69 }
70 70  
71 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 74 return addr_match(&fl->fl6_dst, &sel->daddr, sel->prefixlen_d) &&
75 75 addr_match(&fl->fl6_src, &sel->saddr, sel->prefixlen_s) &&
... ... @@ -79,7 +79,7 @@
79 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 83 unsigned short family)
84 84 {
85 85 switch (family) {