Date: Mon, 5 Mar 2018 12:06:41 +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-10@freebsd.org Subject: svn commit: r330498 - stable/10/sbin/route Message-ID: <201803051206.w25C6fW4029743@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eugen Date: Mon Mar 5 12:06:41 2018 New Revision: 330498 URL: https://svnweb.freebsd.org/changeset/base/330498 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/10/sbin/route/route.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/route/route.c ============================================================================== --- stable/10/sbin/route/route.c Mon Mar 5 12:04:43 2018 (r330497) +++ stable/10/sbin/route/route.c Mon Mar 5 12:06:41 2018 (r330498) @@ -1535,8 +1535,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?201803051206.w25C6fW4029743>