summaryrefslogtreecommitdiff
path: root/vpnclient/vpnclient.patch
blob: ee306632435ac9b5bb2587e93f98fc8df6ace997 (plain)
    1 --- interceptor.c.orig	2005-05-11 18:48:42.000000000 +0200
    2 +++ interceptor.c	2005-05-11 18:49:08.000000000 +0200
    3 @@ -236,6 +236,24 @@
    4      dev_kfree_skb(skb);
    5      return 0;
    6  }
    7 +
    8 +static int
    9 +inline supported_device(struct net_device* dev)
   10 +{
   11 +    int rc=0;
   12 +
   13 +    if(dev->type == ARPHRD_ETHER)
   14 +    {
   15 +        rc=1;
   16 +    }
   17 +    else if(dev->type == ARPHRD_PPP)
   18 +    {
   19 +        rc=1;
   20 +    }
   21 +
   22 +    return rc;
   23 +}
   24 +
   25  static int
   26  add_netdev(struct net_device *dev)
   27  {
   28 @@ -476,23 +494,6 @@
   29      s->rc = 0;
   30  }
   31  
   32 -static int
   33 -inline supported_device(struct net_device* dev)
   34 -{
   35 -    int rc=0;
   36 -
   37 -    if(dev->type == ARPHRD_ETHER)
   38 -    {
   39 -        rc=1;
   40 -    }
   41 -    else if(dev->type == ARPHRD_PPP)
   42 -    {
   43 -        rc=1;
   44 -    }
   45 -
   46 -    return rc;
   47 -}
   48 -
   49  
   50  static BINDING *
   51  getbindingbydev(struct net_device *dev)
   52 @@ -604,7 +605,7 @@
   53      if (skb->ip_summed == CHECKSUM_HW)
   54      {
   55  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7)
   56 -       if (skb_checksum_help(&skb,1))
   57 +       if (skb_checksum_help(skb,1))
   58         {
   59             dev_kfree_skb(skb);
   60             skb = NULL;
   61 @@ -729,7 +730,7 @@
   62      if (skb->ip_summed == CHECKSUM_HW)
   63      {
   64  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7)
   65 -       if (skb_checksum_help(&skb,0))
   66 +       if (skb_checksum_help(skb,0))
   67  #else
   68         if ((skb = skb_checksum_help(skb)) == NULL)
   69  #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7)

Generated by cgit