IPGRE only uses header_ops in the case of CONFIG_NET_IPGRE_BROADCAST.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>


--- a/net/ipv4/ip_gre.c 2007-10-04 17:40:34.000000000 -0700
+++ b/net/ipv4/ip_gre.c 2007-10-04 17:41:20.000000000 -0700
@@ -1092,6 +1092,10 @@ static int ipgre_header(struct sk_buff *
        return -t->hlen;
 }
 
+static const struct header_ops ipgre_header_ops = {
+       .create = ipgre_header,
+};
+
 static int ipgre_open(struct net_device *dev)
 {
        struct ip_tunnel *t = netdev_priv(dev);
@@ -1131,10 +1135,6 @@ static int ipgre_close(struct net_device
 
 #endif
 
-static const struct header_ops ipgre_header_ops = {
-       .create = ipgre_header,
-};
-
 static void ipgre_tunnel_setup(struct net_device *dev)
 {
        dev->uninit             = ipgre_tunnel_uninit;
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to