Add XXX (we don't handle IPv6 Jumbograms), and whitespace. trunk
authormaxv <maxv@NetBSD.org>
Wed, 21 Mar 2018 15:36:28 +0000
branchtrunk
changeset 317374 234434798ae9
parent 317373 770c2c1946a3
child 317375 af638b06e307
Add XXX (we don't handle IPv6 Jumbograms), and whitespace.
sys/net/npf/npf_inet.c
--- a/sys/net/npf/npf_inet.c	Wed Mar 21 15:33:25 2018 +0000
+++ b/sys/net/npf/npf_inet.c	Wed Mar 21 15:36:28 2018 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_inet.c,v 1.43 2018/03/21 10:08:16 maxv Exp $	*/
+/*	$NetBSD: npf_inet.c,v 1.44 2018/03/21 15:36:28 maxv Exp $	*/
 
 /*-
  * Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 
 #ifdef _KERNEL
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.43 2018/03/21 10:08:16 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.44 2018/03/21 15:36:28 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -369,6 +369,10 @@
 			return NPC_FMTERR;
 		}
 
+		/*
+		 * XXX: We don't handle IPv6 Jumbograms.
+		 */
+
 		/* Set initial next-protocol value. */
 		hlen = sizeof(struct ip6_hdr);
 		npc->npc_proto = ip6->ip6_nxt;
@@ -433,7 +437,7 @@
 		/* Cache: layer 3 - IPv6. */
 		npc->npc_alen = sizeof(struct in6_addr);
 		npc->npc_ips[NPF_SRC] = (npf_addr_t *)&ip6->ip6_src;
-		npc->npc_ips[NPF_DST]= (npf_addr_t *)&ip6->ip6_dst;
+		npc->npc_ips[NPF_DST] = (npf_addr_t *)&ip6->ip6_dst;
 
 		npc->npc_ip.v6 = ip6;
 		flags |= NPC_IP6;