Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34566
b: refs/heads/master
c: 9e51fd3
h: refs/heads/master
v: v3
  • Loading branch information
Masahide NAKAMURA authored and David S. Miller committed Sep 22, 2006
1 parent a1b2526 commit b6c7cdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fbd9a5b47ee9c319ff0cae584391241ce78ffd6b
refs/heads/master: 9e51fd371a022318c5b64b831c43026e89bc4f75
6 changes: 3 additions & 3 deletions trunk/net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ xfrm_decode_session(struct sk_buff *skb, struct flowi *fl, unsigned short family
}
EXPORT_SYMBOL(xfrm_decode_session);

static inline int secpath_has_tunnel(struct sec_path *sp, int k)
static inline int secpath_has_nontransport(struct sec_path *sp, int k)
{
for (; k < sp->len; k++) {
if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT)
Expand Down Expand Up @@ -1087,7 +1087,7 @@ int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb,
xfrm_policy_lookup);

if (!pol)
return !skb->sp || !secpath_has_tunnel(skb->sp, 0);
return !skb->sp || !secpath_has_nontransport(skb->sp, 0);

pol->curlft.use_time = (unsigned long)xtime.tv_sec;

Expand All @@ -1111,7 +1111,7 @@ int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb,
goto reject;
}

if (secpath_has_tunnel(sp, k))
if (secpath_has_nontransport(sp, k))
goto reject;

xfrm_pol_put(pol);
Expand Down

0 comments on commit b6c7cdd

Please sign in to comment.