{"name": "ospf_network_lsa_originate", "code": "_QWORD * __fastcall ospf_network_lsa_originate ( _QWORD * @@a1@@ ) { char * @@v2@@ ; struct timeval * v3 ; _QWORD * v4 ; v3 = ospf_network_lsa_new ( ( __int64 ) @@a1@@ ) ; if ( ! v3 ) return Number L ; v4 = ( _QWORD * ) ospf_lsa_install ( * @@a1@@ , @@a1@@ , v3 ) ; ++ * ( _DWORD * ) ( * @@a1@@ + Number L ) ; ospf_flood_through_area ( @@a1@@ [ Number ] , Number L , v4 ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { @@v2@@ = inet_ntoa ( * ( struct in_addr * ) ( v4 [ Number ] + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( v4 [ Number ] + Number L ) , @@v2@@ , v4 ) ; ospf_lsa_header_dump ( v4 [ Number ] ) ; } return v4 ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "char"}, "location": "r8"}]}
{"name": "ospf_network_lsa_new", "code": "struct timeval * __fastcall ospf_network_lsa_new ( __int64 @@a1@@ ) { char @@v2@@ ; struct timeval * @@v3@@ ; int @@v4@@ ; _WORD * @@src@@ ; __int64 @@v6@@ ; if ( ! * ( _DWORD * ) ( @@a1@@ + Number ) ) return Number L ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; @@v6@@ = stream_new ( Number L ) ; @@src@@ = * ( _WORD * * ) ( @@v6@@ + Number ) ; if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) @@v2@@ = Number ; else @@v2@@ = Number ; lsa_header_set ( @@v6@@ , * ( _BYTE * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) | @@v2@@ , Number , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) , * * ( _DWORD * * ) @@a1@@ ) ; ospf_network_lsa_body_set ( @@v6@@ , ( _QWORD * ) @@a1@@ ) ; @@v4@@ = stream_get_endp ( @@v6@@ ) ; @@src@@ [ Number ] = htons ( @@v4@@ ) ; @@v3@@ = ospf_lsa_new ( ) ; @@v3@@ [ Number ] . tv_usec = * ( _QWORD * ) ( @@a1@@ + Number ) ; LOBYTE ( @@v3@@ -> tv_sec ) |= Number ; @@v3@@ -> tv_usec = ( __suseconds_t ) ospf_lsa_data_new ( @@v4@@ ) ; memcpy ( ( void * ) @@v3@@ -> tv_usec , @@src@@ , @@v4@@ ) ; stream_free ( @@v6@@ ) ; return @@v3@@ ; }", "source": [{"n": "v2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "src", "t": {"T": 3, "t": "_WORD"}, "location": "s16"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 3, "t": "struct timeval"}, "location": "s32"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "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"}]} {"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"}]}