MFC 1.80:

- 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]

Approved by:	re (scottl)
This commit is contained in:
glebius 2005-09-26 15:00:34 +00:00
parent eea24f1858
commit 5dcd652b76

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;