Module Expr Str FunctionDef arguments args NameParam defaults body Return BinOpAdd UnaryOpInvert NameLoad Num decorator_list Assign NameStore BinOpPow Num Num Assign NameStore BinOpDiv NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str If CompareGt NameLoad NameLoad body Assign NameStore BinOpSub Num BinOpSub NameLoad NameLoad orelse If CompareLt NameLoad UnaryOpUSub NameLoad body Assign NameStore BinOpSub Num BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareLt Call NameLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareGt Call NameLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareLtE Call NameLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareGtE Call NameLoad NameLoad NameLoad Num decorator_list Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr UnaryOpNot Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A 
Defines functions for comparing and processing TCP sequence numbers, taking
into account their limited number space.
 twos_comp N/A N/A x N/A N/A N/A N/A N/A x 1 N/A N/A numberspace N/A 2 32 N/A halfspace N/A numberspace 2 wrap N/A N/A x N/A N/A N/A 
    emulates the cast to int used in the C tcp seq # subtraction algo:
    (int)( (a) - (b) ). Basically, if a number's absolute value is greater
    than half the (unsigned) number space, it needs to be wrapped.
     N/A N/A x halfspace N/A N/A x N/A 0 N/A x halfspace N/A N/A N/A x N/A halfspace N/A N/A x N/A 0 N/A x halfspace N/A x N/A subtract N/A N/A a b N/A N/A N/A Calculate the difference between a and b, two python longs,
    in a manner suitable for comparing two TCP sequence numbers in a
    wrap-around-sensitive way. N/A N/A wrap N/A a b N/A lt N/A N/A a b N/A N/A N/A N/A N/A subtract a b 0 N/A gt N/A N/A a b N/A N/A N/A N/A N/A subtract a b 0 N/A lte N/A N/A a b N/A N/A N/A N/A N/A subtract a b 0 N/A gte N/A N/A a b N/A N/A N/A N/A N/A subtract a b 0 N/A N/A unittest TestTcpSeqSubtraction N/A N/A unittest TestCase N/A testNormalSubtraction N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A subtract 500 1 499 N/A N/A N/A self assertEqual N/A subtract 1 1 0 N/A N/A N/A self assertEqual N/A subtract 268435456 536870912 -268435456 N/A testWrappedSubtraction N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A subtract 268435456 3489660928 1073741824 N/A N/A N/A self assertEqual N/A subtract 3489660928 268435456 -1073741824 N/A N/A TestLessThan N/A N/A unittest TestCase N/A testLessThan N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A lt 100 10 N/A N/A N/A self assertTrue N/A lt 2147483647 4026531840 N/A N/A runtests N/A N/A N/A N/A N/A suite N/A N/A unittest TestSuite N/A N/A N/A suite addTest N/A TestTcpSeqSubtraction testNormalSubtraction N/A N/A N/A suite addTest N/A TestTcpSeqSubtraction testWrappedSubtraction N/A N/A N/A suite addTest N/A TestLessThan testLessThan N/A runner N/A N/A unittest TextTestRunner N/A N/A N/A runner run suite N/A