From: Philippe Antoine Date: Mon, 27 Jun 2022 11:20:29 +0000 (+0200) Subject: src: remove unused header files X-Git-Tag: suricata-7.0.0-beta1~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4411ef785d923de93c34fa4346aa81ec20bd63ae;p=thirdparty%2Fsuricata.git src: remove unused header files --- diff --git a/src/Makefile.am b/src/Makefile.am index a731eb1ad3..481d093b84 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -38,7 +38,6 @@ noinst_HEADERS = \ app-layer-modbus.h \ app-layer-quic.h \ app-layer-mqtt.h \ - app-layer-nbss.h \ app-layer-nfs-tcp.h \ app-layer-nfs-udp.h \ app-layer-ntp.h \ @@ -81,7 +80,6 @@ noinst_HEADERS = \ decode-ipv6.h \ decode-mpls.h \ decode-nsh.h \ - decode-null.h \ decode-ppp.h \ decode-pppoe.h \ decode-raw.h \ @@ -607,7 +605,6 @@ noinst_HEADERS = \ util-validate.h \ util-var.h \ util-var-name.h \ - util-vector.h \ win32-misc.h \ win32-service.h \ win32-syscall.h \ diff --git a/src/app-layer-nbss.h b/src/app-layer-nbss.h deleted file mode 100644 index 198279ef11..0000000000 --- a/src/app-layer-nbss.h +++ /dev/null @@ -1,61 +0,0 @@ -/* Copyright (C) 2007-2010 Open Information Security Foundation - * - * You can copy, redistribute or modify this Program under the terms of - * the GNU General Public License version 2 as published by the Free - * Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * version 2 along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - */ - -/** - * \file - * - * \author Kirby Kuehl - */ - -#ifndef __APP_LAYER_NBSS_H__ -#define __APP_LAYER_NBSS_H__ - - -/* - http://ubiqx.org/cifs/rfc-draft/rfc1002.html#s4.3 - All session packets are of the following general structure: - - 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | TYPE | FLAGS | LENGTH | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | | - / TRAILER (Packet Type Dependent) / - | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - The TYPE, FLAGS, and LENGTH fields are present in every session - packet. -*/ - -#define NBSS_SESSION_MESSAGE 0x00 -#define NBSS_SESSION_REQUEST 0x81 -#define NBSS_POSITIVE_SESSION_RESPONSE 0x82 -#define NBSS_NEGATIVE_SESSION_RESPONSE 0x83 -#define NBSS_RETARGET_SESSION_RESPONSE 0x84 -#define NBSS_SESSION_KEEP_ALIVE 0x85 - -typedef struct NBSSHdr_ { - uint8_t type; - uint8_t flags; - uint32_t length; -} NBSSHdr; - -#define NBSS_HDR_LEN 4 - -#endif /* __APP_LAYER_NBSS_H__ */ diff --git a/src/decode-null.h b/src/decode-null.h deleted file mode 100644 index a0f465d493..0000000000 --- a/src/decode-null.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2007-2010 Open Information Security Foundation - * - * You can copy, redistribute or modify this Program under the terms of - * the GNU General Public License version 2 as published by the Free - * Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * version 2 along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - */ - -/** - * \file - * - * \author Victor Julien - */ - -#ifndef __DECODE_NULL_H__ -#define __DECODE_NULL_H__ - -#endif /* __DECODE_NULL_H__ */ diff --git a/src/util-vector.h b/src/util-vector.h deleted file mode 100644 index c826964dd5..0000000000 --- a/src/util-vector.h +++ /dev/null @@ -1,43 +0,0 @@ -/* Copyright (C) 2007-2011 Open Information Security Foundation - * - * You can copy, redistribute or modify this Program under the terms of - * the GNU General Public License version 2 as published by the Free - * Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * version 2 along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - */ - -/** - * \file - * - * \author Victor Julien - */ - -#ifndef __UTIL_VECTOR_H__ -#define __UTIL_VECTOR_H__ - -#if defined(__SSE3__) - -#include - -typedef struct Vector_ { - union { - __m128i v; /**< vector */ - uint8_t c[16]; /**< character */ - uint16_t w[8]; /**< word */ - uint32_t dw[4]; /**< double word */ - uint64_t qw[2]; /**< quad word */ - }; -} Vector __attribute((aligned(16))); - -#endif /* defined(__SSE3__) */ - -#endif /* __UTIL_VECTOR_H__ */