diff options
author | glebius <glebius@FreeBSD.org> | 2005-09-21 12:24:46 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-09-21 12:24:46 +0000 |
commit | e52ece28e993b157ee5d80aae0e13c109b50b3b0 (patch) | |
tree | f2e2370ec764dd233730984ad69c7e444ab11489 /sbin/route | |
parent | 1fc277e12320230562f51d9b4af50700ed133e82 (diff) | |
download | FreeBSD-src-e52ece28e993b157ee5d80aae0e13c109b50b3b0.zip FreeBSD-src-e52ece28e993b157ee5d80aae0e13c109b50b3b0.tar.gz |
- Understand EADDRINUSE, and forget EDQUOT. [1]
- Add description for EEXIST.
- Change description for ENOBUFS. Routing socket can return
this error for many different reasons, including general
memory shortage, mbuf memory shortage and rtentry zone.
PR: kern/64090 [1]
Diffstat (limited to 'sbin/route')
-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; |