{"name": "ospf_lsa_lock", "code": "__int64 __fastcall ospf_lsa_lock ( __int64 @@a1@@ ) { ++ * ( _DWORD * ) ( @@a1@@ + Number ) ; return @@a1@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}
{"name": "ospf_router_lsa_install", "code": "__int64 __fastcall ospf_router_lsa_install ( __int64 @@a1@@ , __int64 @@a2@@ , int @@a3@@ ) { char * @@v3@@ ; __int64 @@v5@@ ; @@v5@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; if ( @@a3@@ ) ospf_spf_calculate_schedule ( @@a1@@ ) ; if ( ( * ( _BYTE * ) @@a2@@ & Number ) != Number ) { if ( * ( _QWORD * ) ( @@v5@@ + Number ) ) { thread_cancel ( * ( _QWORD * ) ( @@v5@@ + Number ) ) ; * ( _QWORD * ) ( @@v5@@ + Number ) = Number L ; } if ( ! * ( _QWORD * ) ( @@v5@@ + Number ) ) * ( _QWORD * ) ( @@v5@@ + Number ) = thread_add_timer ( master , ospf_router_lsa_timer , @@v5@@ , Number L ) ; ospf_lsa_unlock ( * ( _QWORD * ) ( @@v5@@ + Number ) ) ; * ( _QWORD * ) ( @@v5@@ + Number ) = ospf_lsa_lock ( @@a2@@ ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { @@v3@@ = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , @@v3@@ ) ; } } return @@a2@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 3, "t": "char"}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_network_lsa_install", "code": "_BYTE * __fastcall ospf_network_lsa_install ( __int64 @@a1@@ , __int64 @@a2@@ , _BYTE * @@a3@@ , int @@a4@@ ) { if ( @@a4@@ ) ospf_spf_calculate_schedule ( @@a1@@ ) ; if ( ( * @@a3@@ & Number ) != Number && ( * @@a3@@ & Number ) == Number ) { if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { thread_cancel ( * ( _QWORD * ) ( @@a2@@ + Number ) ) ; * ( _QWORD * ) ( @@a2@@ + Number ) = Number L ; } if ( ! * ( _QWORD * ) ( @@a2@@ + Number ) ) * ( _QWORD * ) ( @@a2@@ + Number ) = thread_add_timer ( master , ospf_network_lsa_refresh_timer , @@a2@@ , Number L ) ; ospf_lsa_unlock ( * ( _QWORD * ) ( @@a2@@ + Number ) ) ; * ( _QWORD * ) ( @@a2@@ + Number ) = ospf_lsa_lock ( ( __int64 ) @@a3@@ ) ; } return @@a3@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "_BYTE"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "ospf_lsa_maxage", "code": "__int64 __fastcall ospf_lsa_maxage ( __int64 @@a1@@ , _QWORD * @@a2@@ ) { __int64 result ; char * v3 ; __int64 v4 ; char * v5 ; if ( ( unsigned int ) ospf_lsa_maxage_exist ( @@a1@@ , ( __int64 ) @@a2@@ ) ) { result = term_debug_ospf_lsa & Number ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { v3 = inet_ntoa ( * ( struct in_addr * ) ( @@a2@@ [ Number ] + Number L ) ) ; result = zlog_info ( String , * ( unsigned __int8 * ) ( @@a2@@ [ Number ] + Number L ) , v3 , @@a2@@ ) ; } } else { v4 = ospf_lsa_lock ( ( __int64 ) @@a2@@ ) ; listnode_add ( * ( _QWORD * ) ( @@a1@@ + Number ) , v4 ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { v5 = dump_lsa_key ( ( __int64 ) @@a2@@ ) ; zlog_info ( String , v5 ) ; } result = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( ! result ) { result = thread_add_timer ( master , ospf_maxage_lsa_remover , @@a1@@ , Number L ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = result ; } } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}]} {"name": "ospf_schedule_lsa_flood_area", "code": "__int64 __fastcall ospf_schedule_lsa_flood_area ( __int64 @@a1@@ , __int64 @@a2@@ ) { _QWORD * @@s@@ ; @@s@@ = ( _QWORD * ) zmalloc ( Number L , Number L ) ; memset ( @@s@@ , Number , Number ) ; * ( _BYTE * ) @@s@@ = Number ; @@s@@ [ Number ] = @@a1@@ ; @@s@@ [ Number ] = ospf_lsa_lock ( @@a2@@ ) ; return thread_add_event ( master , ospf_lsa_action , @@s@@ , Number L ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "s", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "ospf_schedule_lsa_flush_area", "code": "__int64 __fastcall ospf_schedule_lsa_flush_area ( __int64 @@a1@@ , __int64 @@a2@@ ) { _QWORD * @@s@@ ; @@s@@ = ( _QWORD * ) zmalloc ( Number L , Number L ) ; memset ( @@s@@ , Number , Number ) ; * ( _BYTE * ) @@s@@ = Number ; @@s@@ [ Number ] = @@a1@@ ; @@s@@ [ Number ] = ospf_lsa_lock ( @@a2@@ ) ; return thread_add_event ( master , ospf_lsa_action , @@s@@ , Number L ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "s", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "ospf_refresher_register_lsa", "code": "__int64 __fastcall ospf_refresher_register_lsa ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 result ; int v3 ; __int16 v4 ; unsigned int v5 ; __int64 v6 ; unsigned __int16 @@v7@@ ; int @@v8@@ ; if ( ( * ( _BYTE * ) @@a2@@ & Number ) == Number ) _assert_fail ( String , String , Number , String ) ; result = * ( unsigned int * ) ( @@a2@@ + Number ) ; if ( ( int ) result < Number ) { if ( ( int ) get_age ( @@a2@@ ) > Number || ( unsigned int ) get_age ( @@a2@@ ) || ntohl ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) ) != Number ) { if ( ( int ) get_age ( @@a2@@ ) > Number ) v3 = Number ; else v3 = Number - get_age ( @@a2@@ ) ; @@v8@@ = v3 + random ( ) % Number ; } else { @@v8@@ = random ( ) % Number + Number ; } if ( @@v8@@ < Number ) @@v8@@ = Number ; v4 = * ( _WORD * ) ( @@a1@@ + Number ) ; @@v7@@ = ( @@v8@@ / Number + ( unsigned __int16 ) ( v4 + ( __int16 ) ( time ( Number L ) - * ( _WORD * ) ( @@a1@@ + Number ) ) / Number ) ) % Number ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { if ( ( int ) get_age ( @@a2@@ ) > Number ) v5 = Number ; else v5 = get_age ( @@a2@@ ) ; zlog_info ( String , v5 , @@v7@@ ) ; } if ( ! * ( _QWORD * ) ( @@a1@@ + Number * ( @@v7@@ + Number L ) + Number ) ) * ( _QWORD * ) ( @@a1@@ + Number * ( @@v7@@ + Number L ) + Number ) = list_new ( ) ; v6 = ospf_lsa_lock ( @@a2@@ ) ; listnode_add ( * ( _QWORD * ) ( @@a1@@ + Number * ( @@v7@@ + Number L ) + Number ) , v6 ) ; result = @@a2@@ ; * ( _DWORD * ) ( @@a2@@ + Number ) = @@v7@@ ; } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v7", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s24"}]}