{"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_lsa_new", "code": "struct timeval * ospf_lsa_new ( ) { __suseconds_t @@v0@@ ; struct timeval * @@s@@ ; @@s@@ = ( struct timeval * ) zcalloc ( Number L , Number L ) ; memset ( @@s@@ , Number , Number ) ; LOBYTE ( @@s@@ -> tv_sec ) = Number ; LODWORD ( @@s@@ [ Number ] . tv_sec ) = Number ; HIDWORD ( @@s@@ [ Number ] . tv_sec ) = Number ; gettimeofday ( @@s@@ + Number , Number L ) ; @@v0@@ = @@s@@ [ Number ] . tv_usec ; @@s@@ [ Number ] . tv_sec = @@s@@ [ Number ] . tv_sec ; @@s@@ [ Number ] . tv_usec = @@v0@@ ; LODWORD ( @@s@@ [ Number ] . tv_sec ) = Number ; return @@s@@ ; }", "source": [{"n": "v0", "t": {"T": 1, "n": "__suseconds_t", "s": 8}, "location": "r16"}, {"n": "s", "t": {"T": 3, "t": "struct timeval"}, "location": "s8"}]} {"name": "ospf_lsa_data_new", "code": "void * __fastcall ospf_lsa_data_new ( size_t @@a1@@ ) { void * @@s@@ ; @@s@@ = ( void * ) zmalloc ( Number L , @@a1@@ ) ; memset ( @@s@@ , Number , @@a1@@ ) ; return @@s@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r56"}, {"n": "s", "t": {"T": 3, "t": "void"}, "location": "s8"}]} {"name": "lsa_header_set", "code": "__int64 __fastcall lsa_header_set ( __int64 @@a1@@ , char @@a2@@ , char @@a3@@ , int @@a4@@ , int @@a5@@ ) { __int64 @@v9@@ ; @@v9@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _WORD * ) @@v9@@ = htons ( Number ) ; * ( _BYTE * ) ( @@v9@@ + Number ) = @@a2@@ ; * ( _BYTE * ) ( @@v9@@ + Number ) = @@a3@@ ; * ( _DWORD * ) ( @@v9@@ + Number ) = @@a4@@ ; * ( _DWORD * ) ( @@v9@@ + Number ) = @@a5@@ ; * ( _DWORD * ) ( @@v9@@ + Number ) = htonl ( Number ) ; return ospf_output_forward ( @@a1@@ , Number L ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "ospf_network_lsa_body_set", "code": "__int64 __fastcall ospf_network_lsa_body_set ( __int64 @@a1@@ , _QWORD * @@a2@@ ) { __int64 @@result@@ ; unsigned int @@v3@@ ; __int64 @@v4@@ ; __int64 @@i@@ ; masklen2ip ( * ( unsigned __int8 * ) ( @@a2@@ [ Number ] + Number L ) , & @@v3@@ ) ; stream_put_ipv4 ( @@a1@@ , @@v3@@ ) ; @@result@@ = route_top ( @@a2@@ [ Number ] ) ; for ( @@i@@ = @@result@@ ; @@i@@ ; @@i@@ = @@result@@ ) { @@v4@@ = * ( _QWORD * ) ( @@i@@ + Number ) ; if ( @@v4@@ && ( * ( _BYTE * ) ( @@v4@@ + Number ) == Number || @@v4@@ == @@a2@@ [ Number ] ) ) stream_put_ipv4 ( @@a1@@ , * ( unsigned int * ) ( @@v4@@ + Number ) ) ; @@result@@ = route_next ( @@i@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"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_refresh", "code": "__int64 __fastcall ospf_network_lsa_refresh ( __int64 @@a1@@ , __int64 @@a2@@ ) { char * @@v3@@ ; struct timeval * @@v4@@ ; _QWORD * @@v5@@ ; @@v5@@ = * ( _QWORD * * ) ( @@a1@@ + Number ) ; if ( ! * ( _QWORD * ) ( @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; ospf_ls_retransmit_delete_nbr_area ( @@v5@@ , @@a1@@ ) ; @@v4@@ = ospf_network_lsa_new ( @@a2@@ ) ; if ( ! @@v4@@ ) return Number ; * ( _DWORD * ) ( @@v4@@ -> tv_usec + Number ) = lsa_seqnum_increment ( @@a1@@ ) ; ospf_lsa_install ( * @@v5@@ , @@a2@@ , @@v4@@ ) ; ospf_flood_through_area ( @@v5@@ , Number L , @@v4@@ ) ; if ( ( term_debug_ospf_lsa & Number ) != Number ) { @@v3@@ = inet_ntoa ( * ( struct in_addr * ) ( @@v4@@ -> tv_usec + Number ) ) ; zlog_info ( String , * ( unsigned __int8 * ) ( @@v4@@ -> tv_usec + Number ) , @@v3@@ ) ; ospf_lsa_header_dump ( @@v4@@ -> tv_usec ) ; } 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": 3, "t": "char"}, "location": "r8"}, {"n": "v4", "t": {"T": 3, "t": "struct timeval"}, "location": "s16"}, {"n": "v5", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]}