AppPacCap

Application Packet Capture: A better way to PCAP.

Constant Values

These are the numeric values that AppPacCap API calls may return.

Web server error codes

	                  
ERROR_SERVE_SUCCESS = 0
ERROR_SERVE_GENERIC_ERROR = 1
ERROR_SERVE_NO_TOKEN = 2
ERROR_SERVE_NO_PAGE = 3
ERROR_SERVE_MALFORMED_REQUEST = 4
ERROR_SERVE_SESSION_TIMEOUT = 5
ERROR_SERVE_INVALID_PERMISSIONS = 8
ERROR_SERVE_INVALID_CREDENTIALS = 9
ERROR_SERVE_INVALID_LICENSE = 12
	                  
	                

Response data types

	                  
DATA_TYPE_STRING = 1
DATA_TYPE_INT = 2
DATA_TYPE_JSON = 3
DATA_TYPE_HEX = 4
HD_DATA_TYPE_IP = 5
	                  
	                

Data object error codes

	                  
ERROR_NO_ERROR = 0
ERROR_GENERIC_ERROR = -1
ERROR_INVALID_PARAMETER = -3
ERROR_PENDING = -11 (does not indicate an error)
ERROR_PARTIAL_SUCCESS = -12 (recoverable error occured)
ERROR_DB_OPEN_ERROR = -84
ERROR_IO_CREATE = -154
	                  
	                

Action type

	                  
ACTION_TYPE_EXECUTE = 1
ACTION_TYPE_EXPORT = 2
	                  
	                

Action flags

	                  
ACTION_FLAG_SYSTEM_WIDE = 1
ACTION_FLAG_TRIGGER = 2
	                  
	                

Capture flags

                    
CAPTURE_FLAG_CAPTURE_CHILDREN = 1
CAPTURE_FLAG_RESOLVE_IPS = 2
CAPTURE_FLAG_SYSTEM_WIDE = 4
CAPTURE_FLAG_THREAD_CAPTURE = 8
CAPTURE_FLAG_SEPARATE_THREADS = 16
CAPTURE_FLAG_LOOPBACK = 32
                    
                  

Command status

	                  
COMMAND_STATUS_OK = 0
COMMAND_STATUS_PENDED = 1
COMMAND_STATUS_FINISHED = 2
COMMAND_STATUS_ERROR = 3
COMMAND_STATUS_CANCELLED = 4
COMMAND_STATUS_PROCESSING = 5
	                  
	                

Extract flags

                    
EXTRACT_HTTP = 1
EXTRACT_SMB = 2
                    
                  

Flush flags

                    
FLUSH_GLOBAL_PACKETS = 1
FLUSH_GLOBAL_IPS = 2
FLUSH_COMMANDS = 4
FLUSH_SEARCHES = 8
FLUSH_CAPTURES = 16
                    
                  

Layer 3 protocol id numbers

	                  
L3_NETWORK_AARP = 0
L3_NETWORK_ARP = 2
L3_NETWORK_IPV4 = 3
L3_NETWORK_IPV6 = 4
L3_NETWORK_RARP = 6
	                  
	                

Trigger type

                    
TRIGGER_TYPE_ON_START = 1