1. 19 12月, 2008 1 次提交
    • J
      ppp: fix segfaults introduced by netdev_priv changes · 739840d5
      James Chapman 提交于
      This patch fixes a segfault in ppp_shutdown_interface() and
      ppp_destroy_interface() when a PPP connection is closed. I bisected
      the problem to the following commit:
      
        commit c8019bf3
        Author: Wang Chen <wangchen@cn.fujitsu.com>
        Date:   Thu Nov 20 04:24:17 2008 -0800
      
          netdevice ppp: Convert directly reference of netdev->priv
      
          1. Use netdev_priv(dev) to replace dev->priv.
          2. Alloc netdev's private data by alloc_netdev().
      Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      
      The original ppp_generic code treated the netdev and struct ppp as
      independent data structures which were freed separately. In moving the
      ppp struct into the netdev, it is now possible for the private data to
      be freed before the call to ppp_shutdown_interface(), which is bad.
      
      The kfree(ppp) in ppp_destroy_interface() is also wrong; presumably
      ppp hasn't worked since the above commit.
      
      The following patch fixes both problems.
      Signed-off-by: NJames Chapman <jchapman@katalix.com>
      Reviewed-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      739840d5
  2. 17 10月, 2008 1 次提交
  3. 16 10月, 2008 1 次提交
  4. 10 10月, 2008 1 次提交
  5. 23 9月, 2008 1 次提交
  6. 22 9月, 2008 1 次提交
  7. 27 7月, 2008 1 次提交
  8. 22 7月, 2008 1 次提交
  9. 21 6月, 2008 2 次提交
  10. 26 5月, 2008 1 次提交
  11. 14 5月, 2008 1 次提交
  12. 24 4月, 2008 1 次提交
  13. 29 1月, 2008 1 次提交
  14. 13 11月, 2007 1 次提交
  15. 17 9月, 2007 2 次提交
  16. 22 8月, 2007 1 次提交
  17. 20 7月, 2007 1 次提交
  18. 24 6月, 2007 1 次提交
  19. 09 5月, 2007 1 次提交
  20. 26 4月, 2007 2 次提交
  21. 26 3月, 2007 1 次提交
  22. 13 2月, 2007 1 次提交
  23. 12 2月, 2007 1 次提交
  24. 02 12月, 2006 1 次提交
  25. 14 9月, 2006 1 次提交
  26. 18 8月, 2006 1 次提交
  27. 01 7月, 2006 1 次提交
  28. 27 6月, 2006 4 次提交
  29. 18 6月, 2006 1 次提交
  30. 23 3月, 2006 1 次提交
  31. 21 3月, 2006 1 次提交
    • H
      [NET]: Replace skb_pull/skb_postpull_rcsum with skb_pull_rcsum · cbb042f9
      Herbert Xu 提交于
      We're now starting to have quite a number of places that do skb_pull
      followed immediately by an skb_postpull_rcsum.  We can merge these two
      operations into one function with skb_pull_rcsum.  This makes sense
      since most pull operations on receive skb's need to update the
      checksum.
      
      I've decided to make this out-of-line since it is fairly big and the
      fast path where hardware checksums are enabled need to call
      csum_partial anyway.
      
      Since this is a brand new function we get to add an extra check on the
      len argument.  As it is most callers of skb_pull ignore its return
      value which essentially means that there is no check on the len
      argument.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cbb042f9
  32. 06 2月, 2006 1 次提交
  33. 28 12月, 2005 1 次提交
  34. 09 11月, 2005 1 次提交
    • M
      [PPP]: add PPP MPPE encryption module · b3f9b92a
      Matt Domsch 提交于
      From: Matt Domsch <Matt_Domsch@dell.com>
      
      The patch below implements the Microsoft Point-to-Point Encryption method
      as a PPP compressor/decompressor.  This is necessary for Linux clients and
      servers to interoperate with Microsoft Point-to-Point Tunneling Protocol
      (PPTP) servers (either Microsoft PPTP servers or the poptop project) which
      use MPPE to encrypt data when creating a VPN.
      
      This patch differs from the kernel_ppp_mppe DKMS pacakge at
      pptpclient.sourceforge.net by utilizing the kernel crypto routines rather
      than providing its own SHA1 and arcfour implementations.
      
      Minor changes to ppp_generic.c try to prevent a link from disabling
      compression (in our case, the encryption) after it has started using
      compression (encryption).
      
      Feedback to <pptpclient-devel@lists.sourceforge.net> please.
      Signed-off-by: NMatt Domsch <Matt_Domsch@dell.com>
      Cc: James Cameron <james.cameron@hp.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: NBrice Goglin <Brice.Goglin@ens-lyon.org>
      Acked-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b3f9b92a