[NET] XFRM: 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
f8e1d20183
commit
a716c1197d
|
@ -248,22 +248,22 @@ static struct xfrm_algo_desc ealg_list[] = {
|
|||
}
|
||||
},
|
||||
{
|
||||
.name = "cbc(serpent)",
|
||||
.compat = "serpent",
|
||||
.name = "cbc(serpent)",
|
||||
.compat = "serpent",
|
||||
|
||||
.uinfo = {
|
||||
.encr = {
|
||||
.blockbits = 128,
|
||||
.defkeybits = 128,
|
||||
}
|
||||
},
|
||||
.uinfo = {
|
||||
.encr = {
|
||||
.blockbits = 128,
|
||||
.defkeybits = 128,
|
||||
}
|
||||
},
|
||||
|
||||
.desc = {
|
||||
.sadb_alg_id = SADB_X_EALG_SERPENTCBC,
|
||||
.sadb_alg_ivlen = 8,
|
||||
.sadb_alg_minbits = 128,
|
||||
.sadb_alg_maxbits = 256,
|
||||
}
|
||||
.desc = {
|
||||
.sadb_alg_id = SADB_X_EALG_SERPENTCBC,
|
||||
.sadb_alg_ivlen = 8,
|
||||
.sadb_alg_minbits = 128,
|
||||
.sadb_alg_maxbits = 256,
|
||||
}
|
||||
},
|
||||
{
|
||||
.name = "cbc(camellia)",
|
||||
|
@ -283,22 +283,22 @@ static struct xfrm_algo_desc ealg_list[] = {
|
|||
}
|
||||
},
|
||||
{
|
||||
.name = "cbc(twofish)",
|
||||
.compat = "twofish",
|
||||
.name = "cbc(twofish)",
|
||||
.compat = "twofish",
|
||||
|
||||
.uinfo = {
|
||||
.encr = {
|
||||
.blockbits = 128,
|
||||
.defkeybits = 128,
|
||||
}
|
||||
},
|
||||
.uinfo = {
|
||||
.encr = {
|
||||
.blockbits = 128,
|
||||
.defkeybits = 128,
|
||||
}
|
||||
},
|
||||
|
||||
.desc = {
|
||||
.sadb_alg_id = SADB_X_EALG_TWOFISHCBC,
|
||||
.sadb_alg_ivlen = 8,
|
||||
.sadb_alg_minbits = 128,
|
||||
.sadb_alg_maxbits = 256
|
||||
}
|
||||
.desc = {
|
||||
.sadb_alg_id = SADB_X_EALG_TWOFISHCBC,
|
||||
.sadb_alg_ivlen = 8,
|
||||
.sadb_alg_minbits = 128,
|
||||
.sadb_alg_maxbits = 256
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -262,7 +262,7 @@ static inline unsigned long make_jiffies(long secs)
|
|||
if (secs >= (MAX_SCHEDULE_TIMEOUT-1)/HZ)
|
||||
return MAX_SCHEDULE_TIMEOUT-1;
|
||||
else
|
||||
return secs*HZ;
|
||||
return secs*HZ;
|
||||
}
|
||||
|
||||
static void xfrm_policy_timer(unsigned long data)
|
||||
|
@ -1024,17 +1024,17 @@ end:
|
|||
static inline int policy_to_flow_dir(int dir)
|
||||
{
|
||||
if (XFRM_POLICY_IN == FLOW_DIR_IN &&
|
||||
XFRM_POLICY_OUT == FLOW_DIR_OUT &&
|
||||
XFRM_POLICY_FWD == FLOW_DIR_FWD)
|
||||
return dir;
|
||||
switch (dir) {
|
||||
default:
|
||||
case XFRM_POLICY_IN:
|
||||
return FLOW_DIR_IN;
|
||||
case XFRM_POLICY_OUT:
|
||||
return FLOW_DIR_OUT;
|
||||
case XFRM_POLICY_FWD:
|
||||
return FLOW_DIR_FWD;
|
||||
XFRM_POLICY_OUT == FLOW_DIR_OUT &&
|
||||
XFRM_POLICY_FWD == FLOW_DIR_FWD)
|
||||
return dir;
|
||||
switch (dir) {
|
||||
default:
|
||||
case XFRM_POLICY_IN:
|
||||
return FLOW_DIR_IN;
|
||||
case XFRM_POLICY_OUT:
|
||||
return FLOW_DIR_OUT;
|
||||
case XFRM_POLICY_FWD:
|
||||
return FLOW_DIR_FWD;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1044,9 +1044,9 @@ static struct xfrm_policy *xfrm_sk_policy_lookup(struct sock *sk, int dir, struc
|
|||
|
||||
read_lock_bh(&xfrm_policy_lock);
|
||||
if ((pol = sk->sk_policy[dir]) != NULL) {
|
||||
int match = xfrm_selector_match(&pol->selector, fl,
|
||||
int match = xfrm_selector_match(&pol->selector, fl,
|
||||
sk->sk_family);
|
||||
int err = 0;
|
||||
int err = 0;
|
||||
|
||||
if (match) {
|
||||
err = security_xfrm_policy_lookup(pol, fl->secid,
|
||||
|
@ -1511,7 +1511,7 @@ restart:
|
|||
}
|
||||
*dst_p = dst;
|
||||
dst_release(dst_orig);
|
||||
xfrm_pols_put(pols, npols);
|
||||
xfrm_pols_put(pols, npols);
|
||||
return 0;
|
||||
|
||||
error:
|
||||
|
@ -2243,7 +2243,7 @@ static int xfrm_migrate_selector_match(struct xfrm_selector *sel_cmp,
|
|||
if (sel_cmp->proto == IPSEC_ULPROTO_ANY) {
|
||||
if (sel_tgt->family == sel_cmp->family &&
|
||||
xfrm_addr_cmp(&sel_tgt->daddr, &sel_cmp->daddr,
|
||||
sel_cmp->family) == 0 &&
|
||||
sel_cmp->family) == 0 &&
|
||||
xfrm_addr_cmp(&sel_tgt->saddr, &sel_cmp->saddr,
|
||||
sel_cmp->family) == 0 &&
|
||||
sel_tgt->prefixlen_d == sel_cmp->prefixlen_d &&
|
||||
|
|
|
@ -227,7 +227,7 @@ static inline unsigned long make_jiffies(long secs)
|
|||
if (secs >= (MAX_SCHEDULE_TIMEOUT-1)/HZ)
|
||||
return MAX_SCHEDULE_TIMEOUT-1;
|
||||
else
|
||||
return secs*HZ;
|
||||
return secs*HZ;
|
||||
}
|
||||
|
||||
static void xfrm_timer_handler(unsigned long data)
|
||||
|
@ -570,7 +570,7 @@ xfrm_state_find(xfrm_address_t *daddr, xfrm_address_t *saddr,
|
|||
acquire_in_progress = 1;
|
||||
} else if (x->km.state == XFRM_STATE_ERROR ||
|
||||
x->km.state == XFRM_STATE_EXPIRED) {
|
||||
if (xfrm_selector_match(&x->sel, fl, family) &&
|
||||
if (xfrm_selector_match(&x->sel, fl, family) &&
|
||||
security_xfrm_state_pol_flow_match(x, pol, fl))
|
||||
error = -ESRCH;
|
||||
}
|
||||
|
@ -866,7 +866,7 @@ struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig, int *errp)
|
|||
}
|
||||
x->props.calgo = orig->props.calgo;
|
||||
|
||||
if (orig->encap) {
|
||||
if (orig->encap) {
|
||||
x->encap = kmemdup(orig->encap, sizeof(*x->encap), GFP_KERNEL);
|
||||
if (!x->encap)
|
||||
goto error;
|
||||
|
@ -947,7 +947,7 @@ struct xfrm_state * xfrm_migrate_state_find(struct xfrm_migrate *m)
|
|||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
EXPORT_SYMBOL(xfrm_migrate_state_find);
|
||||
|
||||
|
|
|
@ -1107,7 +1107,7 @@ static int copy_sec_ctx(struct xfrm_sec_ctx *s, struct sk_buff *skb)
|
|||
uctx->ctx_alg = s->ctx_alg;
|
||||
uctx->ctx_len = s->ctx_len;
|
||||
memcpy(uctx + 1, s->ctx_str, s->ctx_len);
|
||||
return 0;
|
||||
return 0;
|
||||
|
||||
rtattr_failure:
|
||||
return -1;
|
||||
|
@ -2467,7 +2467,7 @@ static int __init xfrm_user_init(void)
|
|||
printk(KERN_INFO "Initializing XFRM netlink socket\n");
|
||||
|
||||
nlsk = netlink_kernel_create(NETLINK_XFRM, XFRMNLGRP_MAX,
|
||||
xfrm_netlink_rcv, THIS_MODULE);
|
||||
xfrm_netlink_rcv, THIS_MODULE);
|
||||
if (nlsk == NULL)
|
||||
return -ENOMEM;
|
||||
rcu_assign_pointer(xfrm_nl, nlsk);
|
||||
|
|
Loading…
Reference in New Issue