Lines Matching defs:crypto_args

70 		utun_crypto_args_t *crypto_args = (__typeof__(crypto_args))data;
73 if (crypto_args->ver == 0 || crypto_args->ver >= UTUN_CRYPTO_ARGS_VER_MAX) {
74 printf("%s: ver check failed %d\n", __FUNCTION__, crypto_args->ver);
77 if (crypto_args->type == 0 || crypto_args->type >= UTUN_CRYPTO_TYPE_MAX) {
78 printf("%s: type check failed %d\n", __FUNCTION__, crypto_args->type);
81 if (len < UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args)) {
83 (int)len, (int)UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args));
86 if (crypto_args->args_ulen != sizeof(crypto_args->u)) {
89 if (crypto_args->type == UTUN_CRYPTO_TYPE_IPSEC) {
90 utun_ctl_enable_crypto_ipsec(pcb, crypto_args);
101 crypto_ctx->type = crypto_args->type;
134 utun_crypto_args_t *crypto_args = (__typeof__(crypto_args))data;
136 if (crypto_args->ver == 0 || crypto_args->ver >= UTUN_CRYPTO_ARGS_VER_MAX) {
137 printf("%s: ver check failed %d\n", __FUNCTION__, crypto_args->ver);
140 if (crypto_args->type == 0 || crypto_args->type >= UTUN_CRYPTO_TYPE_MAX) {
141 printf("%s: type check failed %d\n", __FUNCTION__, crypto_args->type);
144 if (len < UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args)) {
146 (int)len, (int)UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args));
149 if (crypto_args->args_ulen != sizeof(crypto_args->u)) {
153 if (crypto_args->type == UTUN_CRYPTO_TYPE_IPSEC) {
428 utun_crypto_args_t *crypto_args = (__typeof__(crypto_args))data;
430 if (crypto_args->ver == 0 || crypto_args->ver >= UTUN_CRYPTO_ARGS_VER_MAX) {
431 printf("%s: ver check failed %d\n", __FUNCTION__, crypto_args->ver);
434 if (crypto_args->type == 0 || crypto_args->type >= UTUN_CRYPTO_TYPE_MAX) {
435 printf("%s: type check failed %d\n", __FUNCTION__, crypto_args->type);
438 if (len < UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args)) {
440 (int)len, (int)UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args));
443 if (crypto_args->args_ulen != sizeof(crypto_args->u)) {
452 if (crypto_args->type != UTUN_CRYPTO_TYPE_IPSEC) {
484 utun_crypto_args_t *crypto_args = (__typeof__(crypto_args))data;
486 if (crypto_args->ver == 0 || crypto_args->ver >= UTUN_CRYPTO_ARGS_VER_MAX) {
487 printf("%s: ver check failed %d\n", __FUNCTION__, crypto_args->ver);
490 if (crypto_args->type == 0 || crypto_args->type >= UTUN_CRYPTO_TYPE_MAX) {
491 printf("%s: type check failed %d\n", __FUNCTION__, crypto_args->type);
494 if (len < UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args)) {
496 (int)len, (int)UTUN_CRYPTO_ARGS_TOTAL_SIZE(crypto_args));
499 if (crypto_args->args_ulen != sizeof(crypto_args->u)) {
508 if (crypto_args->type != UTUN_CRYPTO_TYPE_IPSEC) {