Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf Add XXX (we don't handle IPv6 Jumbograms), and w...
details: https://anonhg.NetBSD.org/src/rev/9463a1a63ce8
branches: trunk
changeset: 360655:9463a1a63ce8
user: maxv <maxv%NetBSD.org@localhost>
date: Wed Mar 21 15:36:28 2018 +0000
description:
Add XXX (we don't handle IPv6 Jumbograms), and whitespace.
diffstat:
sys/net/npf/npf_inet.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r d93098c1c110 -r 9463a1a63ce8 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;
Home |
Main Index |
Thread Index |
Old Index