Lines Matching defs:dir

346 void km_policy_notify(struct xfrm_policy *xp, int dir,
577 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir);
579 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c);
582 u8 dir, u8 type,
1092 int __xfrm_policy_check(struct sock *, int dir, struct sk_buff *skb,
1096 int dir)
1098 if (!net->xfrm.policy_count[dir] && !secpath_exists(skb))
1099 return net->xfrm.policy_default[dir] == XFRM_USERPOLICY_ACCEPT;
1105 int dir, unsigned short family)
1107 if (dir != XFRM_POLICY_OUT && family == AF_INET) {
1116 static inline int __xfrm_policy_check2(struct sock *sk, int dir,
1121 int ndir = dir | (reverse ? XFRM_POLICY_MASK + 1 : 0);
1126 return __xfrm_check_nopolicy(net, skb, dir) ||
1127 __xfrm_check_dev_nopolicy(skb, dir, family) ||
1131 static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family)
1133 return __xfrm_policy_check2(sk, dir, skb, family, 0);
1136 static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
1138 return xfrm_policy_check(sk, dir, skb, AF_INET);
1141 static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
1143 return xfrm_policy_check(sk, dir, skb, AF_INET6);
1146 static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
1149 return __xfrm_policy_check2(sk, dir, skb, AF_INET, 1);
1152 static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir,
1155 return __xfrm_policy_check2(sk, dir, skb, AF_INET6, 1);
1211 int xfrm_policy_delete(struct xfrm_policy *pol, int dir);
1235 static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
1239 static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
1243 static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family)
1253 static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
1258 static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir,
1670 int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl);
1673 u32 if_id, u8 type, int dir,
1679 u8 type, int dir, u32 id, int delete,
1691 int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol);
1694 int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
1703 int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
1710 void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid);