Lines Matching defs:hard
1653 struct sadb_lifetime *hard = NULL, *soft = NULL; /* Current? */
2416 if (hard == NULL) {
2417 hard = malloc(sizeof (*hard));
2418 if (hard == NULL)
2420 bzero(hard, sizeof (*hard));
2421 hard->sadb_lifetime_exttype =
2423 hard->sadb_lifetime_len =
2424 SADB_8TO64(sizeof (*hard));
2425 totallen += sizeof (*hard);
2429 if (hard->sadb_lifetime_allocations != 0) {
2432 " hard allocation limit.\n"));
2435 hard->sadb_lifetime_allocations =
2439 if (hard->sadb_lifetime_bytes != 0) {
2442 "single hard byte limit.\n"));
2445 hard->sadb_lifetime_bytes = parsenum(*argv,
2449 if (hard->sadb_lifetime_addtime != 0) {
2455 hard->sadb_lifetime_addtime = parsenum(*argv,
2459 if (hard->sadb_lifetime_usetime != 0) {
2465 hard->sadb_lifetime_usetime = parsenum(*argv,
2793 if (hard != NULL) {
2794 bcopy(hard, nexthdr, SADB_64TO8(hard->sadb_lifetime_len));
2795 nexthdr += hard->sadb_lifetime_len;
2796 free(hard);