Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net KNF
details: https://anonhg.NetBSD.org/src/rev/dcaad0df1abf
branches: trunk
changeset: 339330:dcaad0df1abf
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Jul 14 08:06:44 2015 +0000
description:
KNF
diffstat:
sys/net/if_strip.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (55 lines):
diff -r 00a14a631642 -r dcaad0df1abf sys/net/if_strip.c
--- a/sys/net/if_strip.c Mon Jul 13 17:45:16 2015 +0000
+++ b/sys/net/if_strip.c Tue Jul 14 08:06:44 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_strip.c,v 1.97 2014/06/05 23:48:16 rmind Exp $ */
+/* $NetBSD: if_strip.c,v 1.98 2015/07/14 08:06:44 ozaki-r Exp $ */
/* from: NetBSD: if_sl.c,v 1.38 1996/02/13 22:00:23 christos Exp $ */
/*
@@ -87,7 +87,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_strip.c,v 1.97 2014/06/05 23:48:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_strip.c,v 1.98 2015/07/14 08:06:44 ozaki-r Exp $");
#include "opt_inet.h"
@@ -749,26 +749,26 @@
printf("stripout, rt: dst af%d gw af%d",
rt_getkey(rt)->sa_family, rt->rt_gateway->sa_family);
if (rt_getkey(rt)->sa_family == AF_INET)
- printf(" dst %x",
- satocsin(rt_getkey(rt))->sin_addr.s_addr);
+ printf(" dst %x",
+ satocsin(rt_getkey(rt))->sin_addr.s_addr);
printf("\n");
}
#endif
switch (dst->sa_family) {
case AF_INET:
- if (rt != NULL && rt->rt_gwroute != NULL)
- rt = rt->rt_gwroute;
+ if (rt != NULL && rt->rt_gwroute != NULL)
+ rt = rt->rt_gwroute;
- /* assume rt is never NULL */
- if (rt == NULL || rt->rt_gateway->sa_family != AF_LINK
- || satocsdl(rt->rt_gateway)->sdl_alen != ifp->if_addrlen) {
+ /* assume rt is never NULL */
+ if (rt == NULL || rt->rt_gateway->sa_family != AF_LINK ||
+ satocsdl(rt->rt_gateway)->sdl_alen != ifp->if_addrlen) {
DPRINTF(("strip: could not arp starmode addr %x\n",
- satocsin(dst)->sin_addr.s_addr));
+ satocsin(dst)->sin_addr.s_addr));
m_freem(m);
return (EHOSTUNREACH);
}
- dldst = CLLADDR(satocsdl(rt->rt_gateway));
- break;
+ dldst = CLLADDR(satocsdl(rt->rt_gateway));
+ break;
case AF_LINK:
dldst = CLLADDR(satocsdl(dst));
Home |
Main Index |
Thread Index |
Old Index