Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2009 21:48:06 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r195646 - user/kmacy/head_ppacket/sys/net
Message-ID:  <200907122148.n6CLm6lG095947@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Sun Jul 12 21:48:06 2009
New Revision: 195646
URL: http://svn.freebsd.org/changeset/base/195646

Log:
  fix GRE2IFP macro

Modified:
  user/kmacy/head_ppacket/sys/net/if_gre.h

Modified: user/kmacy/head_ppacket/sys/net/if_gre.h
==============================================================================
--- user/kmacy/head_ppacket/sys/net/if_gre.h	Sun Jul 12 20:17:31 2009	(r195645)
+++ user/kmacy/head_ppacket/sys/net/if_gre.h	Sun Jul 12 21:48:06 2009	(r195646)
@@ -58,9 +58,9 @@ typedef enum {
  * The binary contract is to have the ifp at the front of the softc
  *
  */
-#define	GRE2IFP(sc)	(*(struct ifnet **)(&sc))
+#define	GRE2IFP(sc)	(((struct gre_softc_external *)(sc))->g_ifp)
 struct gre_softc_external {
-	struct ifnet *gre_ifp;
+	struct ifnet *g_ifp;
 	struct in_addr g_src;	/* source address of gre packets */
 	struct in_addr g_dst;	/* destination address of gre packets */
 	u_char g_proto;		/* protocol of encapsulator */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907122148.n6CLm6lG095947>