{"name": "ospf_lsa_unlock", "code": "__int64 __fastcall ospf_lsa_unlock ( __int64 @@a1@@ ) { __int64 @@result@@ ; if ( @@a1@@ ) { if ( ( int ) -- * ( _DWORD * ) ( @@a1@@ + Number ) < Number ) _assert_fail ( String , String , Number , String ) ; @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; if ( ! ( _DWORD ) @@result@@ ) { if ( ( * ( _BYTE * ) @@a1@@ & Number ) == Number ) _assert_fail ( String , String , Number , String ) ; @@result@@ = ospf_lsa_free ( @@a1@@ ) ; } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}
{"name": "ospf_lsa_free", "code": "__int64 __fastcall ospf_lsa_free ( __int64 @@a1@@ ) { if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String , ( const void * ) @@a1@@ ) ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ospf_lsa_data_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; if ( * ( int * ) ( @@a1@@ + Number ) >= Number ) _assert_fail ( String , String , Number , String ) ; memset ( ( void * ) @@a1@@ , Number , Number ) ; return zfree ( Number L , @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ospf_lsa_discard", "code": "__int64 __fastcall ospf_lsa_discard ( _BYTE * @@a1@@ ) { __int64 @@result@@ ; @@result@@ = * @@a1@@ & Number ; if ( ( * @@a1@@ & Number ) == Number ) { * @@a1@@ |= Number ; @@result@@ = ospf_lsa_unlock ( ( __int64 ) @@a1@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "ospf_router_lsa_update_timer", "code": "__int64 __fastcall ospf_router_lsa_update_timer ( __int64 @@a1@@ ) { char * @@v1@@ ; const char * @@v3@@ ; __int64 @@v4@@ ; __int64 @@v5@@ ; _QWORD * @@s2@@ ; _QWORD * @@i@@ ; @@s2@@ = * ( _QWORD * * ) ( @@a1@@ + Number ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; @@s2@@ [ Number ] = Number L ; for ( @@i@@ = * ( _QWORD * * ) @@s2@@ [ Number ] ; @@i@@ ; @@i@@ = ( _QWORD * ) * @@i@@ ) { @@v5@@ = @@i@@ [ Number ] ; @@v4@@ = * ( _QWORD * ) ( @@v5@@ + Number ) ; @@v3@@ = ( const char * ) ospf_area_name_string ( @@v5@@ ) ; if ( @@v4@@ ) { if ( ! memcmp ( ( const void * ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) , @@s2@@ , Number ) ) { if ( * ( _BYTE * ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) != * ( ( _BYTE * ) @@s2@@ + Number ) ) ospf_router_lsa_timer_add ( @@v5@@ ) ; } else { if ( ( term_debug_ospf_lsa & Number ) != Number ) { @@v1@@ = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) , @@v1@@ , @@v3@@ ) ; } ospf_lsa_flush_area ( @@v4@@ , @@v5@@ ) ; ospf_lsa_unlock ( * ( _QWORD * ) ( @@v5@@ + Number ) ) ; * ( _QWORD * ) ( @@v5@@ + Number ) = Number L ; ospf_router_lsa_timer_add ( @@v5@@ ) ; } } else { if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String , @@v3@@ ) ; ospf_router_lsa_originate ( ( _DWORD * ) @@v5@@ ) ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 3, "t": "char"}, "location": "r8"}, {"n": "s2", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v3", "t": {"T": 3, "t": "const char"}, "location": "s40"}, {"n": "i", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"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_delete", "code": "__int64 __fastcall ospf_lsa_maxage_delete ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; @@result@@ = listnode_lookup ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@a2@@ ) ; if ( @@result@@ ) { list_delete_node ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@result@@ ) ; @@result@@ = ospf_lsa_unlock ( @@a2@@ ) ; } 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": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "ospf_flush_self_originated_lsas_now", "code": "__int64 __fastcall ospf_flush_self_originated_lsas_now ( __int64 @@a1@@ ) { char * v1 ; char * v2 ; __int64 result ; __int64 @@v4@@ ; __int64 @@v5@@ ; __int64 v6 ; __int64 v7 ; _QWORD * v8 ; _QWORD * v9 ; _QWORD * v10 ; int @@v11@@ ; __int64 k ; __int64 l ; __int64 m ; _QWORD * @@j@@ ; _QWORD * @@i@@ ; @@v11@@ = Number ; for ( @@i@@ = * * ( _QWORD * * * ) ( @@a1@@ + Number ) ; @@i@@ ; @@i@@ = ( _QWORD * ) * @@i@@ ) { @@v5@@ = @@i@@ [ Number ] ; if ( @@v5@@ ) { v6 = * ( _QWORD * ) ( @@v5@@ + Number ) ; if ( v6 ) { if ( ( term_debug_ospf_event & Number ) != Number ) { v1 = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( v6 + Number ) + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( v6 + Number ) + Number L ) , v1 ) ; } ospf_lsa_flush_area ( v6 , @@v5@@ ) ; ospf_lsa_unlock ( * ( _QWORD * ) ( @@v5@@ + Number ) ) ; * ( _QWORD * ) ( @@v5@@ + Number ) = Number L ; if ( * ( _QWORD * ) ( @@v5@@ + Number ) ) { thread_cancel ( * ( _QWORD * ) ( @@v5@@ + Number ) ) ; * ( _QWORD * ) ( @@v5@@ + Number ) = Number L ; } } for ( @@j@@ = * * ( _QWORD * * * ) ( @@v5@@ + Number ) ; @@j@@ ; @@j@@ = ( _QWORD * ) * @@j@@ ) { @@v4@@ = @@j@@ [ Number ] ; if ( @@v4@@ ) { v7 = * ( _QWORD * ) ( @@v4@@ + Number ) ; if ( v7 && * ( _BYTE * ) ( @@v4@@ + Number ) == Number && * ( _DWORD * ) ( @@v4@@ + Number ) ) { if ( ( term_debug_ospf_event & Number ) != Number ) { v2 = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( v7 + Number ) + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( v7 + Number ) + Number L ) , v2 ) ; } ospf_lsa_flush_area ( * ( _QWORD * ) ( @@v4@@ + Number ) , @@v5@@ ) ; ospf_lsa_unlock ( * ( _QWORD * ) ( @@v4@@ + Number ) ) ; * ( _QWORD * ) ( @@v4@@ + Number ) = Number L ; if ( * ( _QWORD * ) ( @@v4@@ + Number ) ) { thread_cancel ( * ( _QWORD * ) ( @@v4@@ + Number ) ) ; * ( _QWORD * ) ( @@v4@@ + Number ) = Number L ; } } if ( * ( _BYTE * ) ( @@v4@@ + Number ) != Number && ! * ( _DWORD * ) ( @@v5@@ + Number ) ) @@v11@@ = Number ; } } if ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) ) { for ( k = route_top ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) ) ; k ; k = route_next ( k ) ) { v8 = * ( _QWORD * * ) ( k + Number ) ; if ( v8 ) ospf_lsa_flush_schedule ( @@a1@@ , v8 ) ; } } if ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) ) { for ( l = route_top ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) ) ; l ; l = route_next ( l ) ) { v9 = * ( _QWORD * * ) ( l + Number ) ; if ( v9 ) ospf_lsa_flush_schedule ( @@a1@@ , v9 ) ; } } } } if ( @@v11@@ && * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { for ( m = route_top ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; m ; m = route_next ( m ) ) { v10 = * ( _QWORD * * ) ( m + Number ) ; if ( v10 ) ospf_lsa_flush_schedule ( @@a1@@ , v10 ) ; } } result = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( result ) { thread_cancel ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; result = thread_execute ( master , ospf_maxage_lsa_remover , @@a1@@ , Number L ) ; } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "j", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "i", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "ospf_lsa_action", "code": "__int64 __fastcall ospf_lsa_action ( __int64 @@a1@@ ) { unsigned __int8 * @@v2@@ ; __int64 @@v3@@ ; @@v3@@ = ospf_lookup ( ) ; @@v2@@ = * ( unsigned __int8 * * ) ( @@a1@@ + Number ) ; if ( ( term_debug_ospf_lsa & Number ) == Number L ) zlog_info ( String , * @@v2@@ ) ; switch ( * @@v2@@ ) { case Number : ospf_router_lsa_refresh ( * ( _QWORD * ) ( * ( ( _QWORD * ) @@v2@@ + Number ) + Number L ) ) ; break ; case Number : ospf_network_lsa_originate ( * ( ( _QWORD * * ) @@v2@@ + Number ) ) ; break ; case Number : ospf_flood_through_area ( * ( ( _QWORD * ) @@v2@@ + Number ) , Number L , * ( ( _QWORD * ) @@v2@@ + Number ) ) ; break ; case Number : ospf_flood_through_as ( @@v3@@ , Number L , * ( ( _QWORD * ) @@v2@@ + Number ) ) ; break ; case Number : ospf_lsa_flush_area ( * ( ( _QWORD * ) @@v2@@ + Number ) , * ( ( _QWORD * ) @@v2@@ + Number ) ) ; break ; case Number : ospf_lsa_flush_as ( @@v3@@ , * ( ( _QWORD * ) @@v2@@ + Number ) ) ; break ; default : break ; } ospf_lsa_unlock ( * ( ( _QWORD * ) @@v2@@ + Number ) ) ; zfree ( Number L , @@v2@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "unsigned __int8"}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_refresher_unregister_lsa", "code": "__int64 __fastcall ospf_refresher_unregister_lsa ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; __int64 @@v3@@ ; if ( ( * ( _BYTE * ) @@a2@@ & Number ) == Number ) _assert_fail ( String , String , Number , String ) ; @@result@@ = * ( unsigned int * ) ( @@a2@@ + Number ) ; if ( ( int ) @@result@@ >= Number ) { @@v3@@ = * ( _QWORD * ) ( @@a1@@ + Number * ( * ( int * ) ( @@a2@@ + Number ) + Number L ) + Number ) ; listnode_delete ( @@v3@@ , @@a2@@ ) ; if ( ! * ( _DWORD * ) ( @@v3@@ + Number ) ) { list_free ( @@v3@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number * ( * ( int * ) ( @@a2@@ + Number ) + Number L ) + Number ) = Number L ; } ospf_lsa_unlock ( @@a2@@ ) ; @@result@@ = @@a2@@ ; * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; } 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": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_lsa_refresh_walker", "code": "__int64 __fastcall ospf_lsa_refresh_walker ( __int64 @@a1@@ ) { __int64 @@v1@@ ; _QWORD * @@v3@@ ; _DWORD * @@v4@@ ; _QWORD * @@v5@@ ; _QWORD * @@v6@@ ; __int64 @@v7@@ ; int @@v8@@ ; _QWORD * i ; _QWORD * j ; @@v7@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@v6@@ = ( _QWORD * ) list_new ( ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; @@v8@@ = * ( unsigned __int16 * ) ( @@v7@@ + Number ) ; @@v1@@ = * ( unsigned __int16 * ) ( @@v7@@ + Number ) ; * ( _WORD * ) ( @@v7@@ + Number ) = ( @@v1@@ + ( time ( Number L ) - * ( _QWORD * ) ( @@v7@@ + Number ) ) / Number ) % Number ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String , * ( unsigned __int16 * ) ( @@v7@@ + Number ) ) ; while ( @@v8@@ != * ( unsigned __int16 * ) ( @@v7@@ + Number ) ) { if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String , ( unsigned int ) @@v8@@ ) ; @@v5@@ = * ( _QWORD * * ) ( @@v7@@ + Number * ( @@v8@@ + Number L ) + Number ) ; * ( _QWORD * ) ( @@v7@@ + Number * ( @@v8@@ + Number L ) + Number ) = Number L ; if ( @@v5@@ ) { for ( i = ( _QWORD * ) * @@v5@@ ; i ; i = @@v3@@ ) { @@v4@@ = ( _DWORD * ) i [ Number ] ; @@v3@@ = ( _QWORD * ) * i ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String , @@v4@@ ) ; list_delete_node ( @@v5@@ , i ) ; ospf_lsa_unlock ( ( __int64 ) @@v4@@ ) ; @@v4@@ [ Number ] = Number ; listnode_add ( @@v6@@ , @@v4@@ ) ; } list_free ( @@v5@@ ) ; } @@v8@@ = ( @@v8@@ + Number ) % Number ; } * ( _QWORD * ) ( @@v7@@ + Number ) = thread_add_timer ( master , ospf_lsa_refresh_walker , @@v7@@ , * ( unsigned __int16 * ) ( @@v7@@ + Number ) ) ; * ( _QWORD * ) ( @@v7@@ + Number ) = time ( Number L ) ; for ( j = ( _QWORD * ) * @@v6@@ ; j ; j = ( _QWORD * ) * j ) ospf_lsa_refresh ( @@v7@@ , j [ Number ] ) ; list_delete ( @@v6@@ ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; return Number L ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r32"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v6", "t": {"T": 3, "t": "_QWORD"}, "location": "s48"}, {"n": "v5", "t": {"T": 3, "t": "_QWORD"}, "location": "s56"}, {"n": "v4", "t": {"T": 3, "t": "_DWORD"}, "location": "s64"}, {"n": "v3", "t": {"T": 3, "t": "_QWORD"}, "location": "s72"}]}