]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing codec plugin problem
authorJosh <jrosenba@cisco.com>
Thu, 4 Dec 2014 03:01:07 +0000 (21:01 -0600)
committerJosh <jrosenba@cisco.com>
Thu, 4 Dec 2014 03:01:07 +0000 (21:01 -0600)
1  2 
src/codecs/CMakeLists.txt
src/codecs/codec_module.h
src/codecs/ip/CMakeLists.txt
src/codecs/ip/cd_mobility.cc
src/codecs/link/CMakeLists.txt
src/codecs/misc/CMakeLists.txt
src/codecs/root/CMakeLists.txt

index d1ec5bbbf5a52421b458acc11ec27fb2f1b38b49,d1ec5bbbf5a52421b458acc11ec27fb2f1b38b49..dc68a4d6368c27abf58c788298cc47572c06ba8e
@@@ -4,18 -4,18 +4,20 @@@ add_subdirectory(link
  add_subdirectory(ip)
  add_subdirectory(misc)
  
--set(CODEC_INCLUDES
++set (CODEC_INCLUDES
      codec_module.h
      codec_events.h
  )
  
--add_librarycodecs STATIC
++add_library (codecs STATIC
      ${CODEC_INCLUDES}
      codec_api.h
      codec_api.cc
--    codec_module.cc
  )
  
++add_library (codec_module
++    codec_module.cc
++)
  
  if (STATIC_CODECS)
      set (CODEC_PLUGIN_LIBRARIES
index 7e4259f1047e0c5382348c9d481936dc49b6f136,7e4259f1047e0c5382348c9d481936dc49b6f136..0146e354171072bd445affc8289b69036d73e60b
@@@ -210,7 -210,7 +210,7 @@@ enum CodecSi
  // module
  //-------------------------------------------------------------------------
  
--class CodecModule : public Module
++class SO_PUBLIC CodecModule : public Module
  {
  public:
      CodecModule(const char* s, const char* h) : Module(s, h)
index 664c06c7c1e4b68d9246bd6bd48737eb55c8bc5d,664c06c7c1e4b68d9246bd6bd48737eb55c8bc5d..c7ba68c7cca7c404902901c4de6f849569f371e0
@@@ -59,4 -59,4 +59,5 @@@ target_link_libraries( ip_codec
      events
      main
      managers
++    codec_module
  )
index 377cdc59fd25a0276e81771dd3dfb2e1906843ee,377cdc59fd25a0276e81771dd3dfb2e1906843ee..ceb08cdb4a9914ce5b41813640a600c59b43c1b7
@@@ -29,7 -29,7 +29,7 @@@
  #include "main/snort.h"
  
  // yes, macros are necessary. The API and class constructor require different strings.
--#define CD_MOBILE_NAME "mobility"
++#define CD_MOBILE_NAME "ipv6_mobility"
  #define CD_MOBILE_HELP "support for mobility"
  
  namespace
index e66e0247147b7fd91dfe3c214d45c53c9f7a7764,e66e0247147b7fd91dfe3c214d45c53c9f7a7764..da6d6f26fcff0a3177aaa4ca3ffe578b810330c7
@@@ -41,6 -41,6 +41,7 @@@ if(STATIC_CODECS
      target_link_libraries( link_codecs
          events
          managers
++        codec_module
      )
  
  endif(STATIC_CODECS)
index b2f4a2946c0663b81f7a5715087d991786d1f268,b2f4a2946c0663b81f7a5715087d991786d1f268..6425e338d5d97e2f7bf553fd87d99ff2ec586fd5
@@@ -24,4 -24,4 +24,5 @@@ add_library( misc_codecs STATI
  
  target_link_libraries( misc_codecs
      protocols
++    codec_module
  )
index 2b968a3dd4adf68e04e12888afd7b8eefe84dada,2b968a3dd4adf68e04e12888afd7b8eefe84dada..b251601d17d65d8c6f778ad8e68a6b1b6be6a680
@@@ -41,4 -41,4 +41,8 @@@ if (STATIC_CODECS
          ${PCAP_INCLUDE_DIR}/pcap.h  # rebuild if a new libpcap is installed
      )
  
++    target_link_libraries( root_codecs
++        codec_module
++    )
++
  endif (STATIC_CODECS)