diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-01-30 22:11:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 22:27:20 -0500 |
commit | 533cb5b0a63f28ecab5503cfceb77e641fa7f7c4 (patch) | |
tree | 62e7d7c65776c5fb30a8ff10fb3049e63257331c /include/net | |
parent | 2216b48376c40cf6984398d478a01b55e76c5434 (diff) |
[XFRM]: constify 'struct xfrm_type'
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/xfrm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 34d373775a0e..ac72116636ca 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -202,7 +202,7 @@ struct xfrm_state | |||
202 | 202 | ||
203 | /* Reference to data common to all the instances of this | 203 | /* Reference to data common to all the instances of this |
204 | * transformer. */ | 204 | * transformer. */ |
205 | struct xfrm_type *type; | 205 | const struct xfrm_type *type; |
206 | struct xfrm_mode *inner_mode; | 206 | struct xfrm_mode *inner_mode; |
207 | struct xfrm_mode *outer_mode; | 207 | struct xfrm_mode *outer_mode; |
208 | 208 | ||
@@ -279,7 +279,7 @@ struct xfrm_state_afinfo { | |||
279 | unsigned int proto; | 279 | unsigned int proto; |
280 | unsigned int eth_proto; | 280 | unsigned int eth_proto; |
281 | struct module *owner; | 281 | struct module *owner; |
282 | struct xfrm_type *type_map[IPPROTO_MAX]; | 282 | const struct xfrm_type *type_map[IPPROTO_MAX]; |
283 | struct xfrm_mode *mode_map[XFRM_MODE_MAX]; | 283 | struct xfrm_mode *mode_map[XFRM_MODE_MAX]; |
284 | int (*init_flags)(struct xfrm_state *x); | 284 | int (*init_flags)(struct xfrm_state *x); |
285 | void (*init_tempsel)(struct xfrm_state *x, struct flowi *fl, | 285 | void (*init_tempsel)(struct xfrm_state *x, struct flowi *fl, |
@@ -322,8 +322,8 @@ struct xfrm_type | |||
322 | u32 (*get_mtu)(struct xfrm_state *, int size); | 322 | u32 (*get_mtu)(struct xfrm_state *, int size); |
323 | }; | 323 | }; |
324 | 324 | ||
325 | extern int xfrm_register_type(struct xfrm_type *type, unsigned short family); | 325 | extern int xfrm_register_type(const struct xfrm_type *type, unsigned short family); |
326 | extern int xfrm_unregister_type(struct xfrm_type *type, unsigned short family); | 326 | extern int xfrm_unregister_type(const struct xfrm_type *type, unsigned short family); |
327 | 327 | ||
328 | struct xfrm_mode { | 328 | struct xfrm_mode { |
329 | /* | 329 | /* |