Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Re-make ip6_nexthdr global, it will be used in ...



details:   https://anonhg.NetBSD.org/src/rev/660972d0614f
branches:  trunk
changeset: 359532:660972d0614f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Feb 14 05:29:39 2018 +0000

description:
Re-make ip6_nexthdr global, it will be used in soon-to-be-added code...

diffstat:

 sys/netinet6/ip6_input.c |  6 +++---
 sys/netinet6/ip6_var.h   |  3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r e0b73af81fc0 -r 660972d0614f sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c  Wed Feb 14 05:24:44 2018 +0000
+++ b/sys/netinet6/ip6_input.c  Wed Feb 14 05:29:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_input.c,v 1.191 2018/02/12 12:52:12 maxv Exp $     */
+/*     $NetBSD: ip6_input.c,v 1.192 2018/02/14 05:29:39 maxv Exp $     */
 /*     $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $     */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.191 2018/02/12 12:52:12 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.192 2018/02/14 05:29:39 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -1402,7 +1402,7 @@
 /*
  * get next header offset.  m will be retained.
  */
-static int
+int
 ip6_nexthdr(struct mbuf *m, int off, int proto, int *nxtp)
 {
        struct ip6_hdr ip6;
diff -r e0b73af81fc0 -r 660972d0614f sys/netinet6/ip6_var.h
--- a/sys/netinet6/ip6_var.h    Wed Feb 14 05:24:44 2018 +0000
+++ b/sys/netinet6/ip6_var.h    Wed Feb 14 05:29:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_var.h,v 1.79 2018/01/30 15:54:02 maxv Exp $        */
+/*     $NetBSD: ip6_var.h,v 1.80 2018/02/14 05:29:39 maxv Exp $        */
 /*     $KAME: ip6_var.h,v 1.33 2000/06/11 14:59:20 jinmei Exp $        */
 
 /*
@@ -287,6 +287,7 @@
 void   ip6_freemoptions(struct ip6_moptions *);
 int    ip6_unknown_opt(u_int8_t *, struct mbuf *, int);
 int    ip6_get_prevhdr(struct mbuf *, int);
+int    ip6_nexthdr(struct mbuf *, int, int, int *);
 int    ip6_lasthdr(struct mbuf *, int, int, int *);
 
 struct m_tag *ip6_addaux(struct mbuf *);



Home | Main Index | Thread Index | Old Index