forked from seclab-ucr/INTANG
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiscrepancy.h
More file actions
28 lines (19 loc) · 909 Bytes
/
discrepancy.h
File metadata and controls
28 lines (19 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __DISCREPANCY_H__
#define __DISCREPANCY_H__
#include "protocol.h"
#include "socket.h"
// Insertion Packet Discrepancy
#define INS_DISC_SMALL_TTL 1
#define INS_DISC_BAD_TCP_CHECKSUM (1 << 1)
#define INS_DISC_NO_TCP_FLAG (1 << 2)
#define INS_DISC_BAD_ACK_NUM (1 << 3)
#define INS_DISC_MD5 (1 << 4)
#define INS_DISC_OLD_TIMESTAMP (1 << 5)
void send_insertion_packet(struct send_tcp_vars *vars, unsigned int flags);
void send_fake_SYN(struct mypacket *orig_packet, unsigned int flags);
void send_fake_FIN(struct mypacket *orig_packet, unsigned int flags);
void send_fake_RST(struct mypacket *orig_packet, unsigned int flags);
void send_fake_data(struct mypacket *orig_packet, unsigned int flags);
void send_fake_SYN_ACK(struct mypacket *orig_packet, unsigned int flags);
void send_desync_data(struct mypacket *orig_packet, unsigned int flags);
#endif