mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[NET] KEY: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6819bc2e1e
commit
8ff24541d9
1 changed files with 78 additions and 78 deletions
|
@ -813,16 +813,16 @@ static struct sk_buff * pfkey_xfrm_state2msg(struct xfrm_state *x, int add_keys,
|
|||
}
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
else if (x->props.family == AF_INET6) {
|
||||
addr->sadb_address_prefixlen = 128;
|
||||
addr->sadb_address_prefixlen = 128;
|
||||
|
||||
sin6 = (struct sockaddr_in6 *) (addr + 1);
|
||||
sin6->sin6_family = AF_INET6;
|
||||
sin6->sin6_port = 0;
|
||||
sin6->sin6_flowinfo = 0;
|
||||
memcpy(&sin6->sin6_addr, x->props.saddr.a6,
|
||||
memcpy(&sin6->sin6_addr, x->props.saddr.a6,
|
||||
sizeof(struct in6_addr));
|
||||
sin6->sin6_scope_id = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else
|
||||
BUG();
|
||||
|
@ -1022,7 +1022,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr,
|
|||
SADB_SASTATE_MATURE and the kernel MUST return an error if this is
|
||||
not true.
|
||||
|
||||
However, KAME setkey always uses SADB_SASTATE_LARVAL.
|
||||
However, KAME setkey always uses SADB_SASTATE_LARVAL.
|
||||
Hence, we have to _ignore_ sadb_sa_state, which is also reasonable.
|
||||
*/
|
||||
if (sa->sadb_sa_auth > SADB_AALG_MAX ||
|
||||
|
@ -2019,8 +2019,8 @@ static void pfkey_xfrm_policy2msg(struct sk_buff *skb, struct xfrm_policy *xp, i
|
|||
req_size = sizeof(struct sadb_x_ipsecrequest);
|
||||
if (t->mode == XFRM_MODE_TUNNEL)
|
||||
req_size += ((t->encap_family == AF_INET ?
|
||||
sizeof(struct sockaddr_in) :
|
||||
sizeof(struct sockaddr_in6)) * 2);
|
||||
sizeof(struct sockaddr_in) :
|
||||
sizeof(struct sockaddr_in6)) * 2);
|
||||
else
|
||||
size -= 2*socklen;
|
||||
rq = (void*)skb_put(skb, req_size);
|
||||
|
@ -3074,7 +3074,7 @@ static int pfkey_send_acquire(struct xfrm_state *x, struct xfrm_tmpl *t, struct
|
|||
}
|
||||
|
||||
static struct xfrm_policy *pfkey_compile_policy(struct sock *sk, int opt,
|
||||
u8 *data, int len, int *dir)
|
||||
u8 *data, int len, int *dir)
|
||||
{
|
||||
struct xfrm_policy *xp;
|
||||
struct sadb_x_policy *pol = (struct sadb_x_policy*)data;
|
||||
|
|
Loading…
Reference in a new issue