diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-17 13:53:10 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-17 13:53:10 -0300 |
commit | 346b289d245fd8fd2013fb5624a9287c9ae4a49d (patch) | |
tree | 6f185878760801e0d1b0ecbd34cea5bbf46894dc /sbin | |
parent | e3d01b9bda71bf501eea454e5cd66a620afb95a3 (diff) | |
download | FreeBSD-src-346b289d245fd8fd2013fb5624a9287c9ae4a49d.zip FreeBSD-src-346b289d245fd8fd2013fb5624a9287c9ae4a49d.tar.gz |
Importing pfSense patch route.diff
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 234aeef..b3641ac 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -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) { |