TSG-13629 tsg-service-chaining-engine解封装从SAPP收到的控制报文

This commit is contained in:
luwenpeng
2023-02-17 17:15:53 +08:00
parent 737ca3d4be
commit e6a3f5c1dc
6 changed files with 200 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ struct ctrl_pkt_parser
char tsync[4];
uint64_t session_id;
enum session_state state;
char method[32];
int policy_ids[32];
int policy_id_num;
};
@@ -29,7 +30,8 @@ void ctrl_packet_parser_init(struct ctrl_pkt_parser *handler);
// return 0 : success
// return -1 : error
int ctrl_packet_parser_parse(struct ctrl_pkt_parser *handler, const void *data, size_t length);
int ctrl_packet_parser_parse(struct ctrl_pkt_parser *handler, const char *data, size_t length);
void ctrl_packet_parser_dump(struct ctrl_pkt_parser *handler);
#ifdef __cpluscplus
}