diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1997-07-18 18:09:58 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1997-07-18 18:09:58 +0000 |
commit | 5c841e2e44dee0e75bec0ca258f8235459b24571 (patch) | |
tree | 5d7918172e3eb7c581a2c3d22d2f7d023243e0a7 /sys/netinet/ip_esp_old.c | |
parent | 5a2ebd803573a4dc2e2db4e00d5beb1a99884efd (diff) |
enablespi/disablespi in encap + print spi's in hostorder
Diffstat (limited to 'sys/netinet/ip_esp_old.c')
-rw-r--r-- | sys/netinet/ip_esp_old.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/netinet/ip_esp_old.c b/sys/netinet/ip_esp_old.c index 363b8b45b23..3945ec0ebe9 100644 --- a/sys/netinet/ip_esp_old.c +++ b/sys/netinet/ip_esp_old.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_old.c,v 1.2 1997/07/14 08:48:46 provos Exp $ */ +/* $OpenBSD: ip_esp_old.c,v 1.3 1997/07/18 18:09:55 provos Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -263,7 +263,7 @@ esp_old_input(struct mbuf *m, struct tdb *tdb) default: log(LOG_ALERT, "esp_old_input(): unsupported algorithm %d in SA %x/%08x", - xd->edx_enc_algorithm, tdb->tdb_dst, tdb->tdb_spi); + xd->edx_enc_algorithm, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); return NULL; } @@ -322,7 +322,7 @@ esp_old_input(struct mbuf *m, struct tdb *tdb) { #ifdef ENCDEBUG if (encdebug) - printf("esp_old_input(): payload not a multiple of %d octets for packet from %x to %x, spi %08x\n", blks, ipo.ip_src, ipo.ip_dst, tdb->tdb_spi); + printf("esp_old_input(): payload not a multiple of %d octets for packet from %x to %x, spi %08x\n", blks, ipo.ip_src, ipo.ip_dst, ntohl(tdb->tdb_spi)); #endif /* ENCDEBUG */ espstat.esps_badilen++; m_freem(m); @@ -455,7 +455,7 @@ esp_old_input(struct mbuf *m, struct tdb *tdb) { #ifdef ENCDEBUG if (encdebug) - printf("esp_old_input(): m_pullup() failed for packet from %x to %x, SA %x/%08x\n", ipo.ip_src, ipo.ip_dst, tdb->tdb_dst, tdb->tdb_spi); + printf("esp_old_input(): m_pullup() failed for packet from %x to %x, SA %x/%08x\n", ipo.ip_src, ipo.ip_dst, tdb->tdb_dst, ntohl(tdb->tdb_spi)); #endif /* ENCDEBUG */ return NULL; } @@ -513,7 +513,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, default: log(LOG_ALERT, "esp_old_output(): unsupported algorithm %d in SA %x/%08x", - xd->edx_enc_algorithm, tdb->tdb_dst, tdb->tdb_spi); + xd->edx_enc_algorithm, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); return NULL; } @@ -526,7 +526,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, #ifdef ENCDEBUG if (encdebug) printf("esp_old_output(): m_pullup() failed for SA %x/%08x\n", - tdb->tdb_dst, tdb->tdb_spi); + tdb->tdb_dst, ntohl(tdb->tdb_spi)); #endif /* ENCDEBUG */ return ENOBUFS; } @@ -546,7 +546,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, #ifdef ENCDEBUG if (encdebug) printf("esp_old_output(): m_pullup() failed for SA %x/%08x\n", - tdb->tdb_dst, tdb->tdb_spi); + tdb->tdb_dst, ntohl(tdb->tdb_spi)); #endif /* ENCDEBUG */ return ENOBUFS; } @@ -573,7 +573,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, #ifdef ENCDEBUG if (encdebug) printf("esp_old_output(): m_pad() failed for SA %x/%08x\n", - tdb->tdb_dst, tdb->tdb_spi); + tdb->tdb_dst, ntohl(tdb->tdb_spi)); #endif /* ENCDEBUG */ return ENOBUFS; } @@ -677,7 +677,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, #ifdef ENCDEBUG if (encdebug) printf("esp_old_output(): M_PREPEND failed, SA %x/%08x\n", - tdb->tdb_dst, tdb->tdb_spi); + tdb->tdb_dst, ntohl(tdb->tdb_spi)); #endif /* ENCDEBUG */ return ENOBUFS; } @@ -688,7 +688,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, #ifdef ENCDEBUG if (encdebug) printf("esp_old_output(): m_pullup() failed, SA %x/%08x\n", - tdb->tdb_dst, tdb->tdb_spi); + tdb->tdb_dst, ntohl(tdb->tdb_spi)); #endif /* ENCDEBUG */ return ENOBUFS; } |