1. 07 7月, 2011 3 次提交
  2. 06 7月, 2011 12 次提交
  3. 05 7月, 2011 13 次提交
    • S
      batman-adv: Replace version info instead of appending them · 44c4349a
      Sven Eckelmann 提交于
      The version number of modules build outside of the tree can get revision
      numbers added. This is useful to give hints about the revision of a
      distribution package and the used patchset. The prepended source number or
      branch name doesn't add any additional information which would help to identify
      problems and can therefore be omitted.
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      44c4349a
    • M
      batman-adv: aggregation checks should use the primary_if pointer · b539e4cd
      Marek Lindner 提交于
      The packet aggregation needs to ensure that only compatible packets
      are aggregated. Some of the checks are based on the interface number
      while assuming that the first interface also is the primary interface
      which is not always the case.
      This patch addresses the issue by using the primary_if pointer.
      Reported-by: NAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      b539e4cd
    • M
      batman-adv: broadcast primary OGM on all active hard-interfaces · 6a020ab4
      Marek Lindner 提交于
      The primary interface OGM has to be broadcasted on all hard-interfaces
      even if the primary interface is not the first interface (if_num = 0).
      Therefore the code has to compare the originating interface with the
      primary interface instead of checking the if_num.
      Reported-by: NLinus Luessing <linus.luessing@web.de>
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      6a020ab4
    • A
      batman-adv: pass a unique flag arg instead of a sequence of bool ones · ff66c975
      Antonio Quartulli 提交于
      now tt_local_event() takes a flags argument instead of a sequence of
      boolean values which would grow up with the time.
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      ff66c975
    • A
      batman-adv: add_bcast_packet_to_list() takes the sending delay as parameter · 8698529d
      Antonio Quartulli 提交于
      In order to make possible to use the broadcast list for delayed sendings
      the "delay" parameter is now provided instead of using 1 as hardcoded
      value.
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      8698529d
    • A
      batman-adv: unify flags for tt_change/tt_local_entry/tt_global_entry · 5fbc1598
      Antonio Quartulli 提交于
      The tt_local_entry structure now has a 'flags' field. This helps to
      unify the flags format to all the client related structures (tt_global_entry
      and tt_change). The 'never_purge' field is now encoded in the 'flags' one.
      To optimise the usage of this field, its length has been increased to 16bit
      in order to use the eight leading bits (from 0 to 7) to store flags that
      have to be sent on the wire, while the eight ending ones are used for local
      computation only.
      
      Moreover 'enum tt_change_flags' is now called 'enum tt_client_flags' and the
      defined values apply to the tt_local_entry, tt_global_entry and the tt_change
      'flags' field.
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      5fbc1598
    • M
      net: bind() fix error return on wrong address family · c349a528
      Marcus Meissner 提交于
      Hi,
      
      Reinhard Max also pointed out that the error should EAFNOSUPPORT according
      to POSIX.
      
      The Linux manpages have it as EINVAL, some other OSes (Minix, HPUX, perhaps BSD) use
      EAFNOSUPPORT. Windows uses WSAEFAULT according to MSDN.
      
      Other protocols error values in their af bind() methods in current mainline git as far
      as a brief look shows:
      	EAFNOSUPPORT: atm, appletalk, l2tp, llc, phonet, rxrpc
      	EINVAL: ax25, bluetooth, decnet, econet, ieee802154, iucv, netlink, netrom, packet, rds, rose, unix, x25,
      	No check?: can/raw, ipv6/raw, irda, l2tp/l2tp_ip
      
      Ciao, Marcus
      Signed-off-by: NMarcus Meissner <meissner@suse.de>
      Cc: Reinhard Max <max@suse.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c349a528
    • G
      dccp ccid-2: Perform congestion-window validation · 113ced1f
      Gerrit Renker 提交于
      CCID-2's cwnd increases like TCP during slow-start, which has implications for
       * the local Sequence Window value (should be > cwnd),
       * the Ack Ratio value.
      Hence an exponential growth, if it does not reflect the actual network
      conditions, can quickly lead to instability.
      
      This patch adds congestion-window validation (RFC2861) to CCID-2:
       * cwnd is constrained if the sender is application limited;
       * cwnd is reduced after a long idle period, as suggested in the '90 paper
         by Van Jacobson, in RFC 2581 (sec. 4.1);
       * cwnd is never reduced below the RFC 3390 initial window.
      
      As marked in the comments, the code is actually almost a direct copy of the
      TCP congestion-window-validation algorithms. By continuing this work, it may
      in future be possible to use the TCP code (not possible at the moment).
      
      The mechanism can be turned off using a module parameter. Sampling of the
      currently-used window (moving-maximum) is however done constantly; this is
      used to determine the expected window, which can be exploited to regulate
      DCCP's Sequence Window value.
      
      This patch also sets slow-start-after-idle (RFC 4341, 5.1), i.e. it behaves like
      TCP when net.ipv4.tcp_slow_start_after_idle = 1.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      113ced1f
    • G
      dccp ccid-2: Use existing function to test for data packets · 58fdea0f
      Gerrit Renker 提交于
      This replaces a switch statement with a test, using the equivalent
      function dccp_data_packet(skb).  It also doubles the range of the field
      `rx_num_data_pkts' by changing the type from `int' to `u32', avoiding
      signed/unsigned comparison with the u16 field `dccps_r_ack_ratio'.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      58fdea0f
    • G
      dccp ccid-2: move rfc 3390 function into header file · b4d5f4b2
      Gerrit Renker 提交于
      This moves CCID-2's initial window function into the header file, since several
      parts throughout the CCID-2 code need to call it (CCID-2 still uses RFC 3390).
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      Acked-by: NLeandro Melo de Sales <leandro@ic.ufal.br>
      b4d5f4b2
    • G
      dccp: cosmetics of info message · 1fd9d208
      Gerrit Renker 提交于
      Change the CCID (de)activation message to start with the
      protocol name, as 'CCID' is already in there.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      1fd9d208
    • G
      dccp: combine the functionality of enqeueing and cloning · 8695e801
      Gerrit Renker 提交于
      Realising the following call pattern,
       * first dccp_entail() is called to enqueue a new skb and
       * then skb_clone() is called to transmit a clone of that skb,
      this patch integrates both into the same function.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      8695e801
    • G
      dccp: Clean up slow-path input processing · c0c20150
      Gerrit Renker 提交于
      This patch rearranges the order of statements of the slow-path input processing
      (i.e. any other state than OPEN), to resolve the following issues.
      
       1. Dependencies: the order of statements now better matches RFC 4340, 8.5, i.e.
          step 7 is before step 9 (previously 9 was before 7), and parsing options in
          step 8 (which may consume resources) now comes after step 7.
       2. Sequence number checks are omitted if in state LISTEN/REQUEST, due to the
          note underneath the table in RFC 4340, 7.5.3.
          As a result, CCID processing is now indeed confined to OPEN/PARTOPEN states,
          i.e. congestion control is performed only on the flow of data packets. This
          avoids pathological cases of doing congestion control on those messages
          which set up and terminate the connection.
       3. Packets are now passed on to Ack Vector / CCID processing only after
          - step 7  (receive unexpected packets),
          - step 9  (receive Reset),
          - step 13 (receive CloseReq),
          - step 14 (receive Close)
          and only if the state is PARTOPEN. This simplifies CCID processing:
          - in LISTEN/CLOSED the CCIDs are non-existent;
          - in RESPOND/REQUEST the CCIDs have not yet been negotiated;
          - in CLOSEREQ and active-CLOSING the node has already closed this socket;
          - in passive-CLOSING the client is waiting for its Reset.
          In the last case, RFC 4340, 8.3 leaves it open to ignore further incoming
          data, which is the approach taken here.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      c0c20150
  4. 04 7月, 2011 3 次提交
  5. 02 7月, 2011 9 次提交