diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-12-19 18:57:18 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-12-19 18:57:18 +0000 |
commit | 54309686695cb771bdda488e5e113ef42905657e (patch) | |
tree | 80636af8daae92619ead0e2ba62f4c9b7b69743b /share/man | |
parent | b8d60590925ff4d90f40cabc1e46d870ec01e28e (diff) |
Do not report an EDQUOT "Disk quota exceeded" error from the routing
code. Instead generate an ENOBUFS "No buffer space available" error
at the malloc(9) failure in rt_setgate(9) and propagate it.
OK mpi@
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/route.9 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/share/man/man9/route.9 b/share/man/man9/route.9 index 51d11a84184..e68b099e6d4 100644 --- a/share/man/man9/route.9 +++ b/share/man/man9/route.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: route.9,v 1.13 2014/11/01 21:45:54 mpi Exp $ +.\" $OpenBSD: route.9,v 1.14 2014/12/19 18:57:17 bluhm Exp $ .\" .\" Copyright (c) 2011 Bret S. Lambert <blambert@openbsd.org> .\" All rights reserved. @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 1 2014 $ +.Dd $Mdocdate: December 19 2014 $ .Dt ROUTE 9 .Os .Sh NAME @@ -81,7 +81,12 @@ sockets. .El .Sh RETURN VALUES .Fn rt_setgate -returns non-0 if it cannot allocate memory. +may fail with: +.Pp +.Bl -tag -width Er -compact +.It Bq Er ENOBUFS +Memory could not be allocated for the gateway. +.El .Pp .Fn rtdeletemsg may fail with: |