bugfix: __cpluscplus -> __cplusplus

This commit is contained in:
luwenpeng
2024-07-16 17:25:55 +08:00
parent 9bd91c3c63
commit b59b736e4d
18 changed files with 36 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
#ifndef _BFD_H
#define _BFD_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -25,7 +25,7 @@ int bfd_vtysh_del_dev(struct bfd_vtysh_client *client, const char *peer_addr);
int bfd_vtysh_get_dev_active(struct bfd_vtysh_client *client, char *addr);
int bfd_vtysh_pre_config(struct bfd_vtysh_client *client);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _CONTROL_PACKET_H
#define _CONTROL_PACKET_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -46,7 +46,7 @@ const char *control_packte_state_to_string(enum control_packet_state state);
enum control_packet_state control_packet_parse(struct control_packet *handler, const char *data, size_t length);
void control_packet_dump(struct control_packet *handler);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _LOG_H
#define _LOG_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -65,7 +65,7 @@ void LOG_RELOAD(void);
} \
} while (0)
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _PACKET_H
#define _PACKET_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -103,7 +103,7 @@ const struct layer_record *packet_get_outermost_layer(const struct packet *handl
// direction 0: I2E
uint64_t packet_get_hash(const struct packet *handler, enum ldbc_method method, int direction);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _SESSION_TABLE_H
#define _SESSION_TABLE_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -36,7 +36,7 @@ int session_table_delete_by_addr(struct session_table *table, const struct four_
void *session_table_search_by_id(struct session_table *table, uint64_t id);
void *session_table_search_by_addr(struct session_table *table, const struct four_tuple *addr);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _TIMESTAMP_H
#define _TIMESTAMP_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -17,7 +17,7 @@ uint64_t timestamp_update_interval_ms(struct timestamp *ts);
uint64_t timestamp_get_sec(struct timestamp *ts);
uint64_t timestamp_get_msec(struct timestamp *ts);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _TUPLE_H
#define _TUPLE_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -358,7 +358,7 @@ inline uint64_t four_tuple_hash(const struct four_tuple *tuple)
return hash_value;
}
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _UTILS_H
#define _UTILS_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -60,7 +60,7 @@ int get_ip_by_device_name(const char *dev_name, char *ip_str);
int get_mac_by_device_name(const char *dev_name, char *mac_str);
int str_to_mac(const char *mac_str, u_char mac[]);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _VXLAN_H
#define _VXLAN_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -150,7 +150,7 @@ void vxlan_frame_encode(char *buff,
uint16_t calculate_vxlan_source_port(struct four_tuple *innermost_tuple4);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _GLOBAL_METRICS_H
#define _GLOBAL_METRICS_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -119,7 +119,7 @@ void global_metrics_destory(struct global_metrics *global_metrics);
void global_metrics_update(struct global_metrics *global_metrics, struct thread_metrics *thread_metrics, int thread_id);
void global_metrics_dump(struct global_metrics *global_metrics);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _HEALTH_CHECK_H
#define _HEALTH_CHECK_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -32,7 +32,7 @@ int health_check_session_set_status(uint64_t session_id, int is_active);
// return -1 : key not exist
int health_check_session_get_mac(uint64_t session_id, u_char mac[]);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _PACKET_IO_H
#define _PACKET_IO_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -68,7 +68,7 @@ int packet_io_polling_nf(struct packet_io *handle, struct thread_ctx *thread_ctx
int packet_io_polling_endpoint_l3(struct packet_io *handle, struct thread_ctx *thread_ctx);
int packet_io_polling_endpoint_l2(struct packet_io *handle, struct thread_ctx *thread_ctx);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _PACKET_TRACE_H
#define _PACKET_TRACE_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -174,7 +174,7 @@ static inline int sf_id_tostring(struct selected_chaining *chain, char *buffer,
} \
} while (0)
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _POLICY_H
#define _POLICY_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -137,7 +137,7 @@ int policy_enforce_chaining_size(struct policy_enforcer *enforcer);
// direction 0: I2E
void policy_enforce_select_chainings(struct policy_enforcer *enforcer, struct session_ctx *s_ctx, struct packet *data_pkt, uint64_t rule_id, int direction);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _SCE_H
#define _SCE_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -109,7 +109,7 @@ struct sce_ctx
struct sce_ctx *sce_ctx_create(const char *profile);
void sce_ctx_destory(struct sce_ctx *ctx);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _SF_METRICS_H
#define _SF_METRICS_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -24,7 +24,7 @@ void sf_metrics_inc(struct sf_metrics *handle, struct sf_metrics_key *key, uint6
void sf_metrics_send(struct sf_metrics *handle);
int sf_metrics_get_interval(struct sf_metrics *handle);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _SF_STATUS_H
#define _SF_STATUS_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -18,7 +18,7 @@ void sf_status_update(struct sf_status *handle, int sf_vsys_id, int sf_profile_i
void sf_status_send(struct sf_status *handle);
int sf_status_get_interval(struct sf_status *handle);
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _GTEST_UTILS_H
#define _GTEST_UTILS_H
#ifdef __cpluscplus
#ifdef __cplusplus
extern "C"
{
#endif
@@ -232,7 +232,7 @@ error_out:
return 1;
}
#ifdef __cpluscplus
#ifdef __cplusplus
}
#endif