Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Don't request returning rtentry if not use it
details: https://anonhg.NetBSD.org/src/rev/6d876c9dcd1d
branches: trunk
changeset: 344489:6d876c9dcd1d
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Apr 01 09:52:39 2016 +0000
description:
Don't request returning rtentry if not use it
diffstat:
sys/net/route.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 175ed17f578d -r 6d876c9dcd1d sys/net/route.c
--- a/sys/net/route.c Fri Apr 01 09:16:02 2016 +0000
+++ b/sys/net/route.c Fri Apr 01 09:52:39 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.156 2016/04/01 09:00:27 ozaki-r Exp $ */
+/* $NetBSD: route.c,v 1.157 2016/04/01 09:52:39 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.156 2016/04/01 09:00:27 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.157 2016/04/01 09:52:39 ozaki-r Exp $");
#include <sys/param.h>
#ifdef RTFLUSH_DEBUG
@@ -568,7 +568,6 @@
{
int error;
struct rt_addrinfo info;
- struct rtentry *retrt;
/*
* Request the new route so that the entry is not actually
@@ -580,12 +579,10 @@
info.rti_info[RTAX_NETMASK] = rt_mask(rt);
info.rti_info[RTAX_GATEWAY] = rt->rt_gateway;
info.rti_flags = rt->rt_flags;
- error = rtrequest1(RTM_DELETE, &info, &retrt);
+ error = rtrequest1(RTM_DELETE, &info, NULL);
rt_missmsg(RTM_DELETE, &info, info.rti_flags, error);
- if (error == 0)
- rtfree(retrt);
return error;
}
Home |
Main Index |
Thread Index |
Old Index