Source-Changes-HG archive

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

[src/trunk]: src/sys Move PACKET_TAG_NPF where it belongs to.



details:   https://anonhg.NetBSD.org/src/rev/dc610cb91fa7
branches:  trunk
changeset: 459131:dc610cb91fa7
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sun Aug 25 16:38:20 2019 +0000

description:
Move PACKET_TAG_NPF where it belongs to.

diffstat:

 sys/net/npf/npf.h |  5 +++--
 sys/sys/mbuf.h    |  3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r bac5ab42ac04 -r dc610cb91fa7 sys/net/npf/npf.h
--- a/sys/net/npf/npf.h Sun Aug 25 13:21:03 2019 +0000
+++ b/sys/net/npf/npf.h Sun Aug 25 16:38:20 2019 +0000
@@ -253,8 +253,9 @@
 #define        NPF_LAYER_2                     2
 #define        NPF_LAYER_3                     3
 
-/* XXX mbuf.h: just for now. */
-#define        PACKET_TAG_NPF                  10
+/*
+ * Flags passed via nbuf tags.
+ */
 #define        NPF_NTAG_PASS                   0x0001
 
 /*
diff -r bac5ab42ac04 -r dc610cb91fa7 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Sun Aug 25 13:21:03 2019 +0000
+++ b/sys/sys/mbuf.h    Sun Aug 25 16:38:20 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbuf.h,v 1.219 2019/01/17 02:47:15 knakahara Exp $     */
+/*     $NetBSD: mbuf.h,v 1.220 2019/08/25 16:38:20 rmind Exp $ */
 
 /*
  * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -799,6 +799,7 @@
 /* Packet tag types */
 #define PACKET_TAG_NONE                        0  /* Nothing */
 #define PACKET_TAG_SO                  4  /* sending socket pointer */
+#define PACKET_TAG_NPF                 10 /* packet filter */
 #define PACKET_TAG_PF                  11 /* packet filter */
 #define PACKET_TAG_ALTQ_QID            12 /* ALTQ queue id */
 #define PACKET_TAG_IPSEC_OUT_DONE      18



Home | Main Index | Thread Index | Old Index