| 358 | } |
| 359 | |
| 360 | static void |
| 361 | kdebug_sadb_supported(struct sadb_ext *ext) |
| 362 | { |
| 363 | struct sadb_supported *sup = (struct sadb_supported *)ext; |
| 364 | struct sadb_alg *alg; |
| 365 | int len; |
| 366 | |
| 367 | /* sanity check */ |
| 368 | if (ext == NULL) |
| 369 | panic("%s: NULL pointer was passed.\n", __func__); |
| 370 | |
| 371 | len = (PFKEY_UNUNIT64(sup->sadb_supported_len) - sizeof(*sup)) |
| 372 | / sizeof(*alg); |
| 373 | alg = (struct sadb_alg *)(sup + 1); |
| 374 | printf("sadb_sup{\n"); |
| 375 | while (len--) { |
| 376 | printf(" { id=%d ivlen=%d min=%d max=%d }\n", |
| 377 | alg->sadb_alg_id, alg->sadb_alg_ivlen, |
| 378 | alg->sadb_alg_minbits, alg->sadb_alg_maxbits); |
| 379 | alg++; |
| 380 | } |
| 381 | printf("}\n"); |
| 382 | |
| 383 | return; |
| 384 | } |
| 385 | |
| 386 | static void |
| 387 | kdebug_sadb_lifetime(struct sadb_ext *ext) |
no test coverage detected