{"name": "ospf_external_lsa_originate", "code": "struct timeval * __fastcall ospf_external_lsa_originate ( __int64 @@a1@@ , __int64 @@a2@@ ) { struct timeval * result ; char * v3 ; char * v4 ; struct timeval * @@v5@@ ; if ( ! ( unsigned int ) ospf_redistribute_check ( @@a1@@ , @@a2@@ , Number L ) ) return Number L ; @@v5@@ = ospf_external_lsa_new ( @@a1@@ , ( unsigned __int8 * ) @@a2@@ , Number L ) ; if ( @@v5@@ ) { ospf_lsa_install ( @@a1@@ , Number L , @@v5@@ ) ; ++ * ( _DWORD * ) ( @@a1@@ + Number ) ; ospf_flood_through_as ( @@a1@@ , Number L , @@v5@@ ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { v4 = inet_ntoa ( * ( struct in_addr * ) ( @@v5@@ -> tv_usec + Number ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( @@v5@@ -> tv_usec + Number ) , v4 , @@v5@@ ) ; ospf_lsa_header_dump ( @@v5@@ -> tv_usec ) ; } result = @@v5@@ ; } else { if ( ( term_debug_ospf_event & Number ) != Number ) { v3 = inet_ntoa ( * ( struct in_addr * ) ( @@a2@@ + Number ) ) ; zlog_info ( String , v3 ) ; } result = Number L ; } 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": "v5", "t": {"T": 3, "t": "struct timeval"}, "location": "s8"}]}
{"name": "ospf_external_lsa_new", "code": "struct timeval * __fastcall ospf_external_lsa_new ( __int64 @@a1@@ , unsigned __int8 * @@a2@@ , int * @@a3@@ ) { int @@v5@@ ; struct timeval * @@v6@@ ; int @@v7@@ ; _WORD * @@src@@ ; __int64 @@v9@@ ; if ( ! @@a2@@ ) { if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_warn ( String ) ; return Number L ; } if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; if ( @@a3@@ ) { @@v5@@ = * @@a3@@ ; LABEL_13 : @@v9@@ = stream_new ( Number L ) ; @@src@@ = * ( _WORD * * ) ( @@v9@@ + Number ) ; lsa_header_set ( @@v9@@ , Number , Number , @@v5@@ , * ( _DWORD * ) @@a1@@ ) ; ospf_external_lsa_body_set ( @@v9@@ , @@a2@@ , @@a1@@ ) ; @@v7@@ = stream_get_endp ( @@v9@@ ) ; @@src@@ [ Number ] = htons ( @@v7@@ ) ; @@v6@@ = ospf_lsa_new ( ) ; @@v6@@ [ Number ] . tv_usec = Number L ; LOBYTE ( @@v6@@ -> tv_sec ) |= Number ; @@v6@@ -> tv_usec = ( __suseconds_t ) ospf_lsa_data_new ( @@v7@@ ) ; memcpy ( ( void * ) @@v6@@ -> tv_usec , @@src@@ , @@v7@@ ) ; stream_free ( @@v9@@ ) ; return @@v6@@ ; } @@v5@@ = ospf_lsa_unique_id ( @@a1@@ , * ( _QWORD * ) ( @@a1@@ + Number ) , Number L , @@a2@@ + Number ) ; if ( @@v5@@ != Number ) goto LABEL_13 ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "int"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r64"}, {"n": "src", "t": {"T": 3, "t": "_WORD"}, "location": "s16"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v6", "t": {"T": 3, "t": "struct timeval"}, "location": "s32"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_external_lsa_originate_timer", "code": "__int64 __fastcall ospf_external_lsa_originate_timer ( __int64 @@a1@@ ) { __int64 @@v2@@ ; __int64 @@v3@@ ; int @@v4@@ ; __int64 @@v5@@ ; __int64 @@i@@ ; @@v5@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@v4@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@v5@@ + Number ) = Number L ; @@v3@@ = * ( _QWORD * ) ( om + Number * ( @@v4@@ + Number L ) + Number ) ; if ( @@v3@@ ) { for ( @@i@@ = route_top ( @@v3@@ ) ; @@i@@ ; @@i@@ = route_next ( @@i@@ ) ) { @@v2@@ = * ( _QWORD * ) ( @@i@@ + Number ) ; if ( @@v2@@ && ! ( unsigned int ) is_prefix_default ( @@v2@@ + Number ) && ! ospf_external_lsa_originate ( @@v5@@ , @@v2@@ ) ) zlog_warn ( String ) ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_default_originate_timer", "code": "__int64 __fastcall ospf_default_originate_timer ( __int64 @@a1@@ ) { unsigned int @@v2@@ ; __int64 @@v3@@ ; __int64 @@v4@@ ; @@v4@@ = ospf_lookup ( ) ; LOWORD ( @@v2@@ ) = Number ; if ( * * ( _DWORD * * ) ( @@a1@@ + Number ) == Number ) ospf_external_info_add ( Number L , @@v2@@ , Number , Number L , Number L ) ; @@v3@@ = ospf_default_external_info ( @@v4@@ ) ; if ( @@v3@@ ) ospf_external_lsa_originate ( @@v4@@ , @@v3@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s48"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_external_lsa_refresh_default", "code": "struct timeval * __fastcall ospf_external_lsa_refresh_default ( __int64 @@a1@@ ) { struct timeval * @@result@@ ; char @@v2@@ [ Number ] ; int @@v3@@ ; struct timeval * @@v4@@ ; __int64 @@v5@@ ; @@v2@@ [ Number ] = Number ; @@v2@@ [ Number ] = Number ; @@v3@@ = Number ; @@v5@@ = ospf_default_external_info ( @@a1@@ ) ; @@result@@ = ( struct timeval * ) ospf_external_info_find_lsa ( @@a1@@ , @@v2@@ ) ; @@v4@@ = @@result@@ ; if ( @@v5@@ ) { if ( @@v4@@ ) { if ( ( term_debug_ospf_event & Number ) != Number ) zlog_info ( String , @@v4@@ ) ; @@result@@ = ( struct timeval * ) ospf_external_lsa_refresh ( @@a1@@ , @@v4@@ , @@v5@@ , Number L ) ; } else { if ( ( term_debug_ospf_event & Number ) != Number ) zlog_info ( String ) ; @@result@@ = ospf_external_lsa_originate ( @@a1@@ , @@v5@@ ) ; } } else if ( @@v4@@ ) { if ( ( term_debug_ospf_event & Number ) != Number ) zlog_info ( String ) ; @@result@@ = ( struct timeval * ) ospf_lsa_flush_as ( @@a1@@ , @@v4@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 3, "t": "struct timeval"}, "location": "r8"}, {"n": "v4", "t": {"T": 3, "t": "struct timeval"}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "v2", "t": {"T": 2, "n": 8, "s": 1, "t": "char"}, "location": "s32"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_external_lsa_refresh_type", "code": "__int64 __fastcall ospf_external_lsa_refresh_type ( __int64 @@a1@@ , unsigned int @@a2@@ , unsigned int @@a3@@ ) { __int64 @@result@@ ; __int64 @@v5@@ ; __int64 @@v6@@ ; __int64 @@i@@ ; @@result@@ = @@a2@@ ; if ( ( _BYTE ) @@a2@@ != Number ) { @@result@@ = * ( _QWORD * ) ( om + Number * ( ( unsigned __int8 ) @@a2@@ + Number L ) + Number ) ; if ( @@result@@ ) { @@result@@ = route_top ( * ( _QWORD * ) ( om + Number * ( ( unsigned __int8 ) @@a2@@ + Number L ) + Number ) ) ; for ( @@i@@ = @@result@@ ; @@i@@ ; @@i@@ = @@result@@ ) { @@v6@@ = * ( _QWORD * ) ( @@i@@ + Number ) ; if ( @@v6@@ && ! ( unsigned int ) is_prefix_default ( @@v6@@ + Number ) ) { @@v5@@ = ospf_external_info_find_lsa ( @@a1@@ , @@v6@@ + Number ) ; if ( @@v5@@ ) ospf_external_lsa_refresh ( @@a1@@ , @@v5@@ , @@v6@@ , @@a3@@ ) ; else ospf_external_lsa_originate ( @@a1@@ , @@v6@@ ) ; } @@result@@ = route_next ( @@i@@ ) ; } } } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "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"}]}