diff options
author | 1998-11-25 09:56:50 +0000 | |
---|---|---|
committer | 1998-11-25 09:56:50 +0000 | |
commit | 38734b8f60113f08840482029b1b44832c7ed7f2 (patch) | |
tree | 35e5a14c84f3f6d71a045ccd98d8e8289ac964d0 | |
parent | Re-enable TCP_SACK/TCP_FACK now that it works on alpha (diff) | |
download | wireguard-openbsd-38734b8f60113f08840482029b1b44832c7ed7f2.tar.xz wireguard-openbsd-38734b8f60113f08840482029b1b44832c7ed7f2.zip |
Better error code for too large packets
-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); |