summaryrefslogtreecommitdiffstats
path: root/Mac/Unsupported/mactcp/MACTCPconst.py
blob: 47b9d68daafe948f7a552e400fd893e01d514158 (plain)
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
#
# MACTCP - event codes for the mactcp module
#

# UDP asr event codes
UDPDataArrival=1		# A datagram has arrived
UDPICMPReceived=2		# An ICMP error was received

# TCP asr event codes
TCPClosing=1			# All incoming data has been received and read.
TCPULPTimeout=2			# No response from remote process.
TCPTerminate=3			# Connection terminated. Has a detail parameter.
TCPDataArrival=4		# Data has arrived (and no Rcv call is outstanding)
TCPUrgent=5				# Urgent data is outstanding
TCPICMPReceived=6		# An ICMP error was received
PassiveOpenDone=32766	# (python only) a PassiveOpen has completed.

# TCP termination reasons
TCPRemoteAbort=2
TCPNetworkFailure=3
TCPSecPrecMismatch=4
TCPULPTimeoutTerminate=5
TCPULPAbort=6
TCPULPClose=7
TCPServiceError=8

# MacTCP/DNR errors
ipBadLapErr = 			-23000			# bad network configuration 
ipBadCnfgErr = 			-23001			# bad IP configuration error 
ipNoCnfgErr = 			-23002			# missing IP or LAP configuration error 
ipLoadErr = 			-23003			# error in MacTCP load 
ipBadAddr = 			-23004			# error in getting address 
connectionClosing = 	-23005			# connection is closing 
invalidLength = 		-23006
connectionExists = 		-23007			# request conflicts with existing connection 
connectionDoesntExist =	-23008			# connection does not exist 
insufficientResources =	-23009			# insufficient resources to perform request 
invalidStreamPtr = 		-23010
streamAlreadyOpen = 	-23011
connectionTerminated = 	-23012
invalidBufPtr = 		-23013
invalidRDS = 			-23014
invalidWDS = 			-23014
openFailed = 			-23015
commandTimeout = 		-23016
duplicateSocket = 		-23017

# Error codes from internal IP functions 
ipDontFragErr = 		-23032			# Packet too large to send w/o fragmenting 
ipDestDeadErr = 		-23033			# destination not responding
icmpEchoTimeoutErr = 	-23035			# ICMP echo timed-out 
ipNoFragMemErr = 		-23036			# no memory to send fragmented pkt 
ipRouteErr = 			-23037			# can't route packet off-net 

nameSyntaxErr =  		-23041		
cacheFault = 			-23042
noResultProc = 			-23043
noNameServer = 			-23044
authNameErr = 			-23045
noAnsErr = 				-23046
dnrErr = 				-23047
outOfMemory = 			-23048