]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer/nfs: dead code removal
authorVictor Julien <victor@inliniac.net>
Sun, 17 Jan 2021 22:22:09 +0000 (23:22 +0100)
committerVictor Julien <victor@inliniac.net>
Sun, 17 Jan 2021 22:22:09 +0000 (23:22 +0100)
src/app-layer-nfs-tcp.c
src/app-layer-nfs-tcp.h

index e8063249767bd2e3679df123cc1c90872759a84f..d921db5f98e05adce2fc8956f0a04be287da95d7 100644 (file)
  * be the size of a header. TODO actual min size is likely larger */
 #define NFSTCP_MIN_FRAME_LEN 32
 
-/* Enum of app-layer events for an echo protocol. Normally you might
- * have events for errors in parsing data, like unexpected data being
- * received. For echo we'll make something up, and log an app-layer
- * level alert if an empty message is received.
- *
- * Example rule:
- *
- * alert nfs any any -> any any (msg:"SURICATA NFS empty message"; \
- *    app-layer-event:nfs.empty_message; sid:X; rev:Y;)
- */
-enum {
-    NFSTCP_DECODER_EVENT_EMPTY_MESSAGE,
-};
-
-SCEnumCharMap nfs_decoder_event_table[] = {
-    {"EMPTY_MESSAGE", NFSTCP_DECODER_EVENT_EMPTY_MESSAGE},
-    { NULL, 0 }
-};
-
 static void *NFSTCPStateAlloc(void *orig_state, AppProto proto_orig)
 {
     return rs_nfs_state_new(orig_state, proto_orig);
@@ -362,18 +343,4 @@ void RegisterNFSTCPParsers(void)
     else {
         SCLogDebug("NFSTCP protocol parsing disabled.");
     }
-
-#ifdef UNITTESTS
-    AppLayerParserRegisterProtocolUnittests(IPPROTO_TCP, ALPROTO_NFS,
-        NFSTCPParserRegisterTests);
-#endif
-}
-
-#ifdef UNITTESTS
-#endif
-
-void NFSTCPParserRegisterTests(void)
-{
-#ifdef UNITTESTS
-#endif
 }
index 2ffb831b78a787f4e183cc862a1f5d1dd6cf2efa..d1c72d72ff6d3f84a076197c86bd04fbd8281dde 100644 (file)
@@ -24,9 +24,6 @@
 #ifndef __APP_LAYER_NFS_TCP_H__
 #define __APP_LAYER_NFS_TCP_H__
 
-#include "app-layer-events.h"
-
 void RegisterNFSTCPParsers(void);
-void NFSTCPParserRegisterTests(void);
 
 #endif /* __APP_LAYER_NFS_TCP_H__ */