diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-25 09:56:52 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-25 09:56:52 +0000 |
commit | 365336b374f907fb36ef16f668084eac9b0259cf (patch) | |
tree | 499eda0749ccc4d6d9e7fae23739f3438c2ecf8f /sys | |
parent | d6d9c0d26f864c7e5fb808fad65dc88cd879da2a (diff) |
Better error code for too large packets
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_ah_new.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_ah_old.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_esp_new.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_esp_old.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/netinet/ip_ah_new.c b/sys/netinet/ip_ah_new.c index 1b4dd48ca7f..022deed2c2b 100644 --- a/sys/netinet/ip_ah_new.c +++ b/sys/netinet/ip_ah_new.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah_new.c,v 1.19 1998/11/25 02:01:27 niklas Exp $ */ +/* $OpenBSD: ip_ah_new.c,v 1.20 1998/11/25 09:56:50 niklas Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -590,7 +590,7 @@ ah_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); ahstat.ahs_toobig++; - return ENOBUFS; + return EMSGSIZE; } ipo.ip_v = IPVERSION; diff --git a/sys/netinet/ip_ah_old.c b/sys/netinet/ip_ah_old.c index 25f5883c055..f9f8448b5e6 100644 --- a/sys/netinet/ip_ah_old.c +++ b/sys/netinet/ip_ah_old.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah_old.c,v 1.16 1998/11/25 02:01:26 niklas Exp $ */ +/* $OpenBSD: ip_ah_old.c,v 1.17 1998/11/25 09:56:50 niklas Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -495,7 +495,7 @@ ah_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); ahstat.ahs_toobig++; - return ENOBUFS; + return EMSGSIZE; } ipo.ip_v = IPVERSION; diff --git a/sys/netinet/ip_esp_new.c b/sys/netinet/ip_esp_new.c index 3b8f386146e..d8036c38420 100644 --- a/sys/netinet/ip_esp_new.c +++ b/sys/netinet/ip_esp_new.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_new.c,v 1.26 1998/11/25 02:01:27 niklas Exp $ */ +/* $OpenBSD: ip_esp_new.c,v 1.27 1998/11/25 09:56:51 niklas Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -940,7 +940,7 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); espstat.esps_toobig++; - return ENOBUFS; + return EMSGSIZE; } pad = (u_char *) m_pad(m, padding + alen); diff --git a/sys/netinet/ip_esp_old.c b/sys/netinet/ip_esp_old.c index db56229420e..79a163b5860 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.22 1998/11/25 02:30:59 niklas Exp $ */ +/* $OpenBSD: ip_esp_old.c,v 1.23 1998/11/25 09:56:51 niklas Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -634,7 +634,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); espstat.esps_toobig++; - return ENOBUFS; + return EMSGSIZE; } pad = (u_char *) m_pad(m, padding); |