2 //#include "log_sguil.h"
6 //if (you want to log to file)
7 //bstring file = bfromcstr("/tmp/prads-asset.log");
8 bstring file
= bfromcstr(PRADS_ASSETLOG
);
9 init_output_log_file(file
);
13 //if (you want to log to sguil - FIFO)
14 // bstring sguil = bfromcstr("/tmp/prads-asset.fifo");
15 // init_output_sguil(sguil);
23 end_output_log_file ();
26 char *hex2mac(const char *mac
)
31 snprintf(buf
, sizeof(buf
), "%02X:%02X:%02X:%02X:%02X:%02X",
32 (mac
[0] & 0xFF), (mac
[1] & 0xFF), (mac
[2] & 0xFF),
33 (mac
[3] & 0xFF), (mac
[4] & 0xFF), (mac
[5] & 0xFF));