]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
clean: remove unused struct definitions 11120/head
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 22 May 2024 13:33:44 +0000 (15:33 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 22 May 2024 18:19:00 +0000 (20:19 +0200)
Found with
git grep "typedef struct" src/ | awk '{print $3}' | sort |
uniq | sed 's/_$//' | while read i; do
echo -n $i; git grep $i | wc -l; done | awk '$2 < 3'

Ticket: 4083

src/decode-ipv6.h
src/decode.h
src/flow-manager.c
src/util-logopenfile.h

index 4b3be53779c65bb58e1895be62c0f6b4c9ab562f..d44334702e43cd36d9c2d06f26bc6233b70e536f 100644 (file)
@@ -113,22 +113,6 @@ typedef struct IPV6AuthHdr_
     uint32_t ip6ah_seq;             /* sequence number */
 } __attribute__((__packed__)) IPV6AuthHdr;
 
-typedef struct IPV6EspHdr_
-{
-    uint32_t ip6esph_spi;           /* SECURITY PARAMETERS INDEX (SPI) */
-    uint32_t ip6esph_seq;           /* sequence number */
-} __attribute__((__packed__)) IPV6EspHdr;
-
-typedef struct IPV6RouteHdr_
-{
-    uint8_t ip6rh_nxt;               /* next header */
-    uint8_t ip6rh_len;               /* header length in units of 8 bytes, not
-                                        including first 8 bytes. */
-    uint8_t ip6rh_type;              /* routing type */
-    uint8_t ip6rh_segsleft;          /* segments left */
-} __attribute__((__packed__)) IPV6RouteHdr;
-
-
 /* Hop-by-Hop header and Destination Options header use options that are
  * defined here. */
 
@@ -162,28 +146,6 @@ typedef struct IPV6OptJumbo_
     uint32_t ip6j_payload_len;     /* Jumbo Payload Length */
 } IPV6OptJumbo;
 
-typedef struct IPV6HopOptsHdr_
-{
-    uint8_t ip6hh_nxt;              /* next header */
-    uint8_t ip6hh_len;              /* header length in units of 8 bytes, not
-                                       including first 8 bytes. */
-} __attribute__((__packed__)) IPV6HopOptsHdr;
-
-typedef struct IPV6DstOptsHdr_
-{
-    uint8_t ip6dh_nxt;              /* next header */
-    uint8_t ip6dh_len;              /* header length in units of 8 bytes, not
-                                       including first 8 bytes. */
-} __attribute__((__packed__)) IPV6DstOptsHdr;
-
-typedef struct IPV6GenOptHdr_
-{
-    uint8_t type;
-    uint8_t next;
-    uint8_t len;
-    uint8_t *data;
-}   IPV6GenOptHdr;
-
 typedef struct IPV6ExtHdrs_
 {
     bool rh_set;
index 2f282e0621b083cdb21f6faddccf2e8f2a4dcc19..4531a4faa8eb46c07e96eb42a4840305d34f388a 100644 (file)
@@ -348,15 +348,6 @@ typedef struct PktProfilingLoggerData_ {
     uint64_t ticks_spent;
 } PktProfilingLoggerData;
 
-typedef struct PktProfilingPrefilterEngine_ {
-    uint64_t ticks_spent;
-} PktProfilingPrefilterEngine;
-
-typedef struct PktProfilingPrefilterData_ {
-    PktProfilingPrefilterEngine *engines;
-    uint32_t size;          /**< array size */
-} PktProfilingPrefilterData;
-
 /** \brief Per pkt stats storage */
 typedef struct PktProfiling_ {
     uint64_t ticks_start;
index 2e883f9246aa216afbb8972145c2316dd18b4037..1568dc708a400c4f377a805e0e724e9aa56d006e 100644 (file)
@@ -583,11 +583,6 @@ static uint32_t FlowCleanupHash(void)
     return cnt;
 }
 
-typedef struct FlowQueueTimeoutCounters {
-    uint32_t flows_removed;
-    uint32_t flows_timeout;
-} FlowQueueTimeoutCounters;
-
 typedef struct FlowCounters_ {
     uint16_t flow_mgr_full_pass;
     uint16_t flow_mgr_rows_sec;
index 5e2fd327d33ae9b1d1156f1dbeed1c371575f91b..ac01906671c207d6482b6de676a2db72dc8915a5 100644 (file)
@@ -45,10 +45,6 @@ enum LogFileType {
     LOGFILE_TYPE_NOTSET
 };
 
-typedef struct SyslogSetup_ {
-    int alert_syslog_level;
-} SyslogSetup;
-
 typedef struct ThreadLogFileHashEntry {
     struct LogFileCtx_ *ctx;