1. 11 6月, 2008 5 次提交
    • G
      dccp: Fix sparse warnings · 1e2f0e5e
      Gerrit Renker 提交于
      This patch fixes the following sparse warnings:
       * nested min(max()) expression:
         net/dccp/ccids/ccid3.c:91:21: warning: symbol '__x' shadows an earlier one
         net/dccp/ccids/ccid3.c:91:21: warning: symbol '__y' shadows an earlier one
         
       * Declaration of function prototypes in .c instead of .h file, resulting in
         "should it be static?" warnings. 
      
       * Declared "struct dccpw" static (local to dccp_probe).
       
       * Disabled dccp_delayed_ack() - not fully removed due to RFC 4340, 11.3
         ("Receivers SHOULD implement delayed acknowledgement timers ...").
      
       * Used a different local variable name to avoid
         net/dccp/ackvec.c:293:13: warning: symbol 'state' shadows an earlier one
         net/dccp/ackvec.c:238:33: originally declared here
      
       * Removed unused functions `dccp_ackvector_print' and `dccp_ackvec_print'.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      1e2f0e5e
    • G
      dccp ccid-3: Bug-Fix - Zero RTT is possible · 3294f202
      Gerrit Renker 提交于
      In commit $(825de27d) (from 27th May, commit
      message `dccp ccid-3: Fix "t_ipi explosion" bug'), the CCID-3 window counter
      computation was fixed to cope with RTTs < 4 microseconds.
      
      Such RTTs can be found e.g. when running CCID-3 over loopback. The fix removed
      a check against RTT < 4, but introduced a divide-by-zero bug.
      
      All steady-state RTTs in DCCP are filtered using dccp_sample_rtt(), which
      ensures non-zero samples. However, a zero RTT is possible on initialisation,
      when there is no RTT sample from the Request/Response exchange.
      
      The fix is to use the fallback-RTT from RFC 4340, 3.4.
      
      This is also better than just fixing update_win_count() since it allows other
      parts of the code to always assume that the RTT is non-zero during the time
      that the CCID is used.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      3294f202
    • K
      net: Fix routing tables with id > 255 for legacy software · 709772e6
      Krzysztof Piotr Oledzki 提交于
      Most legacy software do not like tables > 255 as rtm_table is u8
      so tb_id is sent &0xff and it is possible to mismatch for example
      table 510 with table 254 (main).
      
      This patch introduces RT_TABLE_COMPAT=252 so the code uses it if
      tb_id > 255. It makes such old applications happy, new
      ones are still able to use RTA_TABLE to get a proper table id.
      Signed-off-by: NKrzysztof Piotr Oledzki <ole@ans.pl>
      Acked-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      709772e6
    • J
      ipsec: pfkey should ignore events when no listeners · 99c6f60e
      Jamal Hadi Salim 提交于
      When pfkey has no km listeners, it still does a lot of work
      before finding out there aint nobody out there.
      If a tree falls in a forest and no one is around to hear it, does it make
      a sound? In this case it makes a lot of noise:
      With this short-circuit adding 10s of thousands of SAs using
      netlink improves performance by ~10%.
      Signed-off-by: NJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      99c6f60e
    • A
      inet{6}_request_sock: Init ->opt and ->pktopts in the constructor · ce4a7d0d
      Arnaldo Carvalho de Melo 提交于
      Wei Yongjun noticed that we may call reqsk_free on request sock objects where
      the opt fields may not be initialized, fix it by introducing inet_reqsk_alloc
      where we initialize ->opt to NULL and set ->pktopts to NULL in
      inet6_reqsk_alloc.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ce4a7d0d
  2. 10 6月, 2008 5 次提交
  3. 05 6月, 2008 27 次提交
  4. 04 6月, 2008 3 次提交