1. 06 3月, 2008 2 次提交
  2. 04 3月, 2008 2 次提交
  3. 10 2月, 2008 1 次提交
    • A
      pppol2tp: fix printk warnings · 0efeaa33
      Andrew Morton 提交于
      drivers/net/pppol2tp.c: In function `pppol2tp_seq_tunnel_show':
      drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 4)
      drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 5)
      drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 6)
      drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 7)
      drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 8)
      drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 9)
      drivers/net/pppol2tp.c: In function `pppol2tp_seq_session_show':
      drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 5)
      drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 6)
      drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 7)
      drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 8)
      drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 9)
      drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 10)
      
      Not all platforms implement u64 with unsigned long long.  eg: powerpc.
      
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0efeaa33
  4. 06 2月, 2008 1 次提交
  5. 29 1月, 2008 1 次提交
  6. 07 11月, 2007 1 次提交
    • J
      [PPP]: L2TP: Fix oops in transmit and receive paths · 91781004
      James Chapman 提交于
      Changes made on 18-sep to fix skb handling in the pppol2tp driver
      broke the transmit and receive paths. Users are only running into this
      now because distros are now using 2.6.23 and I must have messed up
      when I tested the change.
      
      For receive, we now do our own calculation of how much to pull from
      the skb (variable length L2TP header) rather than using
      skb_transport_offset(). Also, if the skb isn't a data packet, it must
      be passed back to UDP with skb->data pointing to the UDP header.
      
      For transmit, make sure skb->sk is set up because ip_queue_xmit()
      needs it.
      Signed-off-by: NJames Chapman <jchapman@katalix.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      91781004
  7. 01 11月, 2007 1 次提交
  8. 11 10月, 2007 2 次提交
    • E
      [NET]: Make socket creation namespace safe. · 1b8d7ae4
      Eric W. Biederman 提交于
      This patch passes in the namespace a new socket should be created in
      and has the socket code do the appropriate reference counting.  By
      virtue of this all socket create methods are touched.  In addition
      the socket create methods are modified so that they will fail if
      you attempt to create a socket in a non-default network namespace.
      
      Failing if we attempt to create a socket outside of the default
      network namespace ensures that as we incrementally make the network stack
      network namespace aware we will not export functionality that someone
      has not audited and made certain is network namespace safe.
      Allowing us to partially enable network namespaces before all of the
      exotic protocols are supported.
      
      Any protocol layers I have missed will fail to compile because I now
      pass an extra parameter into the socket creation code.
      
      [ Integrated AF_IUCV build fixes from Andrew Morton... -DaveM ]
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b8d7ae4
    • E
      [NET]: Make /proc/net per network namespace · 457c4cbc
      Eric W. Biederman 提交于
      This patch makes /proc/net per network namespace.  It modifies the global
      variables proc_net and proc_net_stat to be per network namespace.
      The proc_net file helpers are modified to take a network namespace argument,
      and all of their callers are fixed to pass &init_net for that argument.
      This ensures that all of the /proc/net files are only visible and
      usable in the initial network namespace until the code behind them
      has been updated to be handle multiple network namespaces.
      
      Making /proc/net per namespace is necessary as at least some files
      in /proc/net depend upon the set of network devices which is per
      network namespace, and even more files in /proc/net have contents
      that are relevant to a single network namespace.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      457c4cbc
  9. 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
  10. 27 7月, 2007 1 次提交
  11. 18 7月, 2007 2 次提交
  12. 11 7月, 2007 2 次提交