Index: if_spppsubr.c =================================================================== RCS file: /cvs/src/sys/net/if_spppsubr.c,v retrieving revision 1.160 diff -u -p -r1.160 if_spppsubr.c --- if_spppsubr.c 20 Jan 2017 00:51:56 -0000 1.160 +++ if_spppsubr.c 21 Jan 2017 05:33:06 -0000 @@ -19,8 +19,8 @@ * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR @@ -28,7 +28,7 @@ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * From: Version 2.6, Tue May 12 17:10:39 MSD 1998 @@ -400,7 +400,7 @@ static const struct cp *cps[IDX_COUNT] = }; - /* +/* * Exported functions, comprising our interface to the lower layer. */ @@ -890,7 +890,7 @@ sppp_ioctl(struct ifnet *ifp, u_long cmd return rv; } - /* +/* * PPP protocol implementation. */ @@ -1324,7 +1324,7 @@ sppp_cp_input(const struct cp *cp, struc if (debug) addlog(SPP_FMT "lcp got echo rep\n", SPP_ARGS(ifp)); - + nmagic = (u_long)p[0] << 24 | (u_long)p[1] << 16 | p[2] << 8 | p[3]; @@ -1590,7 +1590,7 @@ sppp_cp_change_state(const struct cp *cp break; } } - /* +/* *--------------------------------------------------------------------------* * * * The LCP implementation. * @@ -2251,7 +2251,7 @@ sppp_lcp_check_and_close(struct sppp *sp lcp.Close(sp); } - /* +/* *--------------------------------------------------------------------------* * * * The IPCP implementation. * @@ -3657,7 +3657,7 @@ sppp_chap_scr(struct sppp *sp) sp->myauth.name, 0); } - /* +/* *--------------------------------------------------------------------------* * * * The PAP implementation. * @@ -3962,7 +3962,7 @@ sppp_pap_scr(struct sppp *sp) (size_t)pwdlen, sp->myauth.secret, 0); } - /* +/* * Random miscellaneous functions. */ @@ -4370,7 +4370,7 @@ sppp_update_ip6_addr(void *arg) goto out; } - /* + /* * Changing the link-local address requires purging all * existing addresses and routes for the interface first. */ @@ -4384,7 +4384,7 @@ sppp_update_ip6_addr(void *arg) goto out; } - /* + /* * Code below changes address parameters only, not the address itself. */ @@ -4429,7 +4429,7 @@ sppp_set_ip6_addr(struct sppp *sp, const } else ifra->ifra_dstaddr.sin6_family = AF_UNSPEC; - /* + /* * Don't change the existing prefixlen. * It is common to use a /64 for IPv6 over point-to-point links * to allow e.g. neighbour discovery and autoconf to work. @@ -4535,7 +4535,7 @@ sppp_set_params(struct sppp *sp, struct struct spppreq *spr; spr = malloc(sizeof(*spr), M_DEVBUF, M_WAITOK); - + if (copyin((caddr_t)ifr->ifr_data, spr, sizeof(*spr)) != 0) { free(spr, M_DEVBUF, 0); return EFAULT;