1#ifndef _CRTX_NF_QUEUE_H
2#define _CRTX_NF_QUEUE_H
15#define PFW_NEWPACKET_SIGNATURE "ussssD"
16enum {PFW_NEWP_PROTOCOL=0, PFW_NEWP_SRC_IP, PFW_NEWP_SRC_HOST, PFW_NEWP_DST_IP, PFW_NEWP_DST_HOST, PFW_NEWP_PAYLOAD};
18#define PFW_NEWPACKET_TCP_SIGNATURE "uu"
19enum {PFW_NEWP_TCP_SPORT=0, PFW_NEWP_TCP_DPORT};
21#define PFW_NEWPACKET_UDP_SIGNATURE "uu"
22enum {PFW_NEWP_UDP_SPORT=0, PFW_NEWP_UDP_DPORT};
31 u_int32_t default_mark;
36 u_int16_t hw_protocol;
46 unsigned char *payload;
52char crtx_nfq_print_packet(
struct crtx_dict *ds);
53char *crtx_nfq_proto2str(u_int16_t protocol);
55char nfq_packet_msg_okay(
struct crtx_event *event);
57CRTX_DECLARE_ALLOC_FUNCTION(nf_queue)
59void crtx_nf_queue_init();
60void crtx_nf_queue_finish();
an event that is emitted by a listener crtx_listener_base
Definition core.h:59
base structure of a listener
Definition core.h:186