Module Name:    src
Committed By:   knakahara
Date:           Mon Apr  9 10:32:32 UTC 2018

Modified Files:
        src/sys/net: if_l2tp.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/net/if_l2tp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_l2tp.c
diff -u src/sys/net/if_l2tp.c:1.21 src/sys/net/if_l2tp.c:1.22
--- src/sys/net/if_l2tp.c:1.21	Mon Apr  9 10:06:59 2018
+++ src/sys/net/if_l2tp.c	Mon Apr  9 10:32:32 2018
@@ -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 @@ l2tp_input(struct mbuf *m, struct ifnet 
 		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 */

Reply via email to