- 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:
glebius 2005-09-21 12:24:46 +00:00
parent 1fc277e123
commit e52ece28e9

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;