diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-22 20:42:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-22 20:42:56 -0500 |
commit | e8a4e37716dbc964e1cd18bca1a62fbd11805c1d (patch) | |
tree | e194b7fba8a2e0e4168da5dc988c894bfb3502df /include | |
parent | 86fce3ba1e731cf6d97a4157a192ffa60dc7ec0b (diff) |
xfrm: Mark flowi arg const in key extraction helpers.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/xfrm.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 1f6e8a0eb544..2de3dae3d297 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -790,7 +790,7 @@ static __inline__ int addr_match(void *token1, void *token2, int prefixlen) | |||
790 | } | 790 | } |
791 | 791 | ||
792 | static __inline__ | 792 | static __inline__ |
793 | __be16 xfrm_flowi_sport(struct flowi *fl) | 793 | __be16 xfrm_flowi_sport(const struct flowi *fl) |
794 | { | 794 | { |
795 | __be16 port; | 795 | __be16 port; |
796 | switch(fl->proto) { | 796 | switch(fl->proto) { |
@@ -817,7 +817,7 @@ __be16 xfrm_flowi_sport(struct flowi *fl) | |||
817 | } | 817 | } |
818 | 818 | ||
819 | static __inline__ | 819 | static __inline__ |
820 | __be16 xfrm_flowi_dport(struct flowi *fl) | 820 | __be16 xfrm_flowi_dport(const struct flowi *fl) |
821 | { | 821 | { |
822 | __be16 port; | 822 | __be16 port; |
823 | switch(fl->proto) { | 823 | switch(fl->proto) { |
@@ -1127,7 +1127,7 @@ static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir, | |||
1127 | #endif | 1127 | #endif |
1128 | 1128 | ||
1129 | static __inline__ | 1129 | static __inline__ |
1130 | xfrm_address_t *xfrm_flowi_daddr(struct flowi *fl, unsigned short family) | 1130 | xfrm_address_t *xfrm_flowi_daddr(const struct flowi *fl, unsigned short family) |
1131 | { | 1131 | { |
1132 | switch (family){ | 1132 | switch (family){ |
1133 | case AF_INET: | 1133 | case AF_INET: |
@@ -1139,7 +1139,7 @@ xfrm_address_t *xfrm_flowi_daddr(struct flowi *fl, unsigned short family) | |||
1139 | } | 1139 | } |
1140 | 1140 | ||
1141 | static __inline__ | 1141 | static __inline__ |
1142 | xfrm_address_t *xfrm_flowi_saddr(struct flowi *fl, unsigned short family) | 1142 | xfrm_address_t *xfrm_flowi_saddr(const struct flowi *fl, unsigned short family) |
1143 | { | 1143 | { |
1144 | switch (family){ | 1144 | switch (family){ |
1145 | case AF_INET: | 1145 | case AF_INET: |
@@ -1151,7 +1151,7 @@ xfrm_address_t *xfrm_flowi_saddr(struct flowi *fl, unsigned short family) | |||
1151 | } | 1151 | } |
1152 | 1152 | ||
1153 | static __inline__ | 1153 | static __inline__ |
1154 | void xfrm_flowi_addr_get(struct flowi *fl, | 1154 | void xfrm_flowi_addr_get(const struct flowi *fl, |
1155 | xfrm_address_t *saddr, xfrm_address_t *daddr, | 1155 | xfrm_address_t *saddr, xfrm_address_t *daddr, |
1156 | unsigned short family) | 1156 | unsigned short family) |
1157 | { | 1157 | { |
@@ -1204,7 +1204,7 @@ xfrm_state_addr_check(struct xfrm_state *x, | |||
1204 | } | 1204 | } |
1205 | 1205 | ||
1206 | static __inline__ int | 1206 | static __inline__ int |
1207 | xfrm_state_addr_flow_check(struct xfrm_state *x, struct flowi *fl, | 1207 | xfrm_state_addr_flow_check(struct xfrm_state *x, const struct flowi *fl, |
1208 | unsigned short family) | 1208 | unsigned short family) |
1209 | { | 1209 | { |
1210 | switch (family) { | 1210 | switch (family) { |