Add packet utils to packet.h
This commit is contained in:
@@ -729,7 +729,7 @@ static struct packet *ip_frag_reassemble(struct ip_reassembly *assy, struct ip_f
|
||||
|
||||
// create a new packet
|
||||
packet_parse(pkt, ptr, packet_len);
|
||||
packet_set_action(pkt, PACKET_ACTION_DROP);
|
||||
packet_set_drop(pkt);
|
||||
|
||||
return pkt;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "packet_private.h"
|
||||
#include "packet.h"
|
||||
#include "log.h"
|
||||
|
||||
#define IP_REASSEMBLE_DEBUG(format, ...) LOG_DEBUG("ip_reassembly", format, ##__VA_ARGS__)
|
||||
|
||||
@@ -13,6 +13,7 @@ extern "C"
|
||||
#include "ipv4_utils.h"
|
||||
#include "ipv6_utils.h"
|
||||
#include "ip_reassembly.h"
|
||||
#include "packet_private.h"
|
||||
|
||||
static inline void packet_set_ipv4_src_addr(struct packet *pkt, uint32_t saddr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user