• Home
  • Raw
  • Download

Lines Matching refs:num_pols

2674 				int *num_pols, int *num_xfrms)  in xfrm_expand_policies()  argument
2678 if (*num_pols == 0 || !pols[0]) { in xfrm_expand_policies()
2679 *num_pols = 0; in xfrm_expand_policies()
2684 *num_pols = 0; in xfrm_expand_policies()
2700 xfrm_pols_put(pols, *num_pols); in xfrm_expand_policies()
2701 *num_pols = 0; in xfrm_expand_policies()
2704 (*num_pols)++; in xfrm_expand_policies()
2709 for (i = 0; i < *num_pols; i++) { in xfrm_expand_policies()
2721 xfrm_resolve_and_create_bundle(struct xfrm_policy **pols, int num_pols, in xfrm_resolve_and_create_bundle() argument
2733 err = xfrm_tmpl_resolve(pols, num_pols, fl, xfrm, family); in xfrm_resolve_and_create_bundle()
2751 xdst->num_pols = num_pols; in xfrm_resolve_and_create_bundle()
2752 memcpy(xdst->pols, pols, sizeof(struct xfrm_policy *) * num_pols); in xfrm_resolve_and_create_bundle()
2952 int num_pols = 0, num_xfrms = 0, err; in xfrm_bundle_lookup() local
2957 num_pols = 1; in xfrm_bundle_lookup()
2960 &num_pols, &num_xfrms); in xfrm_bundle_lookup()
2963 if (num_pols == 0) in xfrm_bundle_lookup()
2968 xdst = xfrm_resolve_and_create_bundle(pols, num_pols, fl, family, in xfrm_bundle_lookup()
2973 xfrm_pols_put(pols, num_pols); in xfrm_bundle_lookup()
2993 xfrm_pols_put(pols, num_pols); in xfrm_bundle_lookup()
2996 xdst->num_pols = num_pols; in xfrm_bundle_lookup()
2998 memcpy(xdst->pols, pols, sizeof(struct xfrm_policy *) * num_pols); in xfrm_bundle_lookup()
3005 xfrm_pols_put(pols, num_pols); in xfrm_bundle_lookup()
3045 int i, err, num_pols, num_xfrms = 0, drop_pols = 0; in xfrm_lookup_with_ifid() local
3053 num_pols = 1; in xfrm_lookup_with_ifid()
3057 &num_pols, &num_xfrms); in xfrm_lookup_with_ifid()
3061 if (num_pols) { in xfrm_lookup_with_ifid()
3063 drop_pols = num_pols; in xfrm_lookup_with_ifid()
3068 pols, num_pols, fl, in xfrm_lookup_with_ifid()
3072 xfrm_pols_put(pols, num_pols); in xfrm_lookup_with_ifid()
3080 drop_pols = num_pols; in xfrm_lookup_with_ifid()
3107 num_pols = xdst->num_pols; in xfrm_lookup_with_ifid()
3109 memcpy(pols, xdst->pols, sizeof(struct xfrm_policy *) * num_pols); in xfrm_lookup_with_ifid()
3134 if (num_pols == 0) in xfrm_lookup_with_ifid()
3143 for (i = 0; i < num_pols; i++) in xfrm_lookup_with_ifid()
3873 if (xdst->num_pols > 0 && in xfrm_bundle_ok()