|
@@ -5,18 +5,18 @@ DNS request to be checked.\n\
|
|
|
This plays the role of ACL context for the RequestACL object.\n\
|
|
|
\n\
|
|
|
Based on the minimalist philosophy, the initial implementation only\n\
|
|
|
-maintains the remote (source) IP address of the request. The plan is\n\
|
|
|
-to add more parameters of the request. A scheduled next step is to\n\
|
|
|
-support the TSIG key (if it's included in the request). Other\n\
|
|
|
-possibilities are the local (destination) IP address, the remote and\n\
|
|
|
-local port numbers, various fields of the DNS request (e.g. a\n\
|
|
|
-particular header flag value).\n\
|
|
|
+maintains the remote (source) IP address of the request and\n\
|
|
|
+(optionally) the TSIG record included in the request. We may add more\n\
|
|
|
+parameters of the request as we see the need for them. Possible\n\
|
|
|
+additional parameters are the local (destination) IP address, the\n\
|
|
|
+remote and local port numbers, various fields of the DNS request (e.g.\n\
|
|
|
+a particular header flag value).\n\
|
|
|
\n\
|
|
|
-RequestContext(remote_address)\n\
|
|
|
+RequestContext(remote_address, tsig)\n\
|
|
|
\n\
|
|
|
In this initial implementation, the constructor only takes a\n\
|
|
|
remote IP address in the form of a socket address as used in the\n\
|
|
|
- Python socket module.\n\
|
|
|
+ Python socket module, and optionally a pydnspp.TSIGRecord object.\n\
|
|
|
\n\
|
|
|
Exceptions:\n\
|
|
|
isc.acl.ACLError Normally shouldn't happen, but still possible\n\
|
|
@@ -25,6 +25,9 @@ RequestContext(remote_address)\n\
|
|
|
\n\
|
|
|
Parameters:\n\
|
|
|
remote_address The remote IP address\n\
|
|
|
+ tsig The TSIG record included in the request message, if any.\n\
|
|
|
+ If the request doesn't include a TSIG, this will be None.\n\
|
|
|
+ If this parameter is omitted None will be assumed.\n\
|
|
|
\n\
|
|
|
";
|
|
|
} // unnamed namespace
|