From 365336b374f907fb36ef16f668084eac9b0259cf Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 25 Nov 1998 09:56:52 +0000 Subject: Better error code for too large packets --- sys/netinet/ip_esp_old.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet/ip_esp_old.c') 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); -- cgit v1.2.3