obfuscator.h
text_log.h
unified2.h
+ u2_packet.h
)
add_library ( log STATIC
packet_tracer.cc
packet_tracer.h
text_log.cc
+ u2_packet.cc
)
install(FILES ${LOG_INCLUDES}
messages.h \
obfuscator.h \
text_log.h \
+u2_packet.h \
unified2.h
liblog_a_SOURCES = \
obfuscator.cc \
packet_tracer.cc \
packet_tracer.h \
-text_log.cc
+text_log.cc \
+u2_packet.cc
if ENABLE_UNIT_TESTS
SUBDIRS = test
#include "protocols/ipv6.h"
#include "protocols/tcp.h"
+#include "main/snort_types.h"
+
struct Packet;
-class U2PseudoHeader
+class SO_PUBLIC U2PseudoHeader
{
public:
U2PseudoHeader(const Packet*);
alert_syslog.cc
log_hext.cc
log_pcap.cc
- u2_packet.cc
- u2_packet.h
unified2.cc
)
add_dynamic_module(alert_syslog loggers alert_syslog.cc)
add_dynamic_module(log_hext loggers log_hext.cc)
add_dynamic_module(log_pcap loggers log_pcap.cc)
- add_dynamic_module(unified2 loggers unified2.cc u2_packet.cc u2_packet.h)
+ add_dynamic_module(unified2 loggers unified2.cc)
endif (STATIC_LOGGERS)
log_hext.cc \
log_pcap.cc \
u2_packet.cc \
-u2_packet.h \
unified2.cc
if STATIC_LOGGERS
ehlib_LTLIBRARIES += unified2.la
unified2_la_CXXFLAGS = $(AM_CXXFLAGS) -DBUILDING_SO
unified2_la_LDFLAGS = $(AM_LDFLAGS) -module -export-dynamic -avoid-version -shared
-unified2_la_SOURCES = unified2.cc u2_packet.cc u2_packet.h
+unified2_la_SOURCES = unified2.cc
endif
#include "log/messages.h"
#include "log/obfuscator.h"
#include "log/unified2.h"
+#include "log/u2_packet.h"
#include "main/snort_config.h"
#include "network_inspectors/appid/appid_api.h"
#include "packet_io/active.h"
#include "utils/util.h"
#include "utils/util_cstring.h"
-#include "u2_packet.h"
-
using namespace std;
#define S_NAME "unified2"
{
assert(p);
- // FIXIT-H convert to packet method if correct
+ // FIXIT-L convert to packet method
if ( !p->is_cooked() or p->pseudo_type == PSEUDO_PKT_IP )
_Unified2LogPacketAlert(p, msg, &config, event, UNIFIED2_PACKET);