{"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_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_maxage_lsa_remover", "code": "__int64 __fastcall ospf_maxage_lsa_remover ( __int64 @@a1@@ ) { int v1 ; char * v2 ; char * v3 ; _QWORD * @@v5@@ ; __int64 @@v6@@ ; __int64 @@v7@@ ; _BOOL4 @@v8@@ ; _QWORD * @@i@@ ; @@v7@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@v7@@ + Number ) = Number L ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; v1 = ospf_check_nbr_status ( @@v7@@ ) ; @@v8@@ = v1 == Number ; if ( v1 ) { for ( @@i@@ = * * ( _QWORD * * * ) ( @@v7@@ + Number ) ; @@i@@ ; @@i@@ = @@v5@@ ) { @@v6@@ = @@i@@ [ Number ] ; @@v5@@ = ( _QWORD * ) * @@i@@ ; if ( * ( int * ) ( @@v6@@ + Number ) <= Number ) { if ( ( * ( _BYTE * ) @@v6@@ & Number ) != Number && ( term_debug_ospf_lsa & Number ) != Number ) { v2 = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) , v2 ) ; } if ( ( term_debug_ospf_lsa & Number ) != Number ) { v3 = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) , v3 ) ; } ospf_flood_through ( @@v7@@ , Number L , @@v6@@ ) ; ospf_discard_from_db ( @@v7@@ , * ( _QWORD * ) ( @@v6@@ + Number ) , @@v6@@ ) ; ospf_lsdb_delete ( * ( _QWORD * ) ( @@v6@@ + Number ) , @@v6@@ ) ; } else { @@v8@@ = Number ; } } } if ( @@v8@@ && ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = thread_add_timer ( master , ospf_maxage_lsa_remover , @@v7@@ , Number L ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v8", "t": {"T": 1, "n": "_BOOL4", "s": 4}, "location": "s12"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v5", "t": {"T": 3, "t": "_QWORD"}, "location": "s40"}, {"n": "i", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "ospf_lsa_flush_schedule", "code": "__int64 __fastcall ospf_lsa_flush_schedule ( __int64 @@a1@@ , _QWORD * @@a2@@ ) { char * @@v3@@ ; uint16_t * @@v4@@ ; if ( ! @@a2@@ || ( * ( _BYTE * ) @@a2@@ & Number ) == Number ) return Number L ; if ( ( term_debug_ospf_event & Number ) != Number ) { @@v3@@ = inet_ntoa ( * ( struct in_addr * ) ( @@a2@@ [ Number ] + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( @@a2@@ [ Number ] + Number L ) , @@v3@@ ) ; } @@v4@@ = ( uint16_t * ) @@a2@@ [ Number ] ; * @@v4@@ = htons ( Number ) ; ospf_lsa_maxage ( @@a1@@ , @@a2@@ ) ; return Number L ; }", "source": [{"n": "v4", "t": {"T": 3, "t": "uint16_t"}, "location": "r32"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "v3", "t": {"T": 3, "t": "char"}, "location": "r8"}]}