MFp4 @229480:

Shutdown write direction of the routing socket. We only need to read from it.

Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Pawel Jakub Dawidek 2013-07-03 22:09:02 +00:00
parent 7fdc27bc51
commit e374cef518
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252625

View File

@ -476,6 +476,8 @@ main(int argc, char *argv[])
if ((routefd = socket(PF_ROUTE, SOCK_RAW, 0)) != -1)
add_protocol("AF_ROUTE", routefd, routehandler, ifi);
if (shutdown(routefd, SHUT_WR) < 0)
error("can't shutdown route socket: %m");
/* set up the interface */
discover_interfaces(ifi);