| 267 | } |
| 268 | |
| 269 | static void |
| 270 | kdebug_sadb_prop(struct sadb_ext *ext) |
| 271 | { |
| 272 | struct sadb_prop *prop = (struct sadb_prop *)ext; |
| 273 | struct sadb_comb *comb; |
| 274 | int len; |
| 275 | |
| 276 | /* sanity check */ |
| 277 | if (ext == NULL) |
| 278 | panic("%s: NULL pointer was passed.\n", __func__); |
| 279 | |
| 280 | len = (PFKEY_UNUNIT64(prop->sadb_prop_len) - sizeof(*prop)) |
| 281 | / sizeof(*comb); |
| 282 | comb = (struct sadb_comb *)(prop + 1); |
| 283 | printf("sadb_prop{ replay=%u\n", prop->sadb_prop_replay); |
| 284 | |
| 285 | while (len--) { |
| 286 | printf("sadb_comb{ auth=%u encrypt=%u " |
| 287 | "flags=0x%04x reserved=0x%08x\n", |
| 288 | comb->sadb_comb_auth, comb->sadb_comb_encrypt, |
| 289 | comb->sadb_comb_flags, comb->sadb_comb_reserved); |
| 290 | |
| 291 | printf(" auth_minbits=%u auth_maxbits=%u " |
| 292 | "encrypt_minbits=%u encrypt_maxbits=%u\n", |
| 293 | comb->sadb_comb_auth_minbits, |
| 294 | comb->sadb_comb_auth_maxbits, |
| 295 | comb->sadb_comb_encrypt_minbits, |
| 296 | comb->sadb_comb_encrypt_maxbits); |
| 297 | |
| 298 | printf(" soft_alloc=%u hard_alloc=%u " |
| 299 | "soft_bytes=%lu hard_bytes=%lu\n", |
| 300 | comb->sadb_comb_soft_allocations, |
| 301 | comb->sadb_comb_hard_allocations, |
| 302 | (unsigned long)comb->sadb_comb_soft_bytes, |
| 303 | (unsigned long)comb->sadb_comb_hard_bytes); |
| 304 | |
| 305 | printf(" soft_alloc=%lu hard_alloc=%lu " |
| 306 | "soft_bytes=%lu hard_bytes=%lu }\n", |
| 307 | (unsigned long)comb->sadb_comb_soft_addtime, |
| 308 | (unsigned long)comb->sadb_comb_hard_addtime, |
| 309 | (unsigned long)comb->sadb_comb_soft_usetime, |
| 310 | (unsigned long)comb->sadb_comb_hard_usetime); |
| 311 | comb++; |
| 312 | } |
| 313 | printf("}\n"); |
| 314 | |
| 315 | return; |
| 316 | } |
| 317 | |
| 318 | static void |
| 319 | kdebug_sadb_identity(struct sadb_ext *ext) |
no test coverage detected