1. 21 9月, 2007 3 次提交
    • H
      [PPP] L2TP: Fix skb handling in pppol2tp_xmit · f3d5e3a4
      Herbert Xu 提交于
      This patch makes pppol2tp_xmit call skb_cow_head so that we don't modify
      cloned skb data.  It also gets rid of skb2 we only need to preserve the
      original skb for congestion notification, which is only applicable for
      ppp_async and ppp_sync.
      
      The other semantic change made here is the removal of socket accounting
      for data tranmitted out of pppol2tp_xmit.  The original code leaked any
      existing socket skb accounting.  We could fix this by dropping the
      original skb owner.  However, this is undesirable as the packet has not
      physically left the host yet.
      
      In fact, all other tunnels in the kernel do not account skb's passing
      through to their own socket.  In partciular, ESP over UDP does not do
      so and it is the closest tunnel type to PPPoL2TP.  So this patch simply
      removes the socket accounting in pppol2tp_xmit.  The accounting still
      applies to control packets of course.
      
      I've also added a reminder that the outgoing checksum here doesn't work.
      I suppose existing deployments don't actually enable checksums.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f3d5e3a4
    • H
      [PPP] L2TP: Fix skb handling in pppol2tp_recv_core · 7a70e39b
      Herbert Xu 提交于
      The function pppol2tp_recv_core doesn't handle non-linear packets properly.
      It also fails to check the remote offset field.
      
      This patch fixes these problems.  It also removes an unnecessary check on
      the UDP header which has already been performed by the UDP layer.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7a70e39b
    • H
      [PPP] L2TP: Disallow non-UDP datagram sockets · a14d6abc
      Herbert Xu 提交于
      With the addition of UDP-Lite we need to refine the socket check so
      that only genuine UDP sockets are allowed through.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a14d6abc
  2. 27 7月, 2007 1 次提交
  3. 18 7月, 2007 2 次提交
  4. 11 7月, 2007 2 次提交