1. 18 1月, 2010 1 次提交
    • O
      tcp: account SYN-ACK timeouts & retransmissions · 72659ecc
      Octavian Purdila 提交于
      Currently we don't increment SYN-ACK timeouts & retransmissions
      although we do increment the same stats for SYN. We seem to have lost
      the SYN-ACK accounting with the introduction of tcp_syn_recv_timer
      (commit 2248761e in the netdev-vger-cvs tree).
      
      This patch fixes this issue. In the process we also rename the v4/v6
      syn/ack retransmit functions for clarity. We also add a new
      request_socket operations (syn_ack_timeout) so we can keep code in
      inet_connection_sock.c protocol agnostic.
      Signed-off-by: NOctavian Purdila <opurdila@ixiacom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72659ecc
  2. 15 1月, 2010 2 次提交
  3. 14 1月, 2010 3 次提交
  4. 12 1月, 2010 1 次提交
  5. 11 1月, 2010 2 次提交
    • J
      NET: irda, remove unnecessary checks · c026ca58
      Jiri Slaby 提交于
      Stanse found a potential null dereference in ircomm_tty_close
      and ircomm_tty_hangup. There is a check for tty being NULL,
      but it is dereferenced earlier. But it is bogus, the tty cannot
      be NULL, so remove the !tty checks.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Alan Cox <alan@linux.intel.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: netdev@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c026ca58
    • J
      NET: ipv6, remove unnecessary check · c3f6c21d
      Jiri Slaby 提交于
      Stanse found a potential null dereference in snmp6_unregister_dev.
      There is a check for idev being NULL, but it is dereferenced
      earlier. But idev cannot be NULL when passed to
      snmp6_unregister_dev, so remove the test.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
      Cc: "Pekka Savola (ipv6)" <pekkas@netcore.fi>
      Cc: James Morris <jmorris@namei.org>
      Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Cc: Patrick McHardy <kaber@trash.net>
      Cc: netdev@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c3f6c21d
  6. 09 1月, 2010 1 次提交
  7. 08 1月, 2010 3 次提交
  8. 07 1月, 2010 7 次提交
  9. 04 1月, 2010 6 次提交
    • A
      ipvs: Add boundary check on ioctl arguments · 04bcef2a
      Arjan van de Ven 提交于
      The ipvs code has a nifty system for doing the size of ioctl command
      copies; it defines an array with values into which it indexes the cmd
      to find the right length.
      
      Unfortunately, the ipvs code forgot to check if the cmd was in the
      range that the array provides, allowing for an index outside of the
      array, which then gives a "garbage" result into the length, which
      then gets used for copying into a stack buffer.
      
      Fix this by adding sanity checks on these as well as the copy size.
      
      [ horms@verge.net.au: adjusted limit to IP_VS_SO_GET_MAX ]
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Acked-by: NJulian Anastasov <ja@ssi.bg>
      Signed-off-by: NSimon Horman <horms@verge.net.au>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      04bcef2a
    • A
      tipc: use kconfig to limit numeric ranges · ee983ac7
      Amerigo Wang 提交于
      We can rely on kconfig to limit these numbers,
      no need to limit them at compile time/run time.
      
      Users who modify these numbers manually should
      be responsible for themself. :)
      Signed-off-by: NWANG Cong <amwang@redhat.com>
      Cc: Per Liden <per.liden@ericsson.com>
      Cc: Jon Maloy <jon.maloy@ericsson.com>
      Cc: Allan Stephens <allan.stephens@windriver.com>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ee983ac7
    • O
      can: Speed up CAN frame receiption by using ml_priv · 20dd3850
      Oliver Hartkopp 提交于
      this patch removes the hlist that contains the CAN receiver filter lists.
      It uses the 'midlayer private' pointer ml_priv and links the filters directly
      to the CAN netdevice, which allows to omit the walk through the complete CAN
      devices hlist for each received CAN frame.
      
      This patch is tested and does not remove any locking.
      Signed-off-by: NOliver Hartkopp <oliver@hartkopp.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20dd3850
    • A
      net/sctp/socket.c: squish warning · 8ffd3208
      Andrew Morton 提交于
      net/sctp/socket.c: In function 'sctp_setsockopt_autoclose':
      net/sctp/socket.c:2090: warning: comparison is always false due to limited range of data type
      
      Cc: Andrei Pelinescu-Onciul <andrei@iptel.org>
      Cc: Vlad Yasevich <vladislav.yasevich@hp.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8ffd3208
    • B
      rose_loopback_timer sets VC number <= ROSE_DEFAULT_MAXVC · 1f731b63
      Bernard Pidoux F6BVP 提交于
      cat /proc/net/rose displayed a rose sockets abnormal lci value, i.e.
      greater than maximum number of VCs per neighbour allowed.
      This number prevents further test of lci value during rose operations.
      
      Example (lines shortened) :
      [bernard]# cat /proc/net/rose
      dest_addr  dest_call src_addr   src_call  dev   lci neigh st vs vr va
      *          *         2080175520 F6BVP-1   rose0 000 00000  0  0  0  0
      2080175520 FPAD-0    2080175520 WP-0      rose0 FFE 00001  3  0  0  0
      
      Here are the default parameters :
      
      linux/include/net/rose.h:#define ROSE_DEFAULT_MAXVC 50 /* Maximum number of VCs per neighbour */
      linux/net/rose/af_rose.c:int sysctl_rose_maximum_vcs = ROSE_DEFAULT_MAXVC;
      
      With the following patch, rose_loopback_timer() attributes a VC number
      within limits.
      Signed-off-by: NBernard Pidoux <f6bvp@amsat.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f731b63
    • A
      bonding: allow arp_ip_targets on separate vlans to use arp validation · 1f3c8804
      Andy Gospodarek 提交于
      This allows a bond device to specify an arp_ip_target as a host that is
      not on the same vlan as the base bond device and still use arp
      validation.  A configuration like this, now works:
      
      BONDING_OPTS="mode=active-backup arp_interval=1000 arp_ip_target=10.0.100.1 arp_validate=3"
      
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          inet 127.0.0.1/8 scope host lo
          inet6 ::1/128 scope host
             valid_lft forever preferred_lft forever
      2: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
      3: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
      8: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
          inet6 fe80::213:21ff:febe:33e9/64 scope link
             valid_lft forever preferred_lft forever
      9: bond0.100@bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
          link/ether 00:13:21:be:33:e9 brd ff:ff:ff:ff:ff:ff
          inet 10.0.100.2/24 brd 10.0.100.255 scope global bond0.100
          inet6 fe80::213:21ff:febe:33e9/64 scope link
             valid_lft forever preferred_lft forever
      
      Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
      
      Bonding Mode: fault-tolerance (active-backup)
      Primary Slave: None
      Currently Active Slave: eth1
      MII Status: up
      MII Polling Interval (ms): 0
      Up Delay (ms): 0
      Down Delay (ms): 0
      ARP Polling Interval (ms): 1000
      ARP IP target/s (n.n.n.n form): 10.0.100.1
      
      Slave Interface: eth1
      MII Status: up
      Link Failure Count: 1
      Permanent HW addr: 00:40:05:30:ff:30
      
      Slave Interface: eth0
      MII Status: up
      Link Failure Count: 0
      Permanent HW addr: 00:13:21:be:33:e9
      Signed-off-by: NAndy Gospodarek <andy@greyhouse.net>
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f3c8804
  10. 29 12月, 2009 14 次提交