{"name": "router_lsa_link_set", "code": "__int64 __fastcall router_lsa_link_set ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; unsigned int @@v4@@ ; _QWORD * @@i@@ ; @@v4@@ = Number ; for ( @@i@@ = * * ( _QWORD * * * ) ( @@a2@@ + Number ) ; @@i@@ ; @@i@@ = ( _QWORD * ) * @@i@@ ) { @@v3@@ = @@i@@ [ Number ] ; if ( ( unsigned int ) if_is_up ( * ( _QWORD * ) ( @@v3@@ + Number ) ) && * ( _BYTE * ) ( @@v3@@ + Number ) != Number ) { switch ( * ( _BYTE * ) ( @@v3@@ + Number ) ) { case Number : @@v4@@ += lsa_link_ptop_set ( @@a1@@ , @@v3@@ ) ; break ; case Number : case Number : @@v4@@ += lsa_link_broadcast_set ( @@a1@@ , @@v3@@ ) ; break ; case Number : @@v4@@ += lsa_link_ptomp_set ( @@a1@@ , @@v3@@ ) ; break ; case Number : @@v4@@ += lsa_link_virtuallink_set ( @@a1@@ , @@v3@@ ) ; break ; case Number : @@v4@@ += lsa_link_loopback_set ( @@a1@@ , @@v3@@ ) ; break ; default : continue ; } } } return @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "i", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]}
{"name": "lsa_link_ptop_set", "code": "__int64 __fastcall lsa_link_ptop_set ( __int64 @@a1@@ , __int64 @@a2@@ ) { unsigned int @@v3@@ ; unsigned int @@v4@@ ; __int64 @@v5@@ ; int @@v6@@ ; @@v6@@ = Number ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; @@v5@@ = ospf_nbr_lookup_ptop ( @@a2@@ ) ; if ( @@v5@@ && * ( _BYTE * ) ( @@v5@@ + Number ) == Number ) { link_info_set ( @@a1@@ , * ( _DWORD * ) ( @@v5@@ + Number ) , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; ++ @@v6@@ ; } if ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) ) { @@v4@@ = * ( _DWORD * ) ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) + Number L ) ; @@v3@@ = Number ; link_info_set ( @@a1@@ , @@v4@@ , Number , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; } else { masklen2ip ( * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , & @@v3@@ ) ; @@v4@@ = * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) & @@v3@@ ; link_info_set ( @@a1@@ , @@v4@@ , @@v3@@ , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; } return ( unsigned int ) ( @@v6@@ + Number ) ; }", "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": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s24"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "lsa_link_broadcast_set", "code": "__int64 __fastcall lsa_link_broadcast_set ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; unsigned int @@v3@@ ; unsigned int @@v4@@ ; __int64 @@v5@@ ; if ( * ( _BYTE * ) ( @@a2@@ + Number ) == Number ) { masklen2ip ( * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , & @@v3@@ ) ; link_info_set ( @@a1@@ , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) & @@v3@@ , @@v3@@ , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; @@result@@ = Number L ; } else { @@v5@@ = ospf_nbr_lookup_by_addr ( * ( _QWORD * ) ( @@a2@@ + Number ) , * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) ; if ( @@v5@@ && ( * ( _BYTE * ) ( @@v5@@ + Number ) == Number || ! memcmp ( ( const void * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , ( const void * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , Number ) ) && ( int ) ospf_nbr_count ( @@a2@@ , Number L ) > Number ) { link_info_set ( @@a1@@ , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; } else { masklen2ip ( * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , & @@v3@@ ) ; @@v4@@ = * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) & @@v3@@ ; link_info_set ( @@a1@@ , @@v4@@ , @@v3@@ , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; } @@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": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "lsa_link_loopback_set", "code": "__int64 __fastcall lsa_link_loopback_set ( __int64 @@a1@@ , __int64 @@a2@@ ) { if ( * ( _BYTE * ) ( @@a2@@ + Number ) != Number ) return Number L ; link_info_set ( @@a1@@ , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , Number , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "lsa_link_virtuallink_set", "code": "__int64 __fastcall lsa_link_virtuallink_set ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; if ( * ( _BYTE * ) ( @@a2@@ + Number ) != Number ) return Number L ; @@v3@@ = ospf_nbr_lookup_ptop ( @@a2@@ ) ; if ( ! @@v3@@ || * ( _BYTE * ) ( @@v3@@ + Number ) != Number ) return Number L ; link_info_set ( @@a1@@ , * ( _DWORD * ) ( @@v3@@ + Number ) , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "lsa_link_ptomp_set", "code": "__int64 __fastcall lsa_link_ptomp_set ( __int64 @@a1@@ , __int64 @@a2@@ ) { char * @@v2@@ ; __int64 @@v4@@ ; __int64 @@i@@ ; unsigned int @@v6@@ ; link_info_set ( @@a1@@ , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , Number , Number , Number , Number ) ; @@v6@@ = Number ; zlog_info ( String ) ; for ( @@i@@ = route_top ( * ( _QWORD * ) ( @@a2@@ + Number ) ) ; @@i@@ ; @@i@@ = route_next ( @@i@@ ) ) { @@v4@@ = * ( _QWORD * ) ( @@i@@ + Number ) ; if ( @@v4@@ && memcmp ( ( const void * ) ( @@v4@@ + Number ) , * ( const void * * ) @@a2@@ , Number ) && * ( _BYTE * ) ( @@v4@@ + Number ) == Number ) { link_info_set ( @@a1@@ , * ( _DWORD * ) ( @@v4@@ + Number ) , * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) , Number , Number , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; ++ @@v6@@ ; @@v2@@ = inet_ntoa ( * ( struct in_addr * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) ) ; zlog_info ( String , @@v2@@ ) ; } } return @@v6@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v2", "t": {"T": 3, "t": "char"}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v6", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "ospf_router_lsa_body_set", "code": "__int64 __fastcall ospf_router_lsa_body_set ( __int64 @@a1@@ , _DWORD * @@a2@@ ) { unsigned __int8 @@v2@@ ; unsigned __int16 @@v4@@ ; __int64 @@v5@@ ; @@v2@@ = router_lsa_flags ( @@a2@@ ) ; stream_putc ( @@a1@@ , @@v2@@ ) ; stream_putc ( @@a1@@ , Number L ) ; @@v5@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; stream_putw ( @@a1@@ , Number L ) ; @@v4@@ = router_lsa_link_set ( @@a1@@ , ( __int64 ) @@a2@@ ) ; return stream_putw_at ( @@a1@@ , @@v5@@ , @@v4@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_DWORD"}, "location": "r64"}, {"n": "v2", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s10"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}