From: bluhm Date: Fri, 31 Mar 2023 19:43:32 +0000 (+0000) Subject: Fix white space. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3a3a7575a6186ca6fa27976cbdcbef58c633e4de;p=openbsd Fix white space. --- diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index cf8c491140f..a0da3eaaf86 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.267 2023/03/25 16:01:37 kn Exp $ */ +/* $OpenBSD: nd6.c,v 1.268 2023/03/31 19:43:32 bluhm Exp $ */ /* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */ /* @@ -804,7 +804,7 @@ nd6_rtrequest(struct ifnet *ifp, int req, struct rtentry *rt) ln->ln_rt = rt; /* this is required for "ndp" command. - shin */ if (req == RTM_ADD) { - /* + /* * gate should have some valid AF_LINK entry, * and ln expire should have some lifetime * which is specified by ndp command. @@ -812,7 +812,7 @@ nd6_rtrequest(struct ifnet *ifp, int req, struct rtentry *rt) ln->ln_state = ND6_LLINFO_REACHABLE; ln->ln_byhint = 0; } else { - /* + /* * When req == RTM_RESOLVE, rt is created and * initialized in rtrequest(), so rt_expire is 0. */ diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 4dd2f4b8ec5..0c168f20b95 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6_nbr.c,v 1.142 2023/01/06 14:17:15 kn Exp $ */ +/* $OpenBSD: nd6_nbr.c,v 1.143 2023/03/31 19:43:33 bluhm Exp $ */ /* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */ /* @@ -322,7 +322,8 @@ nd6_ns_input(struct mbuf *m, int off, int icmp6len) goto freeit; } - nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_NEIGHBOR_SOLICIT, 0); + nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_NEIGHBOR_SOLICIT, + 0); nd6_na_output(ifp, &saddr6, &taddr6, ((anycast || proxy || !tlladdr) ? 0 : ND_NA_FLAG_OVERRIDE) | @@ -378,8 +379,8 @@ nd6_ns_output(struct ifnet *ifp, const struct in6_addr *daddr6, maxlen += (sizeof(struct nd_opt_hdr) + ifp->if_addrlen + 7) & ~7; #ifdef DIAGNOSTIC if (max_linkhdr + maxlen >= MCLBYTES) { - printf("%s: max_linkhdr + maxlen >= MCLBYTES " - "(%d + %d > %d)\n", __func__, max_linkhdr, maxlen, MCLBYTES); + printf("%s: max_linkhdr + maxlen >= MCLBYTES (%d + %d > %d)\n", + __func__, max_linkhdr, maxlen, MCLBYTES); panic("%s: insufficient MCLBYTES", __func__); /* NOTREACHED */ } @@ -847,7 +848,7 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len) } freeit: - rtfree(rt); + rtfree(rt); m_freem(m); if_put(ifp); return; @@ -895,8 +896,8 @@ nd6_na_output(struct ifnet *ifp, const struct in6_addr *daddr6, maxlen += (sizeof(struct nd_opt_hdr) + ifp->if_addrlen + 7) & ~7; #ifdef DIAGNOSTIC if (max_linkhdr + maxlen >= MCLBYTES) { - printf("%s: max_linkhdr + maxlen >= MCLBYTES " - "(%d + %d > %d)\n", __func__, max_linkhdr, maxlen, MCLBYTES); + printf("%s: max_linkhdr + maxlen >= MCLBYTES (%d + %d > %d)\n", + __func__, max_linkhdr, maxlen, MCLBYTES); panic("%s: insufficient MCLBYTES", __func__); /* NOTREACHED */ } diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index 1e1e4851161..d68b7a8ef67 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6_rtr.c,v 1.169 2022/12/10 21:26:21 kn Exp $ */ +/* $OpenBSD: nd6_rtr.c,v 1.170 2023/03/31 19:43:33 bluhm Exp $ */ /* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */ /* @@ -60,7 +60,7 @@ int rt6_deleteroute(struct rtentry *, void *, unsigned int); /* - * Process Source Link-layer Address Options from + * Process Source Link-layer Address Options from * Router Solicitation / Advertisement Messages. */ void