Date: Mon, 5 Mar 2018 12:04:43 +0000 (UTC) From: Eugene Grosbein <eugen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r330497 - stable/11/sbin/route Message-ID: <201803051204.w25C4hgv029616@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eugen Date: Mon Mar 5 12:04:43 2018 New Revision: 330497 URL: https://svnweb.freebsd.org/changeset/base/330497 Log: MFC r329930: route(8): make it possible to manually delete pinned route Reported by: Andreas Longwitz <longwitz@incore.de> Approved by: avg (mentor) Modified: stable/11/sbin/route/route.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sbin/route/route.c ============================================================================== --- stable/11/sbin/route/route.c Mon Mar 5 12:04:34 2018 (r330496) +++ stable/11/sbin/route/route.c Mon Mar 5 12:04:43 2018 (r330497) @@ -1520,8 +1520,10 @@ rtmsg(int cmd, int flags, int fib) so[RTAX_IFP].ss_len = sizeof(struct sockaddr_dl); rtm_addrs |= RTA_IFP; } - } else + } else { cmd = RTM_DELETE; + flags |= RTF_PINNED; + } #define rtm m_rtmsg.m_rtm rtm.rtm_type = cmd; rtm.rtm_flags = flags;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803051204.w25C4hgv029616>