1. 05 1月, 2009 2 次提交
  2. 09 9月, 2008 1 次提交
  3. 04 9月, 2008 2 次提交
    • T
      dccp: Policy-based packet dequeueing infrastructure · d6da3511
      Tomasz Grobelny 提交于
      This patch adds a generic infrastructure for policy-based dequeueing of 
      TX packets and provides two policies:
       * a simple FIFO policy (which is the default) and
       * a priority based policy (set via socket options).
      Both policies honour the tx_qlen sysctl for the maximum size of the write
      queue (can be overridden via socket options). 
      
      The priority policy uses skb->priority internally to assign an u32 priority
      identifier, using the same ranking as SO_PRIORITY. The skb->priority field
      is set to 0 when the packet leaves DCCP. The priority is supplied as ancillary
      data using cmsg(3), the patch also provides the requisite parsing routines.
      Signed-off-by: NTomasz Grobelny <tomasz@grobelny.oswiecenia.net>
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      d6da3511
    • G
      dccp ccid-2: Remove old infrastructure · 5a577b48
      Gerrit Renker 提交于
      This removes
       * functions for which updates have been provided in the preceding patches and
       * the @av_vec_len field - it is no longer necessary since the buffer length is
         now always computed dynamically;
       * conditional debugging code (CONFIG_IP_DCCP_ACKVEC).
      
      The reason for removing the conditional debugging code is that Ack Vectors are 
      an almost inevitable necessity - RFC 4341 says that for CCID-2, Ack Vectors must
      be used. Furthermore, the code would be only interesting for coding - after some 
      extensive testing with this patch set, having the debug code around is no longer
      of real help.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      5a577b48
  4. 03 12月, 2006 1 次提交
  5. 25 9月, 2006 1 次提交
  6. 21 3月, 2006 3 次提交
    • A
      [DCCP]: Move the IPv4 specific bits from proto.c to ipv4.c · b61fafc4
      Arnaldo Carvalho de Melo 提交于
      With this patch in place we can break down the complexity by better
      compartmentalizing the code that is common to ipv6 and ipv4.
      
      Now we have these modules:
      Module                  Size  Used by
      dccp_diag               1344  0
      inet_diag               9448  1 dccp_diag
      dccp_ccid3             15856  0
      dccp_tfrc_lib          12320  1 dccp_ccid3
      dccp_ccid2              5764  0
      dccp_ipv4              16996  2
      dccp                   48208  4 dccp_diag,dccp_ccid3,dccp_ccid2,dccp_ipv4
      
      dccp_ipv6 still requires dccp_ipv4 due to dccp_ipv6_mapped, that is
      the next target to work on the "hey, ipv4 is legacy, I only want ipv6
      dude!" direction.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b61fafc4
    • A
      [DCCP] feat: Introduce sysctls for the default features · e55d912f
      Arnaldo Carvalho de Melo 提交于
      [root@qemu ~]# for a in /proc/sys/net/dccp/default/* ; do echo $a ; cat $a ; done
      /proc/sys/net/dccp/default/ack_ratio
      2
      /proc/sys/net/dccp/default/rx_ccid
      3
      /proc/sys/net/dccp/default/send_ackvec
      1
      /proc/sys/net/dccp/default/send_ndp
      1
      /proc/sys/net/dccp/default/seq_window
      100
      /proc/sys/net/dccp/default/tx_ccid
      3
      [root@qemu ~]#
      
      So if wanting to test ccid3 as the tx CCID one can just do:
      
      [root@qemu ~]# echo 3 > /proc/sys/net/dccp/default/tx_ccid
      [root@qemu ~]# echo 2 > /proc/sys/net/dccp/default/rx_ccid
      [root@qemu ~]# cat /proc/sys/net/dccp/default/[tr]x_ccid
      2
      3
      [root@qemu ~]#
      
      Of course we also need the setsockopt for each app to tell its preferences, but
      for testing or defining something other than CCID2 as the default for apps that
      don't explicitely set their preference the sysctl interface is handy.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e55d912f
    • A
      [DCCP]: Initial feature negotiation implementation · afe00251
      Andrea Bittau 提交于
      Still needs more work, but boots and doesn't crashes, even
      does some negotiation!
      
      18:38:52.174934  127.0.0.1.43458 > 127.0.0.1.5001: request <change_l ack_ratio 2, change_r ccid 2, change_l ccid 2>
      18:38:52.218526  127.0.0.1.5001 > 127.0.0.1.43458: response <nop, nop, change_l ack_ratio 2, confirm_r ccid 2 2, confirm_l ccid 2 2, confirm_r ack_ratio 2>
      18:38:52.185398  127.0.0.1.43458 > 127.0.0.1.5001: <nop, confirm_r ack_ratio 2, ack_vector0 0x00, elapsed_time 212>
      
      :-)
      Signed-off-by: NAndrea Bittau <a.bittau@cs.ucl.ac.uk>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      afe00251
  7. 04 1月, 2006 1 次提交
  8. 18 9月, 2005 1 次提交
  9. 30 8月, 2005 5 次提交