symbol: set public symbols prefix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "stdio.h"
|
||||
#include "osfp.h"
|
||||
#include "MESA_osfp.h"
|
||||
|
||||
char iph[] = {
|
||||
0x45, 0x00, 0x00, 0x34, 0x51, 0xc4, 0x40, 0x00,
|
||||
@@ -22,14 +22,14 @@ int main(int argc, char **argv)
|
||||
struct tcphdr *l4_hdr = (struct tcphdr *)tcph;
|
||||
size_t l4_hdr_len = sizeof(tcph);
|
||||
|
||||
struct osfp_db *db = osfp_db_new(json_file_path);
|
||||
struct osfp_db *db = MESA_osfp_db_new(json_file_path);
|
||||
if (db) {
|
||||
struct osfp_result *result = osfp_ipv4_identify(db, l3_hdr, l4_hdr, l4_hdr_len);
|
||||
struct osfp_result *result = MESA_osfp_ipv4_identify(db, l3_hdr, l4_hdr, l4_hdr_len);
|
||||
if (result) {
|
||||
printf("likely os: %s\n", osfp_result_os_name_get(result));
|
||||
printf("details: \n%s\n", osfp_result_score_detail_export(result));
|
||||
osfp_result_free(result);
|
||||
printf("likely os: %s\n", MESA_osfp_result_os_name_get(result));
|
||||
printf("details: \n%s\n", MESA_osfp_result_score_detail_export(result));
|
||||
MESA_osfp_result_free(result);
|
||||
}
|
||||
osfp_db_free(db);
|
||||
MESA_osfp_db_free(db);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user