-
Notifications
You must be signed in to change notification settings - Fork 3
/
instructions.h
executable file
·21 lines (16 loc) · 1.51 KB
/
instructions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define min(a,b) ((a) < (b) ? (a) : (b))
struct _packet_instructions;
typedef struct _packet_instructions PacketBuildInstructions;
typedef struct _packet_instructions *PPacketBuildInstructions;
void PacketBuildInstructionsFree(PacketBuildInstructions **list);
AS_attacks *InstructionsToAttack(AS_context *, PacketBuildInstructions *instructions, int count, int interval);
PacketBuildInstructions *InstructionsFindConnection(AS_context *, PacketBuildInstructions **instructions, FilterInformation *flt);
PacketBuildInstructions *PacketsToInstructions(AS_context *, char *, int);
int GenerateTCPCloseConnectionInstructions(ConnectionProperties *cptr, PacketBuildInstructions **final_build_list, int from_client);
int GenerateTCPSendDataInstructions(ConnectionProperties *cptr, PacketBuildInstructions **final_build_list, int from_client, char *data, int size);
int GenerateTCPConnectionInstructions(ConnectionProperties *cptr, PacketBuildInstructions **final_build_list);
PacketBuildInstructions *BuildInstructionsNew(PacketBuildInstructions **list, ConnectionProperties *cptr, int from_client, int flags);
int FilterCheck(AS_context *, FilterInformation *fptr, PacketBuildInstructions *iptr);
void FilterPrepare(FilterInformation *fptr, int type, uint32_t value);
PacketBuildInstructions *ThreadedInstructionsFindConnection(AS_context *, PacketBuildInstructions **instructions, FilterInformation *flt, int threads, int replay_count, int interval);
PacketBuildInstructions *InstructionsDuplicate(PacketBuildInstructions *sptr);