Changes

Jump to navigation Jump to search
328 bytes added ,  14:10, 25 November 2016
Line 80: Line 80:  
** <code>.hdr.relocs</code> should be set to <code>-v</code> argument (it's an array)
 
** <code>.hdr.relocs</code> should be set to <code>-v</code> argument (it's an array)
 
** <code>.hdr.nr_relocs</code> should be set to the number of elements in this array (<code>sizeof(arr)/sizeof(arr[0])</code>)
 
** <code>.hdr.nr_relocs</code> should be set to the number of elements in this array (<code>sizeof(arr)/sizeof(arr[0])</code>)
 +
 +
To pass arguments between the infecting code and parasite one may call <code>compel_parasite_args(ctl, type)</code> and get the pointer where it can put data. Subsequent calls to <code>compel_rpc_call[_sync]</code> would result int this data visible in <code>void *arg</code> address of the <code>parasite_daemon_cmd()</code>.
    
== See also ==
 
== See also ==

Navigation menu