{"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"}]}
{"name": "router_lsa_flags", "code": "__int64 __fastcall router_lsa_flags ( _DWORD * @@a1@@ ) { char v2 ; char v3 ; unsigned __int8 v4 ; v2 = * ( _BYTE * ) ( * ( _QWORD * ) @@a1@@ + Number L ) ; if ( ( unsigned int ) ospf_full_virtual_nbrs ( @@a1@@ ) ) v3 = v2 | Number ; else v3 = v2 & Number ; v4 = v3 & Number ; if ( * ( _BYTE * ) ( * ( _QWORD * ) @@a1@@ + Number L ) == Number && @@a1@@ [ Number ] && ( ! @@a1@@ [ Number ] && ! * ( _QWORD * ) ( * ( _QWORD * ) @@a1@@ + Number L ) || @@a1@@ [ Number ] == Number ) ) v4 |= Number ; if ( @@a1@@ [ Number ] == Number ) v4 &= Number ; return v4 ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}]} {"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": "ospf_router_lsa_new", "code": "struct timeval * __fastcall ospf_router_lsa_new ( _DWORD * @@a1@@ ) { char @@v1@@ ; struct timeval * @@v3@@ ; int @@v4@@ ; _WORD * @@src@@ ; __int64 @@v6@@ ; int * @@v7@@ ; @@v7@@ = * ( int * * ) @@a1@@ ; if ( ( term_debug_ospf_lsa & Number ) != Number ) zlog_info ( String ) ; @@v6@@ = stream_new ( Number L ) ; @@src@@ = * ( _WORD * * ) ( @@v6@@ + Number ) ; if ( @@a1@@ [ Number ] ) @@v1@@ = Number ; else @@v1@@ = Number ; lsa_header_set ( @@v6@@ , @@v1@@ , Number , * @@v7@@ , * @@v7@@ ) ; ospf_router_lsa_body_set ( @@v6@@ , @@a1@@ ) ; @@v4@@ = stream_get_endp ( @@v6@@ ) ; @@src@@ [ Number ] = htons ( @@v4@@ ) ; @@v3@@ = ospf_lsa_new ( ) ; @@v3@@ [ Number ] . tv_usec = ( __suseconds_t ) @@a1@@ ; 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": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "src", "t": {"T": 3, "t": "_WORD"}, "location": "s24"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v3", "t": {"T": 3, "t": "struct timeval"}, "location": "s40"}, {"n": "v7", "t": {"T": 3, "t": "int"}, "location": "s8"}]}