counter is handled there.
OK tobhe@
-/* $OpenBSD: ip_ah.c,v 1.160 2021/10/23 22:19:37 bluhm Exp $ */
+/* $OpenBSD: ip_ah.c,v 1.161 2021/10/24 14:24:29 bluhm Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
/* Release the crypto descriptors */
crypto_freereq(crp);
- error = ah_input_cb(tdb, tc, m, clen);
- if (error) {
- ipsecstat_inc(ipsec_idrops);
- tdb->tdb_idrops++;
- }
-
- return 0;
+ return ah_input_cb(tdb, tc, m, clen);
drop:
m_freemp(mp);
/* Release the crypto descriptors */
crypto_freereq(crp);
- error = ah_output_cb(tdb, tc, m, ilen, olen);
- if (error) {
- ipsecstat_inc(ipsec_odrops);
- tdb->tdb_odrops++;
- }
-
- return 0;
+ return ah_output_cb(tdb, tc, m, ilen, olen);
drop:
m_freem(m);
-/* $OpenBSD: ip_esp.c,v 1.179 2021/10/23 22:19:37 bluhm Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.180 2021/10/24 14:24:29 bluhm Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
/* Release the crypto descriptors */
crypto_freereq(crp);
- error = esp_input_cb(tdb, tc, m, clen);
- if (error) {
- ipsecstat_inc(ipsec_idrops);
- tdb->tdb_idrops++;
- }
-
- return 0;
+ return esp_input_cb(tdb, tc, m, clen);
drop:
m_freemp(mp);
/* Release the crypto descriptors */
crypto_freereq(crp);
- error = esp_output_cb(tdb, tc, m, ilen, olen);
- if (error) {
- ipsecstat_inc(ipsec_odrops);
- tdb->tdb_odrops++;
- }
-
- return 0;
+ return esp_output_cb(tdb, tc, m, ilen, olen);
drop:
m_freem(m);
-/* $OpenBSD: ip_ipcomp.c,v 1.82 2021/10/23 22:19:37 bluhm Exp $ */
+/* $OpenBSD: ip_ipcomp.c,v 1.83 2021/10/24 14:24:29 bluhm Exp $ */
/*
* Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org)
/* Release the crypto descriptors */
crypto_freereq(crp);
- error = ipcomp_input_cb(tdb, tc, m, clen);
- if (error) {
- ipsecstat_inc(ipsec_idrops);
- tdb->tdb_idrops++;
- }
-
- return 0;
+ return ipcomp_input_cb(tdb, tc, m, clen);
drop:
m_freemp(mp);
/* Release the crypto descriptors */
crypto_freereq(crp);
- error = ipcomp_output_cb(tdb, tc, m, ilen, olen);
- if (error) {
- ipsecstat_inc(ipsec_odrops);
- tdb->tdb_odrops++;
- }
-
- return 0;
+ return ipcomp_output_cb(tdb, tc, m, ilen, olen);
drop:
m_freem(m);