clean: remove unused struct definitions

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
pull/11120/head
Philippe Antoine 10 months ago committed by Victor Julien
parent fc2e49f84a
commit b3eb1c4f81

@ -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;

@ -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;

@ -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;

@ -45,10 +45,6 @@ enum LogFileType {
LOGFILE_TYPE_NOTSET
};
typedef struct SyslogSetup_ {
int alert_syslog_level;
} SyslogSetup;
typedef struct ThreadLogFileHashEntry {
struct LogFileCtx_ *ctx;

Loading…
Cancel
Save