refactor: rename struct raw_layer to struct layer_private
This commit is contained in:
@@ -33,7 +33,7 @@ struct metadata
|
||||
const void *origin_ctx;
|
||||
};
|
||||
|
||||
struct raw_layer
|
||||
struct layer_private
|
||||
{
|
||||
enum layer_proto proto;
|
||||
const char *hdr_ptr; // header pointer
|
||||
@@ -46,8 +46,8 @@ struct raw_layer
|
||||
struct packet
|
||||
{
|
||||
void *user_data;
|
||||
struct raw_layer layers[PACKET_MAX_LAYERS];
|
||||
struct raw_layer *frag_layer; // fragment layer
|
||||
struct layer_private layers[PACKET_MAX_LAYERS];
|
||||
struct layer_private *frag_layer; // fragment layer
|
||||
int8_t layers_used;
|
||||
int8_t layers_size;
|
||||
int8_t need_free;
|
||||
@@ -121,9 +121,9 @@ int packet_get_outermost_tuple6(const struct packet *pkt, struct tuple6 *tuple);
|
||||
* layer uitls
|
||||
******************************************************************************/
|
||||
|
||||
const struct raw_layer *packet_get_raw_layer(const struct packet *pkt, int idx);
|
||||
const struct raw_layer *packet_get_innermost_raw_layer(const struct packet *pkt, enum layer_proto proto);
|
||||
const struct raw_layer *packet_get_outermost_raw_layer(const struct packet *pkt, enum layer_proto proto);
|
||||
const struct layer_private *packet_get_layer(const struct packet *pkt, int idx);
|
||||
const struct layer_private *packet_get_innermost_layer(const struct packet *pkt, enum layer_proto proto);
|
||||
const struct layer_private *packet_get_outermost_layer(const struct packet *pkt, enum layer_proto proto);
|
||||
|
||||
/******************************************************************************
|
||||
* load balance uitls
|
||||
@@ -140,7 +140,7 @@ struct packet *packet_dup(const struct packet *pkt);
|
||||
void packet_free(struct packet *pkt);
|
||||
|
||||
int packet_is_fragment(const struct packet *pkt);
|
||||
void layer_convert(const struct raw_layer *in, struct layer *out);
|
||||
void layer_convert(const struct layer_private *in, struct layer *out);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user