Skip to content

Commit

Permalink
In addition to the ipsec_osdep.h removal a week ago, now also eliminate
Browse files Browse the repository at this point in the history
IPSEC_SPLASSERT_SOFTNET which has been 'unused' since FreeBSD 5.0.
  • Loading branch information
bz authored and bz committed May 24, 2008
1 parent f3ab94f commit db8afa9
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions sys/netipsec/ipsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1675,8 +1675,6 @@ ipsec_chkreplay(seq, sav)
u_int32_t wsizeb; /* constant: bits of window size */
int frlast; /* constant: last frame */

IPSEC_SPLASSERT_SOFTNET(__func__);

IPSEC_ASSERT(sav != NULL, ("Null SA"));
IPSEC_ASSERT(sav->replay != NULL, ("Null replay state"));

Expand Down Expand Up @@ -1735,8 +1733,6 @@ ipsec_updatereplay(seq, sav)
u_int32_t wsizeb; /* constant: bits of window size */
int frlast; /* constant: last frame */

IPSEC_SPLASSERT_SOFTNET(__func__);

IPSEC_ASSERT(sav != NULL, ("Null SA"));
IPSEC_ASSERT(sav->replay != NULL, ("Null replay state"));

Expand Down
1 change: 0 additions & 1 deletion sys/netipsec/ipsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

#ifdef _KERNEL

#define IPSEC_SPLASSERT_SOFTNET(_m) /* XXX-BZ remove me */
#define IPSEC_ASSERT(_c,_m) KASSERT(_c, _m)

#define IPSEC_IS_PRIVILEGED_SO(_so) \
Expand Down
2 changes: 0 additions & 2 deletions sys/netipsec/ipsec_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
#endif
#endif

IPSEC_SPLASSERT_SOFTNET(__func__);

IPSEC_ASSERT(m != NULL, ("null mbuf"));
IPSEC_ASSERT(sav != NULL, ("null SA"));
IPSEC_ASSERT(sav->sah != NULL, ("null SAH"));
Expand Down
3 changes: 0 additions & 3 deletions sys/netipsec/ipsec_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ ipsec_process_done(struct mbuf *m, struct ipsecrequest *isr)
struct secasindex *saidx;
int error;

IPSEC_SPLASSERT_SOFTNET(__func__);

IPSEC_ASSERT(m != NULL, ("null mbuf"));
IPSEC_ASSERT(isr != NULL, ("null ISR"));
sav = isr->sav;
Expand Down Expand Up @@ -205,7 +203,6 @@ ipsec_nextisr(
isr->saidx.proto == IPPROTO_AH ? (y)++ : (z)++)
struct secasvar *sav;

IPSEC_SPLASSERT_SOFTNET(__func__);
IPSECREQUEST_LOCK_ASSERT(isr);

IPSEC_ASSERT(af == AF_INET || af == AF_INET6,
Expand Down
4 changes: 0 additions & 4 deletions sys/netipsec/xform_ah.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,6 @@ ah_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff)
struct cryptodesc *crda;
struct cryptop *crp;

IPSEC_SPLASSERT_SOFTNET(__func__);

IPSEC_ASSERT(sav != NULL, ("null SA"));
IPSEC_ASSERT(sav->key_auth != NULL, ("null authentication key"));
IPSEC_ASSERT(sav->tdb_authalgxform != NULL,
Expand Down Expand Up @@ -895,8 +893,6 @@ ah_output(
u_int8_t prot;
struct newah *ah;

IPSEC_SPLASSERT_SOFTNET(__func__);

sav = isr->sav;
IPSEC_ASSERT(sav != NULL, ("null SA"));
ahx = sav->tdb_authalgxform;
Expand Down
4 changes: 0 additions & 4 deletions sys/netipsec/xform_esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff)
struct cryptodesc *crde;
struct cryptop *crp;

IPSEC_SPLASSERT_SOFTNET(__func__);

IPSEC_ASSERT(sav != NULL, ("null SA"));
IPSEC_ASSERT(sav->tdb_encalgxform != NULL, ("null encoding xform"));
IPSEC_ASSERT((skip&3) == 0 && (m->m_pkthdr.len&3) == 0,
Expand Down Expand Up @@ -667,8 +665,6 @@ esp_output(
struct cryptodesc *crde = NULL, *crda = NULL;
struct cryptop *crp;

IPSEC_SPLASSERT_SOFTNET(__func__);

sav = isr->sav;
IPSEC_ASSERT(sav != NULL, ("null SA"));
esph = sav->tdb_authalgxform;
Expand Down
4 changes: 0 additions & 4 deletions sys/netipsec/xform_ipcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ ipcomp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff)
struct cryptop *crp;
int hlen = IPCOMP_HLENGTH;

IPSEC_SPLASSERT_SOFTNET(__func__);

/* Get crypto descriptors */
crp = crypto_getreq(1);
if (crp == NULL) {
Expand Down Expand Up @@ -338,8 +336,6 @@ ipcomp_output(
struct mbuf *mo;
struct ipcomp *ipcomp;

IPSEC_SPLASSERT_SOFTNET(__func__);

sav = isr->sav;
IPSEC_ASSERT(sav != NULL, ("null SA"));
ipcompx = sav->tdb_compalgxform;
Expand Down
2 changes: 0 additions & 2 deletions sys/netipsec/xform_ipip.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,6 @@ ipip_output(
struct ip6_hdr *ip6, *ip6o;
#endif /* INET6 */

IPSEC_SPLASSERT_SOFTNET(__func__);

sav = isr->sav;
IPSEC_ASSERT(sav != NULL, ("null SA"));
IPSEC_ASSERT(sav->sah != NULL, ("null SAH"));
Expand Down

0 comments on commit db8afa9

Please sign in to comment.