support packet_manager_register_node(), remove packet_manager_subscribe()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user