{"name": "ospf_router_lsa_timer_add", "code": "__int64 __fastcall ospf_router_lsa_timer_add ( __int64 @@a1@@ ) { __int64 @@result@@ ; int @@v2@@ ; _QWORD * @@v3@@ ; @@v3@@ = * ( _QWORD * * ) ( @@a1@@ + Number ) ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) && ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) { thread_cancel ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; } if ( @@v3@@ && ( @@v2@@ = ospf_lsa_refresh_delay ( @@v3@@ ) , @@v2@@ > Number ) ) { @@result@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( ! @@result@@ ) { @@result@@ = thread_add_timer ( master , ospf_router_lsa_timer , @@a1@@ , @@v2@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@result@@ ; } } else { if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; @@result@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( ! @@result@@ ) { @@result@@ = thread_add_timer ( master , ospf_router_lsa_timer , @@a1@@ , Number L ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@result@@ ; } } 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"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v3", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]}
{"name": "ospf_lsa_refresh_delay", "code": "__int64 __fastcall ospf_lsa_refresh_delay ( _QWORD * @@a1@@ ) { __int64 v1 ; __int64 v2 ; int v3 ; __int64 v4 ; __int64 v5 ; __int64 v6 ; __int64 v7 ; char * v8 ; struct timeval @@tv@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; unsigned int @@v13@@ ; @@v13@@ = Number ; gettimeofday ( & @@tv@@ , Number L ) ; @@v11@@ = tv_sub ( @@tv@@ . tv_sec , @@tv@@ . tv_usec , @@a1@@ [ Number ] , @@a1@@ [ Number ] ) ; @@v12@@ = v1 ; v2 = int2tv ( Number ) ; if ( ( int ) tv_cmp ( @@v11@@ , @@v12@@ , v2 , v3 ) < Number ) { v4 = int2tv ( Number ) ; v6 = tv_sub ( v4 , v5 , @@v11@@ , @@v12@@ ) ; @@v13@@ = tv_ceil ( v6 , v7 ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { v8 = inet_ntoa ( * ( struct in_addr * ) ( @@a1@@ [ Number ] + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( @@a1@@ [ Number ] + Number L ) , v8 , @@v13@@ ) ; } if ( ( int ) @@v13@@ <= Number ) _assert_fail ( String , String , Number , String ) ; } return @@v13@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "v13", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "tv", "t": {"T": 6, "n": "struct timeval", "l": [{"T": 4, "n": "tv_sec", "t": "__time_t", "s": 8}, {"T": 4, "n": "tv_usec", "t": "__suseconds_t", "s": 8}]}, "location": "s64"}]} {"name": "ospf_router_lsa_timer", "code": "__int64 __fastcall ospf_router_lsa_timer ( __int64 @@a1@@ ) { __int64 @@v2@@ ; if ( ( term_debug_ospf_event & Number ) != Number ) zlog_info ( String ) ; @@v2@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@v2@@ + Number ) = Number L ; if ( * ( _QWORD * ) ( @@v2@@ + Number ) ) ospf_router_lsa_refresh ( * ( _QWORD * ) ( @@v2@@ + Number ) ) ; else ospf_router_lsa_originate ( ( _DWORD * ) @@v2@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"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_lsa_refresh", "code": "__int64 __fastcall ospf_lsa_refresh ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; unsigned __int8 * @@v3@@ ; if ( ( * ( _BYTE * ) @@a2@@ & Number ) == Number ) _assert_fail ( String , String , Number , String ) ; @@result@@ = * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) ; if ( ( _DWORD ) @@result@@ == Number ) { @@v3@@ = ( unsigned __int8 * ) ospf_external_info_check ( @@a2@@ ) ; if ( @@v3@@ ) @@result@@ = ospf_external_lsa_refresh ( @@a1@@ , @@a2@@ , @@v3@@ , Number ) ; else @@result@@ = ospf_lsa_flush_as ( @@a1@@ , @@a2@@ ) ; } else if ( * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) <= Number ) { if ( ( _DWORD ) @@result@@ == Number ) { @@result@@ = ( __int64 ) ospf_summary_asbr_lsa_refresh ( @@a1@@ , @@a2@@ ) ; } else if ( * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) > Number ) { @@result@@ = ( __int64 ) ospf_summary_lsa_refresh ( @@a1@@ , @@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"}, {"n": "v3", "t": {"T": 3, "t": "unsigned __int8"}, "location": "s8"}]}