aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-22 20:42:56 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-22 20:42:56 -0500
commite8a4e37716dbc964e1cd18bca1a62fbd11805c1d (patch)
treee194b7fba8a2e0e4168da5dc988c894bfb3502df /include/net/xfrm.h
parent86fce3ba1e731cf6d97a4157a192ffa60dc7ec0b (diff)
xfrm: Mark flowi arg const in key extraction helpers.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 1f6e8a0eb54..2de3dae3d29 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
792static __inline__ 792static __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
819static __inline__ 819static __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
1129static __inline__ 1129static __inline__
1130xfrm_address_t *xfrm_flowi_daddr(struct flowi *fl, unsigned short family) 1130xfrm_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
1141static __inline__ 1141static __inline__
1142xfrm_address_t *xfrm_flowi_saddr(struct flowi *fl, unsigned short family) 1142xfrm_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
1153static __inline__ 1153static __inline__
1154void xfrm_flowi_addr_get(struct flowi *fl, 1154void 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
1206static __inline__ int 1206static __inline__ int
1207xfrm_state_addr_flow_check(struct xfrm_state *x, struct flowi *fl, 1207xfrm_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) {