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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
/*
* Header file for the scan6 tool
*
*/
#define BUFFER_SIZE 65556
/* Constants used with the multi_scan_local() function */
#define PROBE_ICMP6_ECHO 1
#define PROBE_UNREC_OPT 2
#define PROBE_TCP 3
#define LOCAL_SRC 1
#define GLOBAL_SRC 2
#define ICMPV6_ECHO_PAYLOAD_SIZE 56
#define MAX_IPV6_ENTRIES 65000
/* Constant for the host-scanning functions */
#define PRINT_ETHER_ADDR 1
#define NOT_PRINT_ETHER_ADDR 0
#define VALID_MAPPING 1
#define INVALID_MAPPING 0
/* Remote scans */
#define LOW_BYTE_1ST_WORD_UPPER 0x1500
#define LOW_BYTE_2ND_WORD_UPPER 0x0100
#define EMBEDDED_PORT_2ND_WORD 5
#define MAX_IEEE_OUIS_LINE_SIZE 160
#define OUI_HEX_STRING_SIZE 5
#define MAX_IEEE_OUIS 1000
#define MAX_SCAN_ENTRIES 65535
#define MAX_PORT_ENTRIES 65536
#define MAX_PREF_ENTRIES MAX_SCAN_ENTRIES
#define SELECT_TIMEOUT 4
#define PSCAN_TIMEOUT 1
#define MAX_RANGE_STR_LEN 79
#define MIN_INC_RANGE 1000
/* #define MAX_DESTNATIONS 65535 */
#define MAX_IID_ENTRIES 65535
#define ND_RETRIES 0
/* Constants for config file processing */
#define MAX_LINE_SIZE 250
#define MAX_VAR_NAME_LEN 100
#define MAX_FILENAME_SIZE 250
union my6_addr{
uint8_t s6addr[16];
uint16_t s6addr16[8];
uint32_t s6addr32[4];
struct in6_addr in6_addr;
};
/* Stores one remote target to scan */
struct scan_entry{
union my6_addr start;
union my6_addr end;
union my6_addr cur;
};
/* Store the list of remote targets to scan */
struct scan_list{
struct scan_entry **target;
unsigned int ctarget;
unsigned int ntarget;
unsigned int maxtarget;
unsigned int inc;
};
#define MAX_PORTS_LINE_SIZE 80
/* Stores one port entry to scan */
struct port_entry{
uint16_t start;
uint16_t end;
uint16_t cur;
};
/* Store the list of remote targets to scan */
struct port_list{
struct port_entry **port;
unsigned int cport;
unsigned int nport;
unsigned int maxport;
unsigned int proto;
struct port_table_entry *port_table;
};
/* Store the list of remote targets to scan */
struct port_table_entry{
unsigned int loaded;
char name[MAX_PORTS_LINE_SIZE];
};
/* Constants for port scan results */
#define PORT_FILTERED 1
#define PORT_OPEN 2
#define PORT_CLOSED 4
|