Export tuple.h / packet.h / session.h to the include directory
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <sys/queue.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "packet.h"
|
||||
#include "packet_private.h"
|
||||
#include "crc32_hash.h"
|
||||
#include "checksum.h"
|
||||
#include "ipv4_utils.h"
|
||||
@@ -300,7 +300,7 @@ static inline void ip_flow_key_zero(struct ip_flow_key *key)
|
||||
|
||||
static inline void ip_frag_hdr_init(struct ip_frag_hdr *hdr, const struct packet *pkt)
|
||||
{
|
||||
struct pkt_layer *layer = pkt->frag_layer;
|
||||
struct packet_layer *layer = pkt->frag_layer;
|
||||
|
||||
if (layer->type == LAYER_TYPE_IPV6)
|
||||
{
|
||||
@@ -854,7 +854,7 @@ struct packet *ip_reassembly_packet(struct ip_reassembly *assy, const struct pac
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const struct pkt_layer *layer = pkt->frag_layer;
|
||||
const struct packet_layer *layer = pkt->frag_layer;
|
||||
if (layer == NULL)
|
||||
{
|
||||
return NULL;
|
||||
@@ -892,7 +892,7 @@ struct packet *ip_reassembly_packet(struct ip_reassembly *assy, const struct pac
|
||||
|
||||
struct packet *ipv4_reassembly_packet(struct ip_reassembly *assy, const struct packet *pkt, uint64_t now)
|
||||
{
|
||||
const struct pkt_layer *layer = pkt->frag_layer;
|
||||
const struct packet_layer *layer = pkt->frag_layer;
|
||||
const struct ip *hdr = (const struct ip *)layer->hdr_ptr;
|
||||
uint16_t frag_len = ipv4_hdr_get_total_len(hdr) - ipv4_hdr_get_hdr_len(hdr);
|
||||
if (frag_len > layer->pld_len)
|
||||
@@ -978,7 +978,7 @@ struct packet *ipv4_reassembly_packet(struct ip_reassembly *assy, const struct p
|
||||
|
||||
struct packet *ipv6_reassembly_packet(struct ip_reassembly *assy, const struct packet *pkt, uint64_t now)
|
||||
{
|
||||
const struct pkt_layer *layer = pkt->frag_layer;
|
||||
const struct packet_layer *layer = pkt->frag_layer;
|
||||
const struct ip6_hdr *hdr = (const struct ip6_hdr *)layer->hdr_ptr;
|
||||
const struct ip6_frag *frag_hdr = ipv6_hdr_get_frag_ext(hdr);
|
||||
if (frag_hdr == NULL)
|
||||
|
||||
Reference in New Issue
Block a user