symbol: set public symbols prefix

This commit is contained in:
zhuzhenjun
2023-10-12 15:05:58 +08:00
parent 7e1849233b
commit 8b8627b0d8
13 changed files with 64 additions and 67 deletions

View File

@@ -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);
}
}