"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "api/daq_common.h" between
libdaq-3.0.3.tar.gz and libdaq-3.0.4.tar.gz

About: DAQ 3 is a Data Acquisition API library for packet I/O (used for e.g. by snort 3) that replaces direct calls to PCAP functions with an abstraction layer.

daq_common.h  (libdaq-3.0.3):daq_common.h  (libdaq-3.0.4)
skipping to change at line 35 skipping to change at line 35
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/time.h> #include <sys/time.h>
#include <stdint.h> #include <stdint.h>
#include <unistd.h> #include <unistd.h>
// Comprehensive version number covering all elements of this header // Comprehensive version number covering all elements of this header
#define DAQ_COMMON_API_VERSION 0x00030002 #define DAQ_COMMON_API_VERSION 0x00030003
#ifndef DAQ_SO_PUBLIC #ifndef DAQ_SO_PUBLIC
# ifdef HAVE_VISIBILITY # ifdef HAVE_VISIBILITY
# define DAQ_SO_PUBLIC __attribute__ ((visibility("default"))) # define DAQ_SO_PUBLIC __attribute__ ((visibility("default")))
# define DAQ_SO_PRIVATE __attribute__ ((visibility("hidden"))) # define DAQ_SO_PRIVATE __attribute__ ((visibility("hidden")))
# else # else
# define DAQ_SO_PUBLIC # define DAQ_SO_PUBLIC
# define DAQ_SO_PRIVATE # define DAQ_SO_PRIVATE
# endif # endif
#endif #endif
skipping to change at line 162 skipping to change at line 162
This represents the destination addresses and ports seen on egress in both d irections. */ This represents the destination addresses and ports seen on egress in both d irections. */
#define DAQ_NAPT_INFO_FLAG_SIP_V6 0x01 /* The source address is IPv6 */ #define DAQ_NAPT_INFO_FLAG_SIP_V6 0x01 /* The source address is IPv6 */
#define DAQ_NAPT_INFO_FLAG_DIP_V6 0x02 /* The destination address is IPv6 * / #define DAQ_NAPT_INFO_FLAG_DIP_V6 0x02 /* The destination address is IPv6 * /
typedef struct _daq_napt_info typedef struct _daq_napt_info
{ {
struct in6_addr src_addr; struct in6_addr src_addr;
struct in6_addr dst_addr; struct in6_addr dst_addr;
uint16_t src_port; uint16_t src_port;
uint16_t dst_port; uint16_t dst_port;
uint8_t flags; uint8_t flags;
uint8_t ip_layer;
} DAQ_NAPTInfo_t; } DAQ_NAPTInfo_t;
/* Decoded packet information parsed from the Packet message's data. Currently, all fields refer /* Decoded packet information parsed from the Packet message's data. Currently, all fields refer
to the first protocol of each layer encountered (no information is conveyed about encapsulated to the first protocol of each layer encountered (no information is conveyed about encapsulated
duplicate protocols like IP-in-IP). The offsets for layers not found are se t to duplicate protocols like IP-in-IP). The offsets for layers not found are se t to
DAQ_PKT_DECODE_OFFSET_INVALID. */ DAQ_PKT_DECODE_OFFSET_INVALID. */
typedef union _daq_pkt_decode_flags typedef union _daq_pkt_decode_flags
{ {
uint32_t all; uint32_t all;
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)