From a7cd765f2057cec1c57127b935d3c9839e5ae01d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sun, 17 Jan 2021 23:22:09 +0100 Subject: [PATCH] app-layer/nfs: dead code removal --- src/app-layer-nfs-tcp.c | 33 --------------------------------- src/app-layer-nfs-tcp.h | 3 --- 2 files changed, 36 deletions(-) diff --git a/src/app-layer-nfs-tcp.c b/src/app-layer-nfs-tcp.c index e806324976..d921db5f98 100644 --- a/src/app-layer-nfs-tcp.c +++ b/src/app-layer-nfs-tcp.c @@ -47,25 +47,6 @@ * 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 } diff --git a/src/app-layer-nfs-tcp.h b/src/app-layer-nfs-tcp.h index 2ffb831b78..d1c72d72ff 100644 --- a/src/app-layer-nfs-tcp.h +++ b/src/app-layer-nfs-tcp.h @@ -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__ */