summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/icmp6.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/icmp6.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/icmp6.c')
-rw-r--r--sys/netinet6/icmp6.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 1373131..07b3373 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -848,7 +848,7 @@ icmp6_input(mp, offp, proto)
deliver:
if (icmp6_notify_error(m, off, icmp6len, code)) {
/* In this case, m should've been freed. */
- return(IPPROTO_DONE);
+ return (IPPROTO_DONE);
}
break;
@@ -895,7 +895,7 @@ icmp6_notify_error(m, off, icmp6len, code)
sizeof(*icmp6) + sizeof(struct ip6_hdr));
if (icmp6 == NULL) {
icmp6stat.icp6s_tooshort++;
- return(-1);
+ return (-1);
}
#endif
eip6 = (struct ip6_hdr *)(icmp6 + 1);
@@ -932,7 +932,7 @@ icmp6_notify_error(m, off, icmp6len, code)
eoff, sizeof(*eh));
if (eh == NULL) {
icmp6stat.icp6s_tooshort++;
- return(-1);
+ return (-1);
}
#endif
@@ -961,7 +961,7 @@ icmp6_notify_error(m, off, icmp6len, code)
eoff, sizeof(*rth));
if (rth == NULL) {
icmp6stat.icp6s_tooshort++;
- return(-1);
+ return (-1);
}
#endif
rthlen = (rth->ip6r_len + 1) << 3;
@@ -987,7 +987,7 @@ icmp6_notify_error(m, off, icmp6len, code)
eoff, rthlen);
if (rth0 == NULL) {
icmp6stat.icp6s_tooshort++;
- return(-1);
+ return (-1);
}
#endif
/* just ignore a bogus header */
@@ -1010,7 +1010,7 @@ icmp6_notify_error(m, off, icmp6len, code)
eoff, sizeof(*fh));
if (fh == NULL) {
icmp6stat.icp6s_tooshort++;
- return(-1);
+ return (-1);
}
#endif
/*
@@ -1045,7 +1045,7 @@ icmp6_notify_error(m, off, icmp6len, code)
sizeof(*icmp6) + sizeof(struct ip6_hdr));
if (icmp6 == NULL) {
icmp6stat.icp6s_tooshort++;
- return(-1);
+ return (-1);
}
#endif
@@ -1114,11 +1114,11 @@ icmp6_notify_error(m, off, icmp6len, code)
&ip6cp);
}
}
- return(0);
+ return (0);
freeit:
m_freem(m);
- return(-1);
+ return (-1);
}
void
@@ -1397,7 +1397,7 @@ ni6_input(m, off)
MGETHDR(n, M_DONTWAIT, m->m_type);
if (n == NULL) {
m_freem(m);
- return(NULL);
+ return (NULL);
}
M_MOVE_PKTHDR(n, m); /* just for recvif */
if (replylen > MHLEN) {
@@ -1474,13 +1474,13 @@ ni6_input(m, off)
nni6->ni_type = ICMP6_NI_REPLY;
m_freem(m);
- return(n);
+ return (n);
bad:
m_freem(m);
if (n)
m_freem(n);
- return(NULL);
+ return (NULL);
}
#undef hostnamelen
@@ -1672,7 +1672,7 @@ ni6_addrs(ni6, m, ifpp, subj)
switch (ni6->ni_code) {
case ICMP6_NI_SUBJ_IPV6:
if (subj == NULL) /* must be impossible... */
- return(0);
+ return (0);
subj_ip6 = (struct sockaddr_in6 *)subj;
break;
default:
@@ -1680,7 +1680,7 @@ ni6_addrs(ni6, m, ifpp, subj)
* XXX: we only support IPv6 subject address for
* this Qtype.
*/
- return(0);
+ return (0);
}
}
@@ -1743,14 +1743,14 @@ ni6_addrs(ni6, m, ifpp, subj)
if (iffound) {
*ifpp = ifp;
IFNET_RUNLOCK();
- return(addrsofif);
+ return (addrsofif);
}
addrs += addrsofif;
}
IFNET_RUNLOCK();
- return(addrs);
+ return (addrs);
}
static int
@@ -1769,7 +1769,7 @@ ni6_store_addrs(ni6, nni6, ifp0, resid)
u_int32_t ltime;
if (ifp0 == NULL && !(niflags & NI_NODEADDR_FLAG_ALL))
- return(0); /* needless to copy */
+ return (0); /* needless to copy */
IFNET_RLOCK();
again:
@@ -1839,7 +1839,7 @@ ni6_store_addrs(ni6, nni6, ifp0, resid)
nni6->ni_flags |=
NI_NODEADDR_FLAG_TRUNCATE;
IFNET_RUNLOCK();
- return(copied);
+ return (copied);
}
/*
@@ -1895,7 +1895,7 @@ ni6_store_addrs(ni6, nni6, ifp0, resid)
IFNET_RUNLOCK();
- return(copied);
+ return (copied);
}
/*
@@ -2785,7 +2785,7 @@ icmp6_ctloutput(so, sopt)
break;
}
- return(error);
+ return (error);
}
#ifdef HAVE_NRL_INPCB
#undef sotoin6pcb
OpenPOWER on IntegriCloud