Skip to content

Commit

Permalink
Importing pfSense patch route.diff
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga committed Aug 17, 2015
1 parent e3d01b9 commit 346b289
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sbin/route/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1554,10 +1554,15 @@ rtmsg(int cmd, int flags, int fib)
print_rtmsg(&rtm, l);
if (debugonly)
return (0);
testagain:
if ((rlen = write(s, (char *)&m_rtmsg, l)) < 0) {
if (errno == EPERM)
err(1, "writing to routing socket");
warn("writing to routing socket");
if (rtm.rtm_type == RTM_CHANGE) {
rtm.rtm_type = RTM_ADD;
goto testagain;
}
return (-1);
}
if (cmd == RTM_GET) {
Expand Down

0 comments on commit 346b289

Please sign in to comment.