svn commit: r195646 - user/kmacy/head_ppacket/sys/net
Kip Macy
kmacy at FreeBSD.org
Sun Jul 12 21:48:06 UTC 2009
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 */
More information about the svn-src-user
mailing list