diff options
author | 2016-02-08 23:19:00 +0000 | |
---|---|---|
committer | 2016-02-08 23:19:00 +0000 | |
commit | 3f3ebacfcfdf73791eee246076f509df6bf19ccb (patch) | |
tree | ac1f1ce6eadc6064ad97af73500e0009c90643cc | |
parent | typos (diff) | |
download | wireguard-openbsd-3f3ebacfcfdf73791eee246076f509df6bf19ccb.tar.xz wireguard-openbsd-3f3ebacfcfdf73791eee246076f509df6bf19ccb.zip |
Kill trailing whitespace.
-rw-r--r-- | usr.sbin/rtadvd/config.c | 10 | ||||
-rw-r--r-- | usr.sbin/rtadvd/config.h | 6 | ||||
-rw-r--r-- | usr.sbin/rtadvd/dump.c | 6 | ||||
-rw-r--r-- | usr.sbin/rtadvd/dump.h | 6 | ||||
-rw-r--r-- | usr.sbin/rtadvd/if.c | 10 | ||||
-rw-r--r-- | usr.sbin/rtadvd/if.h | 6 | ||||
-rw-r--r-- | usr.sbin/rtadvd/rtadvd.c | 32 | ||||
-rw-r--r-- | usr.sbin/rtadvd/rtadvd.h | 6 | ||||
-rw-r--r-- | usr.sbin/rtadvd/timer.c | 6 | ||||
-rw-r--r-- | usr.sbin/rtadvd/timer.h | 6 |
10 files changed, 47 insertions, 47 deletions
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index 23c0084eb90..e85d623b177 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -1,10 +1,10 @@ -/* $OpenBSD: config.c,v 1.48 2016/02/08 23:15:37 jca Exp $ */ +/* $OpenBSD: config.c,v 1.49 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: config.c,v 1.62 2002/05/29 10:13:10 itojun Exp $ */ /* * Copyright (C) 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -678,7 +678,7 @@ delete_prefix(struct rainfo *rai, struct prefix *prefix) TAILQ_REMOVE(&rai->prefixes, prefix, entry); log_debug("prefix %s/%d was deleted on %s", - inet_ntop(AF_INET6, &prefix->prefix, ntopbuf, INET6_ADDRSTRLEN), + inet_ntop(AF_INET6, &prefix->prefix, ntopbuf, INET6_ADDRSTRLEN), prefix->prefixlen, rai->ifname); free(prefix); rai->pfxs--; @@ -879,7 +879,7 @@ make_packet(struct rainfo *rainfo) if (pfx->pltimeexpire == 0) pltime = pfx->preflifetime; else - pltime = (u_int32_t)(pfx->pltimeexpire > now.tv_sec ? + pltime = (u_int32_t)(pfx->pltimeexpire > now.tv_sec ? pfx->pltimeexpire - now.tv_sec : 0); if (vltime < pltime) { /* diff --git a/usr.sbin/rtadvd/config.h b/usr.sbin/rtadvd/config.h index 089969b8408..be5a29a1c5c 100644 --- a/usr.sbin/rtadvd/config.h +++ b/usr.sbin/rtadvd/config.h @@ -1,10 +1,10 @@ -/* $OpenBSD: config.h,v 1.9 2014/06/07 15:28:21 deraadt Exp $ */ +/* $OpenBSD: config.h,v 1.10 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: config.h,v 1.3 2000/05/16 13:34:13 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/usr.sbin/rtadvd/dump.c b/usr.sbin/rtadvd/dump.c index e7b87287149..57a94b88f51 100644 --- a/usr.sbin/rtadvd/dump.c +++ b/usr.sbin/rtadvd/dump.c @@ -1,10 +1,10 @@ -/* $OpenBSD: dump.c,v 1.18 2016/02/08 22:44:37 jca Exp $ */ +/* $OpenBSD: dump.c,v 1.19 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: dump.c,v 1.27 2002/05/29 14:23:55 itojun Exp $ */ /* * Copyright (C) 2000 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/usr.sbin/rtadvd/dump.h b/usr.sbin/rtadvd/dump.h index e4b3a53e918..b577ca1c70d 100644 --- a/usr.sbin/rtadvd/dump.h +++ b/usr.sbin/rtadvd/dump.h @@ -1,10 +1,10 @@ -/* $OpenBSD: dump.h,v 1.4 2013/11/12 22:27:13 deraadt Exp $ */ +/* $OpenBSD: dump.h,v 1.5 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: dump.h,v 1.1 2000/05/23 11:31:26 itojun Exp $ */ /* * Copyright (C) 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/usr.sbin/rtadvd/if.c b/usr.sbin/rtadvd/if.c index 25295ee5865..2f768a615d4 100644 --- a/usr.sbin/rtadvd/if.c +++ b/usr.sbin/rtadvd/if.c @@ -1,10 +1,10 @@ -/* $OpenBSD: if.c,v 1.36 2016/02/05 11:26:26 reyk Exp $ */ +/* $OpenBSD: if.c,v 1.37 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: if.c,v 1.17 2001/01/21 15:27:30 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -71,7 +71,7 @@ static void get_rtaddrs(int addrs, struct sockaddr *sa, struct sockaddr **rti_info) { int i; - + for (i = 0; i < RTAX_MAX; i++) { if (addrs & (1 << i)) { rti_info[i] = sa; @@ -341,7 +341,7 @@ get_prefixlen(char *buf) struct rt_msghdr *rtm = (struct rt_msghdr *)buf; struct sockaddr *sa, *rti_info[RTAX_MAX]; u_char *p, *lim; - + sa = (struct sockaddr *)(buf + rtm->rtm_hdrlen); get_rtaddrs(rtm->rtm_addrs, sa, rti_info); sa = rti_info[RTAX_NETMASK]; diff --git a/usr.sbin/rtadvd/if.h b/usr.sbin/rtadvd/if.h index 2e3cc5cb4cd..077012ff8b4 100644 --- a/usr.sbin/rtadvd/if.h +++ b/usr.sbin/rtadvd/if.h @@ -1,10 +1,10 @@ -/* $OpenBSD: if.h,v 1.11 2015/12/01 12:11:31 jca Exp $ */ +/* $OpenBSD: if.h,v 1.12 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: if.h,v 1.6 2001/01/21 15:37:14 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c index 98b9518eeb2..cd93a3dd0f8 100644 --- a/usr.sbin/rtadvd/rtadvd.c +++ b/usr.sbin/rtadvd/rtadvd.c @@ -1,10 +1,10 @@ -/* $OpenBSD: rtadvd.c,v 1.65 2016/02/08 23:15:37 jca Exp $ */ +/* $OpenBSD: rtadvd.c,v 1.66 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -334,7 +334,7 @@ rtmsg_input(void) "(type = %d, len = %d)", rtmsg_type(msg), n); if (n > rtmsg_len(msg)) { /* - * This usually won't happen for messages received on + * This usually won't happen for messages received on * a routing socket. */ if (dflag) @@ -588,7 +588,7 @@ rtadvd_input(void) case ND_ROUTER_ADVERT: /* * Message verification - RFC-2461 6.1.2 - * XXX: there's a same dilemma as above... + * XXX: there's a same dilemma as above... */ if (*hlimp != 255) { log_info("RA with invalid hop limit(%d) " @@ -699,7 +699,7 @@ rs_input(int len, struct nd_router_solicit *rs, if (sol) { sol->addr = *from; /*XXX RFC2553 need clarification on flowinfo */ - sol->addr.sin6_flowinfo = 0; + sol->addr.sin6_flowinfo = 0; SLIST_INSERT_HEAD(&ra->soliciters, sol, entry); } @@ -766,7 +766,7 @@ ra_input(int len, struct nd_router_advert *ra, inet_ntop(AF_INET6, &from->sin6_addr, ntopbuf, INET6_ADDRSTRLEN), if_indextoname(pi->ipi6_ifindex, ifnamebuf)); - + /* ND option check */ memset(&ndopts, 0, sizeof(ndopts)); SLIST_INIT(&ndopts.nd_opts_list); @@ -789,7 +789,7 @@ ra_input(int len, struct nd_router_advert *ra, goto done; /* not our interface */ rai->rainput++; /* increment statistics */ - + /* Cur Hop Limit value */ if (ra->nd_ra_curhoplimit && rai->hoplimit && ra->nd_ra_curhoplimit != rai->hoplimit) { @@ -828,7 +828,7 @@ ra_input(int len, struct nd_router_advert *ra, reachabletime != rai->reachabletime) { log_info("ReachableTime inconsistent on %s:" " %d from %s, %d from us", - rai->ifname, reachabletime, + rai->ifname, reachabletime, inet_ntop(AF_INET6, &from->sin6_addr, ntopbuf, INET6_ADDRSTRLEN), rai->reachabletime); @@ -875,7 +875,7 @@ ra_input(int len, struct nd_router_advert *ra, if (inconsistent) rai->rainconsistent++; - + done: free_ndopts(&ndopts); return; @@ -1012,7 +1012,7 @@ find_prefix(struct rainfo *rai, struct in6_addr *prefix, int plen) if (memcmp((void *)prefix, (void *)&pp->prefix, bytelen)) continue; if (bitlen == 0 || - ((prefix->s6_addr[bytelen] & bitmask) == + ((prefix->s6_addr[bytelen] & bitmask) == (pp->prefix.s6_addr[bytelen] & bitmask))) { return(pp); } @@ -1038,7 +1038,7 @@ prefix_match(struct in6_addr *p0, int plen0, return(0); if (bitlen == 0 || ((p0->s6_addr[bytelen] & bitmask) == - (p1->s6_addr[bytelen] & bitmask))) { + (p1->s6_addr[bytelen] & bitmask))) { return(1); } @@ -1118,7 +1118,7 @@ nd6_options(struct nd_opt_hdr *hdr, int limit, case ND_OPT_PREFIX_INFORMATION: { struct nd_opt *pfx; - + if (ndopts->nd_opts_pi == 0) { ndopts->nd_opts_pi = (struct nd_opt_prefix_info *)hdr; @@ -1175,7 +1175,7 @@ sock_open(void) if (rcvcmsgbuf == NULL) fatal("malloc"); - sndcmsgbuflen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + + sndcmsgbuflen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + CMSG_SPACE(sizeof(int)); sndcmsgbuf = malloc(sndcmsgbuflen); if (sndcmsgbuf == NULL) @@ -1314,7 +1314,7 @@ ra_output(struct rainfo *rainfo) } log_debug("send RA on %s, # of waitings = %d", - rainfo->ifname, rainfo->waiting); + rainfo->ifname, rainfo->waiting); i = sendmsg(sock, &sndmhdr, 0); @@ -1381,7 +1381,7 @@ ra_timer_update(void *data, struct timeval *tm) * between the interface's configured MinRtrAdvInterval and * MaxRtrAdvInterval (RFC2461 6.2.4). */ - interval = rai->mininterval; + interval = rai->mininterval; interval += arc4random_uniform(rai->maxinterval - rai->mininterval); /* diff --git a/usr.sbin/rtadvd/rtadvd.h b/usr.sbin/rtadvd/rtadvd.h index f55da8d64f5..792075b8ee0 100644 --- a/usr.sbin/rtadvd/rtadvd.h +++ b/usr.sbin/rtadvd/rtadvd.h @@ -1,10 +1,10 @@ -/* $OpenBSD: rtadvd.h,v 1.19 2016/02/08 23:15:37 jca Exp $ */ +/* $OpenBSD: rtadvd.h,v 1.20 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: rtadvd.h,v 1.20 2002/05/29 10:13:10 itojun Exp $ */ /* * Copyright (C) 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/usr.sbin/rtadvd/timer.c b/usr.sbin/rtadvd/timer.c index 5978ad47b5d..548da1985e3 100644 --- a/usr.sbin/rtadvd/timer.c +++ b/usr.sbin/rtadvd/timer.c @@ -1,10 +1,10 @@ -/* $OpenBSD: timer.c,v 1.14 2015/10/25 22:11:34 jca Exp $ */ +/* $OpenBSD: timer.c,v 1.15 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: timer.c,v 1.7 2002/05/21 14:26:55 itojun Exp $ */ /* * Copyright (C) 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/usr.sbin/rtadvd/timer.h b/usr.sbin/rtadvd/timer.h index 20ffa8b195e..183e83666d0 100644 --- a/usr.sbin/rtadvd/timer.h +++ b/usr.sbin/rtadvd/timer.h @@ -1,10 +1,10 @@ -/* $OpenBSD: timer.h,v 1.7 2013/04/30 12:30:40 florian Exp $ */ +/* $OpenBSD: timer.h,v 1.8 2016/02/08 23:19:00 jca Exp $ */ /* $KAME: timer.h,v 1.3 2000/05/27 11:30:43 jinmei Exp $ */ /* * Copyright (C) 1998 WIDE Project. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -16,7 +16,7 @@ * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |