X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Fopenswan%2Fpatches%2F130-netdev_ops.patch;h=9ea2f38f5e7527ff52ba8c9918024dbaf57644a9;hp=830804e4dd87c5135707ba9c9a7e0227920efef8;hb=cee5d7c753e32a9c1b6500071433345efbe874d2;hpb=0734ebe3f2a5bfc210f0963c72f746435a7725e0;ds=sidebyside diff --git a/net/openswan/patches/130-netdev_ops.patch b/net/openswan/patches/130-netdev_ops.patch index 830804e4dd..9ea2f38f5e 100644 --- a/net/openswan/patches/130-netdev_ops.patch +++ b/net/openswan/patches/130-netdev_ops.patch @@ -101,7 +101,7 @@ diff -urN openswan-2.6.23/linux/net/ipsec/ipsec_rcv.c openswan-2.6.23.new/linux/ if(skb->dev && skb->dev->get_stats) { struct net_device_stats *stats = skb->dev->get_stats(skb->dev); +#else -+#if !(defined CONFIG_COMPAT_NET_DEV_OPS) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) ++#if !(defined CONFIG_COMPAT_NET_DEV_OPS) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) + if(skb->dev && skb->dev->netdev_ops->ndo_get_stats) { + struct net_device_stats *stats = skb->dev->netdev_ops->ndo_get_stats(skb->dev); +#endif @@ -125,7 +125,7 @@ diff -urN openswan-2.6.23/linux/net/ipsec/ipsec_tunnel.c openswan-2.6.23.new/lin { int i; struct ipsecpriv *prv = netdev_priv(dev); -+#if !(defined CONFIG_COMPAT_NET_DEV_OPS) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) ++#if !(defined CONFIG_COMPAT_NET_DEV_OPS) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) + struct net_device_ops *dev_ops; + struct net_device_ops *physdev_ops; +#endif @@ -143,7 +143,7 @@ diff -urN openswan-2.6.23/linux/net/ipsec/ipsec_tunnel.c openswan-2.6.23.new/lin prv->hard_start_xmit = physdev->hard_start_xmit; prv->get_stats = physdev->get_stats; +#else -+#if !(defined CONFIG_COMPAT_NET_DEV_OPS) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) ++#if !(defined CONFIG_COMPAT_NET_DEV_OPS) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) + dev_ops = (struct net_device_ops *)dev->netdev_ops; + dev_ops->ndo_set_mac_address = ipsec_tunnel_set_mac_address; +#endif