Source-Changes-HG archive

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

[src/trunk]: src/sys Remove unused mbuf tags.



details:   https://anonhg.NetBSD.org/src/rev/a76895021945
branches:  trunk
changeset: 830189:a76895021945
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Feb 28 10:30:20 2018 +0000

description:
Remove unused mbuf tags.

diffstat:

 sys/netinet/ip_encap.h |   4 ++--
 sys/sys/mbuf.h         |  18 +-----------------
 2 files changed, 3 insertions(+), 19 deletions(-)

diffs (60 lines):

diff -r 731a9052bc50 -r a76895021945 sys/netinet/ip_encap.h
--- a/sys/netinet/ip_encap.h    Wed Feb 28 10:16:19 2018 +0000
+++ b/sys/netinet/ip_encap.h    Wed Feb 28 10:30:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_encap.h,v 1.23 2017/11/15 10:42:41 knakahara Exp $  */
+/*     $NetBSD: ip_encap.h,v 1.24 2018/02/28 10:30:20 maxv Exp $       */
 /*     $KAME: ip_encap.h,v 1.7 2000/03/25 07:23:37 sumikawa Exp $      */
 
 /*
@@ -75,7 +75,7 @@
        struct sockaddr *dstmask;
        int (*func) (struct mbuf *, int, int, void *);
        const struct encapsw *esw;
-       void *arg;                      /* passed via PACKET_TAG_ENCAP */
+       void *arg;
        struct psref_target     psref;
 };
 
diff -r 731a9052bc50 -r a76895021945 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Wed Feb 28 10:16:19 2018 +0000
+++ b/sys/sys/mbuf.h    Wed Feb 28 10:30:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbuf.h,v 1.177 2018/02/27 14:28:01 maxv Exp $  */
+/*     $NetBSD: mbuf.h,v 1.178 2018/02/28 10:30:20 maxv Exp $  */
 
 /*
  * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -899,32 +899,16 @@
 
 /* Packet tag types */
 #define PACKET_TAG_NONE                                0  /* Nothing */
-                                                  /* 1: Used to be VLAN ID */
-#define PACKET_TAG_ENCAP                       2  /* encapsulation data */
-#define PACKET_TAG_ESP                         3  /* ESP information */
 #define PACKET_TAG_SO                          4  /* sending socket pointer */
 #define PACKET_TAG_PF                          11 /* packet filter */
 #define PACKET_TAG_ALTQ_QID                    12 /* ALTQ queue id */
-
-#define PACKET_TAG_IPSEC_IN_CRYPTO_DONE                16
-#define PACKET_TAG_IPSEC_IN_DONE               17
 #define PACKET_TAG_IPSEC_OUT_DONE              18
-#define        PACKET_TAG_IPSEC_OUT_CRYPTO_NEEDED      19  /* NIC IPsec crypto req'ed */
-#define        PACKET_TAG_IPSEC_IN_COULD_DO_CRYPTO     20  /* NIC notifies IPsec */
-#define        PACKET_TAG_IPSEC_PENDING_TDB            21  /* Reminder to do IPsec */
-
-#define        PACKET_TAG_IPSEC_SOCKET                 22 /* IPSEC socket ref */
-#define        PACKET_TAG_IPSEC_HISTORY                23 /* IPSEC history */
-
 #define        PACKET_TAG_IPSEC_NAT_T_PORTS            25 /* two uint16_t */
-
 #define        PACKET_TAG_INET6                        26 /* IPv6 info */
-
 #define        PACKET_TAG_TUNNEL_INFO                  28 /* tunnel identification and
                                                    * protocol callback, for
                                                    * loop detection/recovery
                                                    */
-
 #define        PACKET_TAG_MPLS                         29 /* Indicate it's for MPLS */
 #define        PACKET_TAG_SRCROUTE                     30 /* IPv4 source routing */
 



Home | Main Index | Thread Index | Old Index