1. 28 2月, 2011 1 次提交
  2. 26 2月, 2011 5 次提交
  3. 25 2月, 2011 1 次提交
    • D
      ipv4: Rearrange how ip_route_newports() gets port keys. · dca8b089
      David S. Miller 提交于
      ip_route_newports() is the only place in the entire kernel that
      cares about the port members in the routing cache entry's lookup
      flow key.
      
      Therefore the only reason we store an entire flow inside of the
      struct rtentry is for this one special case.
      
      Rewrite ip_route_newports() such that:
      
      1) The caller passes in the original port values, so we don't need
         to use the rth->fl.fl_ip_{s,d}port values to remember them.
      
      2) The lookup flow is constructed by hand instead of being copied
         from the routing cache entry's flow.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dca8b089
  4. 24 2月, 2011 12 次提交
  5. 23 2月, 2011 11 次提交
  6. 21 2月, 2011 1 次提交
  7. 18 2月, 2011 4 次提交
  8. 17 2月, 2011 5 次提交
    • F
      netfilter: tproxy: do not assign timewait sockets to skb->sk · d503b30b
      Florian Westphal 提交于
      Assigning a socket in timewait state to skb->sk can trigger
      kernel oops, e.g. in nfnetlink_log, which does:
      
      if (skb->sk) {
              read_lock_bh(&skb->sk->sk_callback_lock);
              if (skb->sk->sk_socket && skb->sk->sk_socket->file) ...
      
      in the timewait case, accessing sk->sk_callback_lock and sk->sk_socket
      is invalid.
      
      Either all of these spots will need to add a test for sk->sk_state != TCP_TIME_WAIT,
      or xt_TPROXY must not assign a timewait socket to skb->sk.
      
      This does the latter.
      
      If a TW socket is found, assign the tproxy nfmark, but skip the skb->sk assignment,
      thus mimicking behaviour of a '-m socket .. -j MARK/ACCEPT' re-routing rule.
      
      The 'SYN to TW socket' case is left unchanged -- we try to redirect to the
      listener socket.
      
      Cc: Balazs Scheidler <bazsi@balabit.hu>
      Cc: KOVACS Krisztian <hidden@balabit.hu>
      Signed-off-by: NFlorian Westphal <fwestphal@astaro.com>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      d503b30b
    • C
      Bluetooth: Send LE Connection Update Command · 2ce603eb
      Claudio Takahasi 提交于
      If the new connection update parameter are accepted, the LE master
      host sends the LE Connection Update Command to its controller informing
      the new requested parameters.
      Signed-off-by: NClaudio Takahasi <claudio.takahasi@openbossa.org>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      2ce603eb
    • V
      Bluetooth: Use proper timer for hci command timout · 6bd32326
      Ville Tervo 提交于
      Use proper timer instead of hci command flow control to timeout
      failed hci commands. Otherwise stack ends up sending commands
      when flow control is used to block new commands.
      
      2010-09-01 18:29:41.592132 < HCI Command: Remote Name Request (0x01|0x0019) plen 10
          bdaddr 00:16:CF:E1:C7:D7 mode 2 clkoffset 0x0000
      2010-09-01 18:29:41.592681 > HCI Event: Command Status (0x0f) plen 4
          Remote Name Request (0x01|0x0019) status 0x00 ncmd 0
      2010-09-01 18:29:51.022033 < HCI Command: Remote Name Request Cancel (0x01|0x001a) plen 6
          bdaddr 00:16:CF:E1:C7:D7
      Signed-off-by: NVille Tervo <ville.tervo@nokia.com>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      6bd32326
    • C
      Bluetooth: Add connection parameter update response · de73115a
      Claudio Takahasi 提交于
      Implements L2CAP Connection Parameter Update Response defined in
      the Bluetooth Core Specification, Volume 3, Part A, section 4.21.
      Address the LE Connection Parameter Procedure initiated by the slave.
      
      Connection Interval Minimum and Maximum have the same range: 6 to
      3200. Time = N * 1.25ms. Minimum shall be less or equal to Maximum.
      The Slave Latency field shall have a value in the range of 0 to
      ((connSupervisionTimeout / connIntervalMax) - 1). Latency field shall
      be less than 500. connSupervisionTimeout = Timeout Multiplier * 10 ms.
      Multiplier field shall have a value in the range of 10 to 3200.
      Signed-off-by: NClaudio Takahasi <claudio.takahasi@openbossa.org>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      de73115a
    • C
      Bluetooth: Add LE signaling commands handling · 3300d9a9
      Claudio Takahasi 提交于
      This patch splits the L2CAP command handling function in order to
      have a clear separation between the commands related to BR/EDR and
      LE. Commands and responses in the LE signaling channel are not being
      handled yet, command reject is sent to all received requests. Bluetooth
      Core Specification, Volume 3, Part A, section 4 defines the signaling
      packets formats and allowed commands/responses over the LE signaling
      channel.
      Signed-off-by: NClaudio Takahasi <claudio.takahasi@openbossa.org>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      3300d9a9