- 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]
This commit is contained in:
Gleb Smirnoff 2005-09-21 12:24:46 +00:00
parent 2d7e9ead07
commit 7278e14c38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150415

View File

@ -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;