24 Feb, 2011

7 commits

  • Remove all instances of legacy or proposed-but-not-implemented code
    that lives within an #if 0 ... #endif block. If some of it is needed
    in the future it can recovered out of history, but there is no need
    for it to clutter up the active code base.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker

    Allan Stephens
     
  • Corrects print statements that use %x to print pointer values to use
    %p instead, so that 64-bit pointer values are displayed correctly.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker

    Allan Stephens
     
  • Enhances TIPC link code to ignore an invalid link tolerance value
    contained in an incoming LINK_PROTOCOL message, rather than
    processing the value and potentially causing a divide-by-zero error.

    Also add a compile-time check that catches attempts to redefine
    TIPC's minimum link tolerance value in a manner that might result
    in the same divide-by-zero error at run-time.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker

    Allan Stephens
     
  • Reject TIPC configuration service messages without a full message
    header. Previously, an application that sent a message to the
    configuration service that was too short could cause the validation
    code to access an uninitialized field in the msghdr structure,
    resulting in a memory access exception.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker

    Allan Stephens
     
  • Eliminates a global variable that was previously used by TIPC's user
    registry to track the number of distinct applications using TIPC. Due to
    the recent elimination of the user registry this variable no longer serves
    any purpose and can be removed.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker

    Allan Stephens
     
  • Combines two distinct structures containing information about a TIPC bearer
    into a single structure. The structures were previously kept separate so
    that public information about a bearer could be made available to plug-in
    media types using TIPC's native API, while the remaining information was
    kept private for use by TIPC itself. However, now that the native API has
    been removed there is no longer any need for this arrangement.

    Since one of the structures was already embedded within the other, the
    change largely involves replacing instances of "publ.foo" with "foo".
    The changes do not otherwise alter the operation of TIPC bearers.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker

    Allan Stephens
     
  • Merge two distinct structures containing information about a TIPC port
    into a single structure. The structures were previously kept separate
    so that public information about a port could be made available to
    applications using TIPC's native API, while the remaining information
    was kept private for use by TIPC itself. However, now that the native
    API has been removed there is no longer any need for this somewhat
    confusing arrangement.

    Since one of the structures was already embedded within the other, the
    change largely involves replacing instances of "publ.foo" with "foo".
    The changes do not otherwise alter the operation of TIPC ports.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker

    Allan Stephens
     

23 Feb, 2011

32 commits


21 Feb, 2011

1 commit