Remove nping/global_structures.h as none of these were used.

This commit is contained in:
dmiller 2026-06-13 06:09:20 +00:00
parent d8c9880cd5
commit 8d7038e51e
9 changed files with 2 additions and 42 deletions

View file

@ -67,7 +67,7 @@ TARGET = nping
export SRCS = ArgParser.cc common.cc common_modified.cc nping.cc NpingOps.cc utils.cc utils_net.cc output.cc stats.cc NpingTargets.cc NpingTarget.cc EchoHeader.cc EchoServer.cc EchoClient.cc ProbeMode.cc NEPContext.cc Crypto.cc
export HDRS = ArgParser.h nping_config.h common.h common_modified.h nping.h NpingOps.h global_structures.h output.h utils.h utils_net.h stats.h NpingTargets.h NpingTarget.h EchoHeader.h EchoServer.h EchoClient.h ProbeMode.h NEPContext.h Crypto.h
export HDRS = ArgParser.h nping_config.h common.h common_modified.h nping.h NpingOps.h output.h utils.h utils_net.h stats.h NpingTargets.h NpingTarget.h EchoHeader.h EchoServer.h EchoClient.h ProbeMode.h NEPContext.h Crypto.h
OBJS = ArgParser.o common.o common_modified.o nping.o NpingOps.o utils.o utils_net.o output.o stats.o NpingTargets.o NpingTarget.o EchoHeader.o EchoServer.o EchoClient.o ProbeMode.o NEPContext.o Crypto.o

View file

@ -106,7 +106,7 @@
#define MAX_ICMP_ADVERT_ENTRIES 128
#include "nping.h"
#include "global_structures.h"
#include "nsock.h"
#include "stats.h"
#include "NpingTargets.h"
#include <string>

View file

@ -61,7 +61,6 @@
#include "nping.h"
#include "NpingOps.h"
#include "global_structures.h"
#include "output.h"
#include "nbase.h"
#include "utils.h"

View file

@ -1,33 +0,0 @@
#ifndef GLOBAL_STRUCTURES_H
#define GLOBAL_STRUCTURES_H
#include "nsock.h"
#include "nbase.h"
typedef struct service_lookup {
char *name;
u8 proto;
u16 portno;
} service_lookup;
typedef struct m_data {
nsock_pool nsp;
nsock_iod nsi;
int state;
int protocol;
unsigned short port;
struct in_addr ip;
int attempts;
int max_attempts; /* how many attempts in one connection */
char *username;
char *password;
char *buf;
int bufsize;
} m_data;
#endif

View file

@ -69,7 +69,6 @@
#include "utils.h"
#include "utils_net.h"
#include "nsock.h"
#include "global_structures.h"
#include "ArgParser.h"
#include "EchoHeader.h"
#include "EchoClient.h"

View file

@ -159,7 +159,6 @@
<ClInclude Include="EchoClient.h" />
<ClInclude Include="EchoHeader.h" />
<ClInclude Include="EchoServer.h" />
<ClInclude Include="global_structures.h" />
<ClInclude Include="NEPContext.h" />
<ClInclude Include="nping.h" />
<ClInclude Include="NpingOps.h" />

View file

@ -62,7 +62,6 @@
#include "nping.h"
#include "utils.h"
#include "NpingOps.h"
#include "global_structures.h"
#include "output.h"
#include "nbase.h"
#include "pcap.h"

View file

@ -73,8 +73,6 @@
#include <unistd.h>
#endif
#include "global_structures.h"
/* Function prototypes */
bool contains(const char *source, const char *substring);
bool meansRandom(const char *source);

View file

@ -62,7 +62,6 @@
#include "utils.h"
#include "utils_net.h"
#include "NpingOps.h"
#include "global_structures.h"
#include "output.h"
#include "nbase.h"
#include "pcap.h"