lkml.org 
[lkml]   [2007]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/5] NET: Make ts_recent_stamp unsigned
    Date
    The get_seconds() function returns an unsigned long.  To prevent incorrect
    comparison results between values saved in ts_recent_stamp and later
    invocations of get_seconds(), change the type of ts_recent_stamp to match
    the return type of get_seconds().

    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
    Cc: <netdev@vger.kernel.org>
    ---

    include/linux/tcp.h | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/include/linux/tcp.h b/include/linux/tcp.h
    index bac17c5..129ddb4 100644
    --- a/include/linux/tcp.h
    +++ b/include/linux/tcp.h
    @@ -206,7 +206,7 @@ struct tcp_sack_block {

    struct tcp_options_received {
    /* PAWS/RTTM data */
    - long ts_recent_stamp;/* Time we stored ts_recent (for aging) */
    + unsigned long ts_recent_stamp;/* Time we stored ts_recent (for aging) */
    u32 ts_recent; /* Time stamp to echo next */
    u32 rcv_tsval; /* Time stamp value */
    u32 rcv_tsecr; /* Time stamp echo reply */
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-23 17:57    [W:0.039 / U:30.156 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site