Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet fix build failure when defined GIF_ENCAPCHECK



details:   https://anonhg.NetBSD.org/src/rev/836cb4758271
branches:  trunk
changeset: 346294:836cb4758271
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Wed Jul 06 01:10:07 2016 +0000

description:
fix build failure when defined GIF_ENCAPCHECK

diffstat:

 sys/netinet/in_gif.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 25e663f905d0 -r 836cb4758271 sys/netinet/in_gif.c
--- a/sys/netinet/in_gif.c      Wed Jul 06 00:30:55 2016 +0000
+++ b/sys/netinet/in_gif.c      Wed Jul 06 01:10:07 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_gif.c,v 1.79 2016/07/06 00:30:55 ozaki-r Exp $      */
+/*     $NetBSD: in_gif.c,v 1.80 2016/07/06 01:10:07 knakahara Exp $    */
 /*     $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.79 2016/07/06 00:30:55 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.80 2016/07/06 01:10:07 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -199,8 +199,6 @@
        const struct ip *ip;
        int af;
        u_int8_t otos;
-       struct ifnet *rcvif;
-       struct psref psref;
 
        ip = mtod(m, const struct ip *);
 
@@ -221,6 +219,8 @@
                return;
        }
 
+       struct ifnet *rcvif;
+       struct psref psref;
        rcvif = m_get_rcvif_psref(m, &psref);
        if (!gif_validate4(ip, sc, rcvif)) {
                m_put_rcvif_psref(rcvif, &psref);



Home | Main Index | Thread Index | Old Index