Date: Wed, 31 Dec 2008 03:13:54 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r186626 - user/kmacy/HEAD_fast_net/sbin/route Message-ID: <200812310313.mBV3DsH6013294@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmacy Date: Wed Dec 31 03:13:54 2008 New Revision: 186626 URL: http://svn.freebsd.org/changeset/base/186626 Log: import user support for route shutdown Modified: user/kmacy/HEAD_fast_net/sbin/route/keywords user/kmacy/HEAD_fast_net/sbin/route/route.c Modified: user/kmacy/HEAD_fast_net/sbin/route/keywords ============================================================================== --- user/kmacy/HEAD_fast_net/sbin/route/keywords Wed Dec 31 03:13:05 2008 (r186625) +++ user/kmacy/HEAD_fast_net/sbin/route/keywords Wed Dec 31 03:13:54 2008 (r186626) @@ -44,6 +44,7 @@ rtt rttvar sa sendpipe +shutdown ssthresh static x25 Modified: user/kmacy/HEAD_fast_net/sbin/route/route.c ============================================================================== --- user/kmacy/HEAD_fast_net/sbin/route/route.c Wed Dec 31 03:13:05 2008 (r186625) +++ user/kmacy/HEAD_fast_net/sbin/route/route.c Wed Dec 31 03:13:54 2008 (r186626) @@ -176,6 +176,7 @@ main(argc, argv) case K_ADD: case K_DEL: case K_DELETE: + case K_SHUTDOWN: newroute(argc, argv); /* NOTREACHED */ @@ -1197,7 +1198,9 @@ rtmsg(cmd, flags) so_ifp.sa.sa_len = sizeof(struct sockaddr_dl); rtm_addrs |= RTA_IFP; } - } else + } else if (cmd == 's') + cmd = RTM_SHUTDOWN; + else cmd = RTM_DELETE; #define rtm m_rtmsg.m_rtm rtm.rtm_type = cmd;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812310313.mBV3DsH6013294>