-/* $OpenBSD: ip_ipsp.c,v 1.82 2000/03/28 07:04:02 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.83 2000/04/19 03:37:35 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
if (tdbp != (struct tdb *) NULL)
continue;
-
+
MALLOC(tdbp, struct tdb *, sizeof(struct tdb), M_TDB, M_WAITOK);
bzero((caddr_t) tdbp, sizeof(struct tdb));
tdbp->tdb_hnext = new_tdbh[hashval];
new_tdbh[hashval] = tdbp;
}
+
FREE(tdbh, M_TDB);
tdbh = new_tdbh;
}
if (delchain && tdbpn)
tdb_delete(tdbpn, delchain, expflags);
+
splx(s);
}
-/* $OpenBSD: ip_ipsp.h,v 1.63 2000/03/29 07:09:57 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.64 2000/04/19 03:37:36 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* tdb_exp_first_use <= curtime */
u_int64_t tdb_cryptoid; /* Crypto session ID */
- u_int32_t tdb_ref; /* References */
+ int32_t tdb_ref; /* References */
u_int32_t tdb_spi; /* SPI */
u_int16_t tdb_amxkeylen; /* Raw authentication key length */
u_int16_t tdb_emxkeylen; /* Raw encryption key length */