{"name": "ospf_summary_asbr_lsa_originate", "code": "_QWORD * __fastcall ospf_summary_asbr_lsa_originate ( __int64 @@a1@@ , uint32_t @@a2@@ , _QWORD * @@a3@@ ) { struct timeval * v3 ; char * v4 ; int @@v7@@ ; _QWORD * @@v8@@ ; @@v7@@ = ospf_lsa_unique_id ( * @@a3@@ , @@a3@@ [ Number ] , Number L , @@a1@@ ) ; v3 = ospf_summary_asbr_lsa_new ( ( __suseconds_t ) @@a3@@ , @@a1@@ , @@a2@@ , @@v7@@ ) ; @@v8@@ = ( _QWORD * ) ospf_lsa_install ( * @@a3@@ , Number L , v3 ) ; ++ * ( _DWORD * ) ( * @@a3@@ + Number L ) ; ospf_flood_through_area ( @@a3@@ , Number L , @@v8@@ ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { v4 = inet_ntoa ( * ( struct in_addr * ) ( @@v8@@ [ Number ] + Number L ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( @@v8@@ [ Number ] + Number L ) , v4 , @@v8@@ ) ; ospf_lsa_header_dump ( @@v8@@ [ Number ] ) ; } return @@v8@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "_QWORD"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "uint32_t", "s": 4}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v8", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]}
{"name": "ospf_summary_asbr_lsa_new", "code": "struct timeval * __fastcall ospf_summary_asbr_lsa_new ( __suseconds_t @@a1@@ , __int64 @@a2@@ , uint32_t @@a3@@ , int @@a4@@ ) { char v4 ; struct timeval * @@v9@@ ; int @@v10@@ ; _WORD * @@src@@ ; __int64 @@v12@@ ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; @@v12@@ = stream_new ( Number L ) ; @@src@@ = * ( _WORD * * ) ( @@v12@@ + Number ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) v4 = Number ; else v4 = Number ; lsa_header_set ( @@v12@@ , v4 , Number , @@a4@@ , * * ( _DWORD * * ) @@a1@@ ) ; ospf_summary_asbr_lsa_body_set ( @@v12@@ , @@a2@@ , @@a3@@ ) ; @@v10@@ = stream_get_endp ( @@v12@@ ) ; @@src@@ [ Number ] = htons ( @@v10@@ ) ; @@v9@@ = ospf_lsa_new ( ) ; @@v9@@ [ Number ] . tv_usec = @@a1@@ ; LOBYTE ( @@v9@@ -> tv_sec ) |= Number ; @@v9@@ -> tv_usec = ( __suseconds_t ) ospf_lsa_data_new ( @@v10@@ ) ; memcpy ( ( void * ) @@v9@@ -> tv_usec , @@src@@ , @@v10@@ ) ; stream_free ( @@v12@@ ) ; return @@v9@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "uint32_t", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__suseconds_t", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "src", "t": {"T": 3, "t": "_WORD"}, "location": "s16"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v9", "t": {"T": 3, "t": "struct timeval"}, "location": "s32"}, {"n": "v12", "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"}]} {"name": "ospf_lsa_unique_id", "code": "__int64 __fastcall ospf_lsa_unique_id ( unsigned int * @@a1@@ , __int64 @@a2@@ , unsigned __int8 @@a3@@ , __int64 @@a4@@ ) { unsigned int v4 ; char * v5 ; unsigned int v7 ; char * v8 ; unsigned int @@v11@@ ; int @@v12@@ ; __int64 @@v13@@ ; __int64 @@v14@@ ; @@v11@@ = * ( _DWORD * ) ( @@a4@@ + Number ) ; @@v14@@ = ospf_lsdb_lookup_by_id ( @@a2@@ , @@a3@@ , @@v11@@ , * @@a1@@ ) ; if ( ! @@v14@@ ) return @@v11@@ ; @@v13@@ = * ( _QWORD * ) ( @@v14@@ + Number ) ; if ( ( unsigned __int8 ) ip_masklen ( * ( unsigned int * ) ( @@v13@@ + Number ) ) == * ( _BYTE * ) ( @@a4@@ + Number ) ) { if ( ( term_debug_ospf_lsa & Number ) != Number ) { v4 = * ( unsigned __int8 * ) ( @@a4@@ + Number ) ; v5 = inet_ntoa ( * ( struct in_addr * ) ( @@a4@@ + Number ) ) ; zlog_warn ( String , v5 , v4 ) ; } return Number ; } masklen2ip ( * ( unsigned __int8 * ) ( @@a4@@ + Number ) , & @@v12@@ ) ; @@v11@@ = ~ @@v12@@ | * ( _DWORD * ) ( @@a4@@ + Number ) ; @@v14@@ = ospf_lsdb_lookup_by_id ( * ( ( _QWORD * ) @@a1@@ + Number ) , @@a3@@ , @@v11@@ , * @@a1@@ ) ; if ( ! @@v14@@ ) return @@v11@@ ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { v7 = * ( unsigned __int8 * ) ( @@a4@@ + Number ) ; v8 = inet_ntoa ( * ( struct in_addr * ) ( @@a4@@ + Number ) ) ; zlog_warn ( String , v8 , v7 ) ; } return Number ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "unsigned int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v12", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "v11", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s40"}]}