diff options
author | jamal <hadi@cyberus.ca> | 2010-02-09 08:21:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-12 16:27:48 -0500 |
commit | a63374631e7192a64648ecc6672619a7abf9ebcd (patch) | |
tree | b046b6dcbec6e995ccb87e91ac7458fe0d9b142a /include/net/xfrm.h | |
parent | c28e93040b497e895d5c41b54abef3bc8db17fa9 (diff) |
xfrm: use proper kernel types
kernel side should use uxx instead of __uxx types
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index fcee547ca7e3..0beb413c01c4 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -317,8 +317,8 @@ extern void xfrm_state_delete_tunnel(struct xfrm_state *x); | |||
317 | struct xfrm_type { | 317 | struct xfrm_type { |
318 | char *description; | 318 | char *description; |
319 | struct module *owner; | 319 | struct module *owner; |
320 | __u8 proto; | 320 | u8 proto; |
321 | __u8 flags; | 321 | u8 flags; |
322 | #define XFRM_TYPE_NON_FRAGMENT 1 | 322 | #define XFRM_TYPE_NON_FRAGMENT 1 |
323 | #define XFRM_TYPE_REPLAY_PROT 2 | 323 | #define XFRM_TYPE_REPLAY_PROT 2 |
324 | #define XFRM_TYPE_LOCAL_COADDR 4 | 324 | #define XFRM_TYPE_LOCAL_COADDR 4 |
@@ -434,24 +434,24 @@ struct xfrm_tmpl { | |||
434 | 434 | ||
435 | unsigned short encap_family; | 435 | unsigned short encap_family; |
436 | 436 | ||
437 | __u32 reqid; | 437 | u32 reqid; |
438 | 438 | ||
439 | /* Mode: transport, tunnel etc. */ | 439 | /* Mode: transport, tunnel etc. */ |
440 | __u8 mode; | 440 | u8 mode; |
441 | 441 | ||
442 | /* Sharing mode: unique, this session only, this user only etc. */ | 442 | /* Sharing mode: unique, this session only, this user only etc. */ |
443 | __u8 share; | 443 | u8 share; |
444 | 444 | ||
445 | /* May skip this transfomration if no SA is found */ | 445 | /* May skip this transfomration if no SA is found */ |
446 | __u8 optional; | 446 | u8 optional; |
447 | 447 | ||
448 | /* Skip aalgos/ealgos/calgos checks. */ | 448 | /* Skip aalgos/ealgos/calgos checks. */ |
449 | __u8 allalgs; | 449 | u8 allalgs; |
450 | 450 | ||
451 | /* Bit mask of algos allowed for acquisition */ | 451 | /* Bit mask of algos allowed for acquisition */ |
452 | __u32 aalgos; | 452 | u32 aalgos; |
453 | __u32 ealgos; | 453 | u32 ealgos; |
454 | __u32 calgos; | 454 | u32 calgos; |
455 | }; | 455 | }; |
456 | 456 | ||
457 | #define XFRM_MAX_DEPTH 6 | 457 | #define XFRM_MAX_DEPTH 6 |
@@ -770,7 +770,7 @@ static __inline__ int addr_match(void *token1, void *token2, int prefixlen) | |||
770 | int pdw; | 770 | int pdw; |
771 | int pbi; | 771 | int pbi; |
772 | 772 | ||
773 | pdw = prefixlen >> 5; /* num of whole __u32 in prefix */ | 773 | pdw = prefixlen >> 5; /* num of whole u32 in prefix */ |
774 | pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ | 774 | pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ |
775 | 775 | ||
776 | if (pdw) | 776 | if (pdw) |
@@ -1259,7 +1259,7 @@ struct xfrm_algo_desc { | |||
1259 | /* XFRM tunnel handlers. */ | 1259 | /* XFRM tunnel handlers. */ |
1260 | struct xfrm_tunnel { | 1260 | struct xfrm_tunnel { |
1261 | int (*handler)(struct sk_buff *skb); | 1261 | int (*handler)(struct sk_buff *skb); |
1262 | int (*err_handler)(struct sk_buff *skb, __u32 info); | 1262 | int (*err_handler)(struct sk_buff *skb, u32 info); |
1263 | 1263 | ||
1264 | struct xfrm_tunnel *next; | 1264 | struct xfrm_tunnel *next; |
1265 | int priority; | 1265 | int priority; |
@@ -1500,7 +1500,7 @@ static inline int xfrm_addr_cmp(xfrm_address_t *a, xfrm_address_t *b, | |||
1500 | switch (family) { | 1500 | switch (family) { |
1501 | default: | 1501 | default: |
1502 | case AF_INET: | 1502 | case AF_INET: |
1503 | return (__force __u32)a->a4 - (__force __u32)b->a4; | 1503 | return (__force u32)a->a4 - (__force u32)b->a4; |
1504 | case AF_INET6: | 1504 | case AF_INET6: |
1505 | return ipv6_addr_cmp((struct in6_addr *)a, | 1505 | return ipv6_addr_cmp((struct in6_addr *)a, |
1506 | (struct in6_addr *)b); | 1506 | (struct in6_addr *)b); |