1 | Connect exit information | Input | Char(*) |
2 | Return indicator | Output | Char(1) |
A user-defined exit program enables a custom program to allow or deny attempted connections to complete based on a program's restrictions. The sockets connect() API will permit or deny the attempted connection from completing successfully based on the return indicator from the exit program.
None.
Used by the user-written program to help determine if the outgoing connection should be allowed to successfully complete. Refer to Format of Connect Exit Information for details about this parameter.
Indicates whether the connection should be accepted or rejected.
'0' | Allow the outgoing connection to complete. |
'1' | Deny the outgoing connection and force connect() to fail with errno set to EPERM. |
'9' | Allow the outgoing connection and indicate this user exit program should not be called again for this process. |
Note: Any value other than '0' or '9' indicates that the outgoing connection should be denied.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | Binary(4) | Local address length |
4 | 4 | Char(28) | Local address |
32 | 20 | Binary(4) | Destination address length |
36 | 24 | Char(28) | Destination address |
Destination address. The address the connection was issued to. This field is large enough to hold either a sockaddr_in or sockaddr_in6 structure. In order to determine the format of this field refer to the Destination address length field.
Destination address length. The length of the address structure the connection was issued to.
Local address. The address the connecting socket is bound to. This field will be large enough to hold either a sockaddr_in or sockaddr_in6 structure. In order to determine the format of this field refer to the Local address length field.
Local address length. The length of the address structure the connecting socket is bound to.
See the following for more information: