]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fix includes to work with dynamic examples
authorRuss Combs <rucombs@cisco.com>
Tue, 10 Jun 2014 19:19:24 +0000 (15:19 -0400)
committerRuss Combs <rucombs@cisco.com>
Tue, 10 Jun 2014 19:19:24 +0000 (15:19 -0400)
27 files changed:
src/codecs/Makefile.am
src/codecs/layer.h
src/detection/rules.h
src/detection/signature.h
src/detection/treenodes.h
src/events/event.h
src/events/event_queue.h
src/flow/flow_key.h
src/framework/codec.h
src/framework/inspector.h
src/framework/ips_option.h
src/framework/logger.h
src/framework/mpse.h
src/framework/so_rule.h
src/framework/value.h
src/hash/sfhashfcn.h
src/log/messages.h
src/protocols/Makefile.am
src/protocols/icmp4.h
src/protocols/packet.h
src/search_engines/pat_stats.h
src/sfip/sf_ip.h
src/sfrt/sfrt.h
src/stream/stream_splitter.h
src/utils/bitop_funcs.h
src/utils/segment_mem.h
src/utils/stats.h

index d2f0d07047fc345b6361c6193ff16edbf68901e1..22b9252b0c9b0c22ca673126b96a3ebc822c0a86 100644 (file)
@@ -1,15 +1,19 @@
 AUTOMAKE_OPTIONS=foreign no-dependencies
 
+x_includedir = $(pkgincludedir)/codecs
+
 noinst_LIBRARIES = libcodecs.a
 noinst_LIBRARIES += libcodec_utils.a
 
+x_include_HEADERS = \
+layer.h \
+sf_protocols.h
+
 libcodecs_a_SOURCES = \
 codec_api.cc \
 codec_api.h \
 decode.h \
-decode_module.h \
-layer.h \
-sf_protocols.h
+decode_module.h
 
 libcodec_utils_a_SOURCES = \
 codec_events.cc \
@@ -19,7 +23,6 @@ ipv6_util.cc  \
 checksum.h \
 checksum.cc
 
-
 SUBDIRS = \
 ip \
 link \
index 0b86f4228c09fa5e277f25856e65ba3858d6629a..2520647bb2942ff563a28740b4a2e36a011e40fa 100644 (file)
 
 #include "codecs/sf_protocols.h"
 
-
-struct Layer {
+struct Layer
+{
     uint16_t prot_id;
     PROTO_ID proto;
     uint16_t length;
     uint8_t* start;
 };
 
-
 #endif
+
index aafa2e90ccbaeb2083c0266191696bf8d1d14017..52d37b9fc6ffafb9e7bcdc78d510bca88acb16f8 100644 (file)
@@ -26,7 +26,7 @@
 #include "config.h"
 #endif
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "actions/actions.h"
 
 #define EXCEPT_SRC_IP   0x0001
index 3bb0f8ae00ee5131bb8bf8e73409d73801188eae..2170b1758275f1aa357cbb9343ef32cc8c710467 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdio.h>
 
 #include "hash/sfghash.h"
-#include "snort_types.h"
+#include "main/snort_types.h"
 
 struct SnortConfig;
 struct OptTreeNode;
index 2c02ecc56917fdc3dd7fa4a0e0f978e6bfd1e3e5..21de6849d3e727e157de36db32047462bbe424d2 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef TREENODES_H
 #define TREENODES_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
index 5e13608c408f891b554809f84d7e9755e281960b..52dcc3a534d2d703700e5538929aa66d25f3f5bc 100644 (file)
@@ -29,7 +29,7 @@
 #include "config.h"
 #endif
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "main/thread.h"
 
 extern THREAD_LOCAL uint16_t event_id;
index 9a21d2704c2a0a3e1ffc037ef23edce74abd532b..a97a23878bc7ba4f7705e6ad4752cbff644fea4f 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef EVENT_QUEUE_H
 #define EVENT_QUEUE_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "actions/actions.h"
 
 #define SNORT_EVENTQ_PRIORITY    1
index 9864ade881589c3e68f8b43bb2672ddfa6cdb49d..2ec43ffb7ac7054a7ff3a778c24c72a9ca593dd2 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef FLOW_KEY_H
 #define FLOW_KEY_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "hash/sfhashfcn.h"
 #include "sfip/ipv6_port.h"
 
index 80aa55a667a10731ce4429f823113e0915d9c8cb..aa852348e2485d55ea592aee886d731108cb20db 100644 (file)
@@ -22,9 +22,9 @@
 
 #include <vector>
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "framework/base_api.h"
-#include "packet.h"
+#include "protocols/packet.h"
 
 
 // REMOVE WHEN POSSIBLE!!!
index 3e494309df594004b2872d2fbca532f6fc06438b..823e2aa583b60ac2e38f72817a82bb316b3a603c 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef INSPECTOR_H
 #define INSPECTOR_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "main/thread.h"
 #include "framework/base_api.h"
 
index 699d4ad346140217fdd7283f2b6e8fc364245ae2..d02ec2be32f7b9224d84716b04341bb2e85bce56 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef IPS_OPTION_H
 #define IPS_OPTION_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "framework/base_api.h"
 #include "detection/rule_option_types.h"
 
index e188d6b97559ae47af74fae566d493604223707e..cfab014625e88128603d2438f5badf1ca28756a6 100644 (file)
@@ -25,7 +25,7 @@
 # include "config.h"
 #endif
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "events/event.h"
 #include "framework/base_api.h"
 
index 3ab7b6755399a57715a71bc80568c4f28def948a..e30c80dd2bd55f228c86a482042169fdf05bea96 100644 (file)
@@ -27,7 +27,7 @@
 #include "config.h"
 #endif
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "main/thread.h"
 #include "framework/base_api.h"
 #include "time/profiler.h"
index d169ce6d1ecb08c3ee5e1825f2c5cd51ad9a570e..ee7b8eb6d02f156bdf3c3572c58c04ad7ecbb921 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef SO_RULE_H
 #define SO_RULE_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "framework/base_api.h"
 #include "framework/ips_option.h"
 
index 0fa9c5ae94384c35dc70796f0ceaf66ad38a0858..ddc27e80afc0dca11330ebd941f1846bcde6a906 100644 (file)
@@ -26,8 +26,8 @@
 #include <algorithm>
 #include <string>
 
-#include "bits.h"
-#include "parameter.h"
+#include "framework/bits.h"
+#include "framework/parameter.h"
 #include "sfip/sfip_t.h"
 
 class Value
index 1425d18fdbefb08022ddc6f04e6703cf39266d20..449dd2a57d45a13099b87250d138486152d4b60b 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdio.h>
 #include <time.h>
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 
 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))
 
index 3280fb769596ba69aec884066dc202e1d54b1804..90b7d0b1cb95142f08699e00aca596f28a3a95e9 100644 (file)
@@ -26,7 +26,7 @@
 # include "config.h"
 #endif
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "sfip/sf_ipvar.h"
 #include "sfip/ipv6_port.h"
 
index 08c8f72de14e0d15578bba6335e7ea8cae19b3a1..fafca5d7eff4ae09e161c2219fc9783981dbbb25 100644 (file)
@@ -3,12 +3,8 @@ AUTOMAKE_OPTIONS=foreign no-dependencies
 x_includedir = $(pkgincludedir)/protocols
 
 x_include_HEADERS = \
-packet.h
-
-EXTRA_DIST = \
 arp.h \
 decode.h \
-encode.h \
 eth.h \
 gre.h \
 icmp4.h \
@@ -16,6 +12,7 @@ icmp6.h \
 ipv4.h \
 ipv6.h \
 mpls.h \
+packet.h \
 protocol_ids.h \
 tcp.h \
 teredo.h \
index 017ec37711f6d0e1a19d46c7a2e955fd27d72ca7..171afcb90cb799a316c14753cb9532cae1e0bc3c 100644 (file)
@@ -23,7 +23,7 @@
 #define ICMP4_H
 
 #include <cstdint>
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "protocols/ipv4.h"
 
 namespace icmp4
index 0d45603b96e47c9a44bfaf222d8c9d6ec4edf2e8..b18fe1b8e95085891a5e8b57ae02d1f19c6013a0 100644 (file)
@@ -46,7 +46,7 @@ extern "C" {
 #include <sfbpf_dlt.h>
 }
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "sfip/ipv6_port.h"
 #include "sfip/sf_ip.h"
 #include "sfip/sf_iph.h"
index d5ce2d2779ecdd9dd2b0b7ab1574b692ec3c430f..4a3a9ace8529587638e9da04e2f78d320e214b60 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef PAT_STATS_H
 #define PAT_STATS_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "main/thread.h"
 #include "utils/stats.h"
 
index 500e20a6df6d356e91631fe7d49e377627200af2..887556bb2b89fcaa7718305ba6c41b3692c506a6 100644 (file)
@@ -40,7 +40,7 @@
 #include <arpa/inet.h>
 
 #include "sfip/sfip_t.h"
-#include "snort_debug.h"
+#include "main/snort_debug.h"
 
 /* define SFIP_ROBUST to check pointers passed into the sfip libs.
  * Robustification should not be enabled if the client code is trustworthy.
index a269d8240cc85e63e69520975d89ce99d728fa79..3bc4ba1b8646aaef5885012a070739cc6a1601dd 100644 (file)
 
 #include <stdlib.h>
 #include <sys/types.h>
-#include "snort_debug.h"
+#include "main/snort_debug.h"
 #include "sfrt/sfrt_trie.h"
 #include "sfip/ipv6_port.h"
 
index 44ebaf083ddbc189b505bca543f467d362b9cbb9..ec58c2b9e424a06a982301e8099ca665ed9a7291 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef TCP_SPLITTER_H
 #define TCP_SPLITTER_H
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "main/thread.h"
 
 class Flow;
index 19677e21ccbc6322e50e1d8201539da160b3f9af..a8a993c433f723f913859a4265127a6775728471 100644 (file)
@@ -41,7 +41,7 @@
 #include "config.h"
 #endif
 
-#include "snort_debug.h"
+#include "main/snort_debug.h"
 #include "utils/bitop.h"
 
 /*
index bf0166f6e58922289a282a26c064f5bf7526aa11..0c4ee8b2fda59b6475b5d237ee46b4bf38373d3a 100644 (file)
@@ -25,7 +25,7 @@
 #define SEGMENT_MEM_H
 
 #include <stdlib.h>
-#include "snort_types.h"
+#include "main/snort_types.h"
 
 typedef uint32_t MEM_OFFSET;
 
index 1ac41ef0200b36b544169db6b0e6bc97023a0893..69aa6f6c8b19e59371da0ce2f51b966a490b05f3 100644 (file)
@@ -33,7 +33,7 @@
 #include <unistd.h>
 #include <string.h>
 
-#include "snort_types.h"
+#include "main/snort_types.h"
 #include "main/thread.h"
 #include "sfip/sf_ipvar.h"
 #include "sfip/ipv6_port.h"