diff options
-rw-r--r-- | sbin/route/route.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 265a03f..2169127 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -768,11 +768,15 @@ newroute(argc, argv) err = "entry in use"; break; case ENOBUFS: - err = "routing table overflow"; + err = "not enough memory"; break; - case EDQUOT: /* handle recursion avoidance in rt_setgate() */ + case EADDRINUSE: + /* handle recursion avoidance in rt_setgate() */ err = "gateway uses the same route"; break; + case EEXIST: + err = "route already in table"; + break; default: err = strerror(oerrno); break; |