Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec Move the ipsec6_input prototype in...



details:   https://anonhg.NetBSD.org/src/rev/79b27b930bd3
branches:  trunk
changeset: 318535:79b27b930bd3
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Apr 28 14:25:56 2018 +0000
description:
Move the ipsec6_input prototype into ipsec6.h, and style.

diffstat:

 sys/netipsec/ipsec.h  |   5 +----
 sys/netipsec/ipsec6.h |  19 ++++++-------------
 2 files changed, 7 insertions(+), 17 deletions(-)

diffs (69 lines):

diff -r ed5233f21e2f -r 79b27b930bd3 sys/netipsec/ipsec.h
--- a/sys/netipsec/ipsec.h      Sat Apr 28 14:21:03 2018 +0000
+++ b/sys/netipsec/ipsec.h      Sat Apr 28 14:25:56 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec.h,v 1.76 2018/04/28 14:21:03 maxv Exp $  */
+/*     $NetBSD: ipsec.h,v 1.77 2018/04/28 14:25:56 maxv Exp $  */
 /*     $FreeBSD: ipsec.h,v 1.2.4.2 2004/02/14 22:23:23 bms Exp $       */
 /*     $KAME: ipsec.h,v 1.53 2001/11/20 08:32:38 itojun Exp $  */
 
@@ -264,9 +264,6 @@
 int ipsec4_output(struct mbuf *, struct inpcb *, int, u_long *, bool *, bool *);
 int ipsec4_input(struct mbuf *, int);
 int ipsec4_forward(struct mbuf *, int *);
-#ifdef INET6
-int ipsec6_input(struct mbuf *);
-#endif
 
 struct inpcb;
 int ipsec_init_pcbpolicy(struct socket *so, struct inpcbpolicy **);
diff -r ed5233f21e2f -r 79b27b930bd3 sys/netipsec/ipsec6.h
--- a/sys/netipsec/ipsec6.h     Sat Apr 28 14:21:03 2018 +0000
+++ b/sys/netipsec/ipsec6.h     Sat Apr 28 14:25:56 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec6.h,v 1.27 2018/04/19 08:27:38 maxv Exp $ */
+/*     $NetBSD: ipsec6.h,v 1.28 2018/04/28 14:25:56 maxv Exp $ */
 /*     $FreeBSD: ipsec6.h,v 1.1.4.1 2003/01/24 05:11:35 sam Exp $      */
 /*     $KAME: ipsec.h,v 1.44 2001/03/23 08:08:47 itojun Exp $  */
 
@@ -31,10 +31,6 @@
  * SUCH DAMAGE.
  */
 
-/*
- * IPsec controller part.
- */
-
 #ifndef _NETIPSEC_IPSEC6_H_
 #define _NETIPSEC_IPSEC6_H_
 
@@ -50,24 +46,21 @@
 extern int ip6_ipsec_ecn;
 extern struct secpolicy ip6_def_policy;
 
-struct inpcb;
 struct in6pcb;
-
-struct secpolicy *ipsec6_check_policy(struct mbuf *, 
-    struct in6pcb *, int, int*,int*);
-
 struct tcp6cb;
 
-size_t ipsec6_hdrsiz_tcp(struct tcpcb*);
+struct secpolicy *ipsec6_check_policy(struct mbuf *, struct in6pcb *,
+    int, int *, int *);
+size_t ipsec6_hdrsiz_tcp(struct tcpcb *);
 
-/* NetBSD protosw ctlin entrypoint */
 void *esp6_ctlinput(int, const struct sockaddr *, void *);
 void *ah6_ctlinput(int, const struct sockaddr *, void *);
 
 struct m_tag;
 int ipsec6_common_input(struct mbuf **, int *, int);
 int ipsec6_common_input_cb(struct mbuf *, struct secasvar *, int, int);
-int ipsec6_process_packet(struct mbuf*, const struct ipsecrequest *);
+int ipsec6_process_packet(struct mbuf *, const struct ipsecrequest *);
+int ipsec6_input(struct mbuf *);
 #endif /*_KERNEL*/
 
 #endif /* !_NETIPSEC_IPSEC6_H_ */



Home | Main Index | Thread Index | Old Index