summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/route6.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-10-06 14:02:09 +0000
committerume <ume@FreeBSD.org>2003-10-06 14:02:09 +0000
commit6c1377b9efb980f7722b089efd455c1362419b76 (patch)
tree405658370f0fbb47ebebd2ecad933720d186cc45 /sys/netinet6/route6.c
parent08859b205f380a0e04ba5bfec234f9f14b1936b6 (diff)
downloadFreeBSD-src-6c1377b9efb980f7722b089efd455c1362419b76.zip
FreeBSD-src-6c1377b9efb980f7722b089efd455c1362419b76.tar.gz
return(code) -> return (code)
(reduce diffs against KAME)
Diffstat (limited to 'sys/netinet6/route6.c')
-rw-r--r--sys/netinet6/route6.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/netinet6/route6.c b/sys/netinet6/route6.c
index f2575bc..16f790c 100644
--- a/sys/netinet6/route6.c
+++ b/sys/netinet6/route6.c
@@ -111,7 +111,7 @@ route6_input(mp, offp, proto)
}
#endif
if (ip6_rthdr0(m, ip6, (struct ip6_rthdr0 *)rh))
- return(IPPROTO_DONE);
+ return (IPPROTO_DONE);
break;
default:
/* unknown routing type */
@@ -122,11 +122,11 @@ route6_input(mp, offp, proto)
ip6stat.ip6s_badoptions++;
icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
(caddr_t)&rh->ip6r_type - (caddr_t)ip6);
- return(IPPROTO_DONE);
+ return (IPPROTO_DONE);
}
*offp += rhlen;
- return(rh->ip6r_nxt);
+ return (rh->ip6r_nxt);
}
/*
@@ -145,7 +145,7 @@ ip6_rthdr0(m, ip6, rh0)
struct in6_addr *nextaddr, tmpaddr;
if (rh0->ip6r0_segleft == 0)
- return(0);
+ return (0);
if (rh0->ip6r0_len % 2
#ifdef COMPAT_RFC1883
@@ -160,14 +160,14 @@ ip6_rthdr0(m, ip6, rh0)
ip6stat.ip6s_badoptions++;
icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
(caddr_t)&rh0->ip6r0_len - (caddr_t)ip6);
- return(-1);
+ return (-1);
}
if ((addrs = rh0->ip6r0_len / 2) < rh0->ip6r0_segleft) {
ip6stat.ip6s_badoptions++;
icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
(caddr_t)&rh0->ip6r0_segleft - (caddr_t)ip6);
- return(-1);
+ return (-1);
}
index = addrs - rh0->ip6r0_segleft;
@@ -186,7 +186,7 @@ ip6_rthdr0(m, ip6, rh0)
IN6_IS_ADDR_V4COMPAT(nextaddr)) {
ip6stat.ip6s_badoptions++;
m_freem(m);
- return(-1);
+ return (-1);
}
if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst) ||
@@ -194,7 +194,7 @@ ip6_rthdr0(m, ip6, rh0)
IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {
ip6stat.ip6s_badoptions++;
m_freem(m);
- return(-1);
+ return (-1);
}
/*
@@ -217,5 +217,5 @@ ip6_rthdr0(m, ip6, rh0)
ip6_forward(m, 1);
#endif
- return(-1); /* m would be freed in ip6_forward() */
+ return (-1); /* m would be freed in ip6_forward() */
}
OpenPOWER on IntegriCloud