Source-Changes-HG archive

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

[src/trunk]: src/sys move ipsec sysctl index to IPPROTO_AH (instead of IPPROT...



details:   https://anonhg.NetBSD.org/src/rev/8cfefd027da5
branches:  trunk
changeset: 474253:8cfefd027da5
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jul 02 08:46:47 1999 +0000

description:
move ipsec sysctl index to IPPROTO_AH (instead of IPPROTO_ESP),
so that you can perform sysctl operation when ESP is not compiled in.

diffstat:

 sys/netinet/in.h   |  5 +++--
 sys/netinet6/in6.h |  2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 225110b5271a -r 8cfefd027da5 sys/netinet/in.h
--- a/sys/netinet/in.h  Fri Jul 02 08:28:04 1999 +0000
+++ b/sys/netinet/in.h  Fri Jul 02 08:46:47 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in.h,v 1.41 1999/07/01 08:12:49 itojun Exp $   */
+/*     $NetBSD: in.h,v 1.42 1999/07/02 08:46:47 itojun Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -268,7 +268,7 @@
  * Third level is protocol number.
  * Fourth level is desired variable within that protocol.
  */
-#define        IPPROTO_MAXID   (IPPROTO_ESP + 1)       /* don't list to IPPROTO_MAX */
+#define        IPPROTO_MAXID   (IPPROTO_AH + 1)        /* don't list to IPPROTO_MAX */
 
 #define        CTL_IPPROTO_NAMES { \
        { "ip", CTLTYPE_NODE }, \
@@ -321,6 +321,7 @@
        { 0, 0 }, \
        { 0, 0 }, \
        { 0, 0 }, \
+       { 0, 0 }, \
        { "ipsec", CTLTYPE_NODE }, \
 }
 
diff -r 225110b5271a -r 8cfefd027da5 sys/netinet6/in6.h
--- a/sys/netinet6/in6.h        Fri Jul 02 08:28:04 1999 +0000
+++ b/sys/netinet6/in6.h        Fri Jul 02 08:46:47 1999 +0000
@@ -405,6 +405,7 @@
        { 0, 0 }, \
        { 0, 0 }, \
        { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, \
+       { 0, 0 }, \
        { "ipsec6", CTLTYPE_NODE }, \
        { 0, 0 }, \
        { 0, 0 }, \
@@ -412,7 +413,6 @@
        { 0, 0 }, \
        { 0, 0 }, \
        { 0, 0 }, \
-       { 0, 0 }, \
        { "icmp6", CTLTYPE_NODE }, \
        { 0, 0 }, \
        { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, \



Home | Main Index | Thread Index | Old Index