Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Improve comment. Pointed out by maxv@n.o, thanks.



details:   https://anonhg.NetBSD.org/src/rev/d45e996b819a
branches:  trunk
changeset: 831660:d45e996b819a
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Mon Apr 09 10:32:32 2018 +0000

description:
Improve comment. Pointed out by maxv@n.o, thanks.

diffstat:

 sys/net/if_l2tp.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 854530f3d87f -r d45e996b819a sys/net/if_l2tp.c
--- a/sys/net/if_l2tp.c Mon Apr 09 10:16:46 2018 +0000
+++ b/sys/net/if_l2tp.c Mon Apr 09 10:32:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_l2tp.c,v 1.21 2018/04/09 10:06:59 knakahara Exp $   */
+/*     $NetBSD: if_l2tp.c,v 1.22 2018/04/09 10:32:32 knakahara Exp $   */
 
 /*
  * Copyright (c) 2017 Internet Initiative Japan Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_l2tp.c,v 1.21 2018/04/09 10:06:59 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_l2tp.c,v 1.22 2018/04/09 10:32:32 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -477,6 +477,9 @@
                return;
        }
 
+       /*
+        * If the head of the payload is not aligned, align it.
+        */
        addr = mtod(m, vaddr_t);
        if ((addr & 0x03) == 0) {
                /* copy and align head of payload */



Home | Main Index | Thread Index | Old Index