support packet_manager_register_node(), remove packet_manager_subscribe()

This commit is contained in:
luwenpeng
2024-11-22 15:30:53 +08:00
parent 6c9e6e3fbe
commit efc6f46ca0
11 changed files with 291 additions and 315 deletions

View File

@@ -904,6 +904,7 @@ static inline const char *parse_l3(struct packet *pkt, uint16_t next_proto, cons
static inline const char *parse_l4(struct packet *pkt, uint8_t next_proto, const char *data, uint16_t len)
{
pkt->ip_proto = next_proto;
switch (next_proto)
{
case IPPROTO_AH:
@@ -944,6 +945,7 @@ const char *packet_parse(struct packet *pkt, const char *data, uint16_t len)
pkt->data_ptr = data;
pkt->data_len = len;
pkt->trim_len = 0;
pkt->ip_proto = 0;
return parse_ether(pkt, data, len);
}