{"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_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_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_network_lsa_refresh", "code": "__int64 __fastcall ospf_network_lsa_refresh ( __int64 @@a1@@ , __int64 @@a2@@ ) { char * @@v3@@ ; struct timeval * @@v4@@ ; _QWORD * @@v5@@ ; @@v5@@ = * ( _QWORD * * ) ( @@a1@@ + Number ) ; if ( ! * ( _QWORD * ) ( @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; ospf_ls_retransmit_delete_nbr_area ( @@v5@@ , @@a1@@ ) ; @@v4@@ = ospf_network_lsa_new ( @@a2@@ ) ; if ( ! @@v4@@ ) return Number ; * ( _DWORD * ) ( @@v4@@ -> tv_usec + Number ) = lsa_seqnum_increment ( @@a1@@ ) ; ospf_lsa_install ( * @@v5@@ , @@a2@@ , @@v4@@ ) ; ospf_flood_through_area ( @@v5@@ , Number L , @@v4@@ ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { @@v3@@ = inet_ntoa ( * ( struct in_addr * ) ( @@v4@@ -> tv_usec + Number ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( @@v4@@ -> tv_usec + Number ) , @@v3@@ ) ; ospf_lsa_header_dump ( @@v4@@ -> tv_usec ) ; } return 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": "v3", "t": {"T": 3, "t": "char"}, "location": "r8"}, {"n": "v4", "t": {"T": 3, "t": "struct timeval"}, "location": "s16"}, {"n": "v5", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "ospf_network_lsa_refresh_timer", "code": "__int64 __fastcall ospf_network_lsa_refresh_timer ( __int64 @@a1@@ ) { _QWORD * @@v2@@ ; @@v2@@ = * ( _QWORD * * ) ( @@a1@@ + Number ) ; @@v2@@ [ Number ] = Number L ; if ( @@v2@@ [ Number ] ) ospf_network_lsa_refresh ( @@v2@@ [ Number ] , ( __int64 ) @@v2@@ ) ; else ospf_network_lsa_originate ( @@v2@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "ospf_lsa_install", "code": "__int64 __fastcall ospf_lsa_install ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { const char * v4 ; char * v5 ; char * v6 ; const char * v7 ; char * v8 ; char * v9 ; char @@dest@@ [ Number ] ; __int64 @@v12@@ ; int @@v13@@ ; __int64 @@v14@@ ; __int64 @@v15@@ ; @@v15@@ = Number L ; @@v12@@ = Number L ; @@v14@@ = Number L ; if ( * ( _BYTE * ) ( * ( _QWORD * ) ( @@a3@@ + Number ) + Number L ) == Number ) @@v14@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; else @@v14@@ = * ( _QWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number ) + Number L ) ; if ( ! @@v14@@ ) _assert_fail ( String , String , Number , String ) ; @@v12@@ = ospf_lsdb_lookup ( @@v14@@ , @@a3@@ ) ; @@v13@@ = Number ; if ( ! @@v12@@ || ( unsigned int ) ospf_lsa_different ( @@v12@@ , @@a3@@ ) ) @@v13@@ = Number ; if ( @@v12@@ ) ospf_discard_from_db ( @@a1@@ , @@v14@@ , @@a3@@ ) ; ospf_lsdb_add ( @@v14@@ , @@a3@@ ) ; * ( _QWORD * ) ( @@a3@@ + Number ) = @@v14@@ ; if ( ( * ( _BYTE * ) @@a3@@ & Number ) != Number ) ospf_lsa_checksum ( * ( _QWORD * ) ( @@a3@@ + Number ) ) ; switch ( * ( _BYTE * ) ( * ( _QWORD * ) ( @@a3@@ + Number ) + Number L ) ) { case Number : @@v15@@ = ospf_router_lsa_install ( @@a1@@ , @@a3@@ , @@v13@@ ) ; break ; case Number : if ( ! @@a2@@ ) _assert_fail ( String , String , Number , String ) ; @@v15@@ = ( __int64 ) ospf_network_lsa_install ( @@a1@@ , @@a2@@ , ( _BYTE * ) @@a3@@ , @@v13@@ ) ; break ; case Number : @@v15@@ = ( __int64 ) ospf_summary_lsa_install ( @@a1@@ , ( _BYTE * ) @@a3@@ , @@v13@@ ) ; break ; case Number : @@v15@@ = ( __int64 ) ospf_summary_asbr_lsa_install ( @@a1@@ , ( _BYTE * ) @@a3@@ , @@v13@@ ) ; break ; case Number : @@v15@@ = ( __int64 ) ospf_external_lsa_install ( @@a1@@ , ( _BYTE * ) @@a3@@ , @@v13@@ ) ; break ; default : break ; } if ( ! @@v15@@ ) return Number L ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { if ( * ( _BYTE * ) ( * ( _QWORD * ) ( @@a3@@ + Number ) + Number L ) == Number ) { v4 = ( const char * ) mes_lookup ( & ospf_lsa_type_msg , ospf_lsa_type_msg_max , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@v15@@ + Number ) + Number L ) ) ; v5 = dump_lsa_key ( @@v15@@ ) ; zlog_info ( String , v5 , v4 ) ; } else { v6 = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( @@v15@@ + Number ) + Number L ) ) ; strcpy ( @@dest@@ , v6 ) ; v7 = ( const char * ) mes_lookup ( & ospf_lsa_type_msg , ospf_lsa_type_msg_max , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@v15@@ + Number ) + Number L ) ) ; v8 = dump_lsa_key ( @@v15@@ ) ; zlog_info ( String , v8 , v7 , @@dest@@ ) ; } } if ( ( ( int ) get_age ( @@v15@@ ) > Number || ( unsigned int ) get_age ( @@v15@@ ) == Number ) && ( * ( _BYTE * ) @@v15@@ & Number ) == Number ) { if ( ( term_debug_ospf_lsa & Number ) != Number ) { v9 = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( @@v15@@ + Number ) + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@v15@@ + Number ) + Number L ) , v9 ) ; } ospf_lsa_maxage ( @@a1@@ , @@a3@@ ) ; } return @@v15@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "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": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "dest", "t": {"T": 2, "n": 16, "s": 1, "t": "char"}, "location": "s64"}]}