dnstraverse 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +674 -0
- data/README +4 -0
- data/Rakefile +19 -0
- data/a +44 -0
- data/bin/dnstraverse +300 -0
- data/doc.tar +0 -0
- data/doc/classes/DNSTraverse.html +198 -0
- data/doc/classes/DNSTraverse/CachingResolver.html +172 -0
- data/doc/classes/DNSTraverse/CachingResolver.src/M000055.html +21 -0
- data/doc/classes/DNSTraverse/CachingResolver.src/M000056.html +42 -0
- data/doc/classes/DNSTraverse/DecodedQuery.html +475 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000020.html +34 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000021.html +23 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000022.html +19 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000023.html +33 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000024.html +26 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000025.html +24 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000026.html +29 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000027.html +19 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000028.html +18 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000029.html +32 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000030.html +19 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000031.html +19 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000032.html +20 -0
- data/doc/classes/DNSTraverse/DecodedQuery.src/M000033.html +31 -0
- data/doc/classes/DNSTraverse/DecodedQueryCache.html +182 -0
- data/doc/classes/DNSTraverse/DecodedQueryCache.src/M000063.html +21 -0
- data/doc/classes/DNSTraverse/DecodedQueryCache.src/M000064.html +33 -0
- data/doc/classes/DNSTraverse/Fingerprint.html +277 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000047.html +29 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000048.html +18 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000049.html +57 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000050.html +28 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000051.html +27 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000052.html +35 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000053.html +24 -0
- data/doc/classes/DNSTraverse/Fingerprint.src/M000054.html +29 -0
- data/doc/classes/DNSTraverse/InfoCache.html +235 -0
- data/doc/classes/DNSTraverse/InfoCache.src/M000034.html +20 -0
- data/doc/classes/DNSTraverse/InfoCache.src/M000035.html +23 -0
- data/doc/classes/DNSTraverse/InfoCache.src/M000036.html +28 -0
- data/doc/classes/DNSTraverse/InfoCache.src/M000037.html +25 -0
- data/doc/classes/DNSTraverse/InfoCache.src/M000038.html +27 -0
- data/doc/classes/DNSTraverse/InfoCache.src/M000039.html +33 -0
- data/doc/classes/DNSTraverse/MessageUtility.html +275 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000011.html +35 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000012.html +37 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000013.html +28 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000014.html +27 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000015.html +30 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000016.html +32 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000017.html +34 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000018.html +23 -0
- data/doc/classes/DNSTraverse/MessageUtility.src/M000019.html +36 -0
- data/doc/classes/DNSTraverse/Referral.html +641 -0
- data/doc/classes/DNSTraverse/Referral.src/M000065.html +22 -0
- data/doc/classes/DNSTraverse/Referral.src/M000066.html +21 -0
- data/doc/classes/DNSTraverse/Referral.src/M000067.html +23 -0
- data/doc/classes/DNSTraverse/Referral.src/M000068.html +19 -0
- data/doc/classes/DNSTraverse/Referral.src/M000069.html +18 -0
- data/doc/classes/DNSTraverse/Referral.src/M000070.html +54 -0
- data/doc/classes/DNSTraverse/Referral.src/M000071.html +25 -0
- data/doc/classes/DNSTraverse/Referral.src/M000072.html +27 -0
- data/doc/classes/DNSTraverse/Referral.src/M000073.html +23 -0
- data/doc/classes/DNSTraverse/Referral.src/M000074.html +20 -0
- data/doc/classes/DNSTraverse/Referral.src/M000075.html +40 -0
- data/doc/classes/DNSTraverse/Referral.src/M000076.html +52 -0
- data/doc/classes/DNSTraverse/Referral.src/M000077.html +29 -0
- data/doc/classes/DNSTraverse/Referral.src/M000078.html +54 -0
- data/doc/classes/DNSTraverse/Referral.src/M000079.html +18 -0
- data/doc/classes/DNSTraverse/Referral.src/M000080.html +22 -0
- data/doc/classes/DNSTraverse/Referral.src/M000081.html +20 -0
- data/doc/classes/DNSTraverse/Referral.src/M000082.html +29 -0
- data/doc/classes/DNSTraverse/Referral.src/M000083.html +28 -0
- data/doc/classes/DNSTraverse/Referral.src/M000084.html +29 -0
- data/doc/classes/DNSTraverse/Referral.src/M000085.html +55 -0
- data/doc/classes/DNSTraverse/Referral.src/M000086.html +30 -0
- data/doc/classes/DNSTraverse/Referral.src/M000087.html +24 -0
- data/doc/classes/DNSTraverse/Referral.src/M000088.html +20 -0
- data/doc/classes/DNSTraverse/Referral.src/M000089.html +58 -0
- data/doc/classes/DNSTraverse/ResolveError.html +111 -0
- data/doc/classes/DNSTraverse/Response.html +271 -0
- data/doc/classes/DNSTraverse/Response.src/M000057.html +27 -0
- data/doc/classes/DNSTraverse/Response.src/M000058.html +21 -0
- data/doc/classes/DNSTraverse/Response.src/M000059.html +19 -0
- data/doc/classes/DNSTraverse/Response.src/M000060.html +21 -0
- data/doc/classes/DNSTraverse/Response.src/M000061.html +31 -0
- data/doc/classes/DNSTraverse/Response.src/M000062.html +23 -0
- data/doc/classes/DNSTraverse/Response/NoGlue.html +222 -0
- data/doc/classes/DNSTraverse/Response/NoGlue.src/M000007.html +32 -0
- data/doc/classes/DNSTraverse/Response/NoGlue.src/M000008.html +18 -0
- data/doc/classes/DNSTraverse/Response/NoGlue.src/M000009.html +18 -0
- data/doc/classes/DNSTraverse/Response/NoGlue.src/M000010.html +18 -0
- data/doc/classes/DNSTraverse/Traverser.html +247 -0
- data/doc/classes/DNSTraverse/Traverser.src/M000040.html +17 -0
- data/doc/classes/DNSTraverse/Traverser.src/M000041.html +52 -0
- data/doc/classes/DNSTraverse/Traverser.src/M000042.html +61 -0
- data/doc/classes/DNSTraverse/Traverser.src/M000043.html +110 -0
- data/doc/classes/DNSTraverse/Traverser.src/M000044.html +63 -0
- data/doc/classes/DNSTraverse/Traverser.src/M000045.html +28 -0
- data/doc/classes/DNSTraverse/Traverser.src/M000046.html +18 -0
- data/doc/classes/FingerprintRules.html +175 -0
- data/doc/classes/Log.html +174 -0
- data/doc/classes/Log.src/M000002.html +18 -0
- data/doc/classes/Log.src/M000003.html +18 -0
- data/doc/classes/Log.src/M000004.html +18 -0
- data/doc/classes/Log/Formatter.html +165 -0
- data/doc/classes/Log/Formatter.src/M000005.html +22 -0
- data/doc/classes/Log/Formatter.src/M000006.html +24 -0
- data/doc/classes/TestFingerprint.html +137 -0
- data/doc/classes/TestFingerprint.src/M000001.html +22 -0
- data/doc/created.rid +1 -0
- data/doc/files/lib/dnstraverse/caching_resolver_rb.html +132 -0
- data/doc/files/lib/dnstraverse/decoded_query_cache_rb.html +132 -0
- data/doc/files/lib/dnstraverse/decoded_query_rb.html +132 -0
- data/doc/files/lib/dnstraverse/fingerprint_rb.html +134 -0
- data/doc/files/lib/dnstraverse/fingerprint_rules_rb.html +143 -0
- data/doc/files/lib/dnstraverse/info_cache_rb.html +131 -0
- data/doc/files/lib/dnstraverse/log_rb.html +131 -0
- data/doc/files/lib/dnstraverse/message_utility_rb.html +124 -0
- data/doc/files/lib/dnstraverse/referral_rb.html +134 -0
- data/doc/files/lib/dnstraverse/response_noglue_rb.html +124 -0
- data/doc/files/lib/dnstraverse/response_rb.html +132 -0
- data/doc/files/lib/dnstraverse/traverser_rb.html +137 -0
- data/doc/files/test/test_fingerprint_rb.html +133 -0
- data/doc/fr_class_index.html +43 -0
- data/doc/fr_file_index.html +39 -0
- data/doc/fr_method_index.html +115 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/dnstraverse/caching_resolver.rb +63 -0
- data/lib/dnstraverse/decoded_query.rb +199 -0
- data/lib/dnstraverse/decoded_query_cache.rb +53 -0
- data/lib/dnstraverse/fingerprint.rb +166 -0
- data/lib/dnstraverse/fingerprint_rules.rb +389 -0
- data/lib/dnstraverse/info_cache.rb +108 -0
- data/lib/dnstraverse/log.rb +55 -0
- data/lib/dnstraverse/message_utility.rb +199 -0
- data/lib/dnstraverse/referral.rb +463 -0
- data/lib/dnstraverse/response.rb +92 -0
- data/lib/dnstraverse/response_noglue.rb +54 -0
- data/lib/dnstraverse/traverser.rb +291 -0
- data/test/test_fingerprint.rb +29 -0
- metadata +231 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>msg_additional_ips? (DNSTraverse::MessageUtility)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/dnstraverse/message_utility.rb, line 94</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg_additional_ips?</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">args</span>)
|
15
|
+
<span class="ruby-identifier">qclass</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:qclass</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">'IN'</span>
|
16
|
+
<span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">"Looking for #{args[:qname]}/#{args[:qtype]} in additional"</span> }
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">add</span> = <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">additional</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
|
18
|
+
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:qname</span>].<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&&</span>
|
19
|
+
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-identifier">qclass</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&&</span>
|
20
|
+
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:qtype</span>].<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
21
|
+
} <span class="ruby-keyword kw">then</span>
|
22
|
+
<span class="ruby-identifier">ips</span> = <span class="ruby-identifier">add</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">address</span>.<span class="ruby-identifier">to_s</span> }
|
23
|
+
<span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">"Found in additional #{args[:qname]} = "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">ips</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">", "</span>) }
|
24
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ips</span>
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
<span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">"No additional records for #{args[:qname]}/#{args[:qtype]}"</span> }
|
27
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
28
|
+
<span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>msg_authority (DNSTraverse::MessageUtility)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/dnstraverse/message_utility.rb, line 129</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg_authority</span>(<span class="ruby-identifier">msg</span>)
|
15
|
+
<span class="ruby-identifier">ns</span> = []
|
16
|
+
<span class="ruby-identifier">soa</span> = []
|
17
|
+
<span class="ruby-identifier">other</span> = []
|
18
|
+
<span class="ruby-keyword kw">for</span> <span class="ruby-identifier">rr</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">authority</span> <span class="ruby-keyword kw">do</span>
|
19
|
+
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">rr</span>.<span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>
|
20
|
+
<span class="ruby-identifier">klass</span> = <span class="ruby-identifier">rr</span>.<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>
|
21
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-value str">'NS'</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-value str">'IN'</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
22
|
+
<span class="ruby-identifier">ns</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">rr</span>
|
23
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">type</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-value str">'SOA'</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-value str">'IN'</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
24
|
+
<span class="ruby-identifier">soa</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">rr</span>
|
25
|
+
<span class="ruby-keyword kw">else</span>
|
26
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">rr</span>
|
27
|
+
<span class="ruby-keyword kw">end</span>
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
29
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ns</span>, <span class="ruby-identifier">soa</span>, <span class="ruby-identifier">other</span>
|
30
|
+
<span class="ruby-keyword kw">end</span></pre>
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>msg_follow_cnames (DNSTraverse::MessageUtility)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/dnstraverse/message_utility.rb, line 147</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg_follow_cnames</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">args</span>)
|
15
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:qname</span>]
|
16
|
+
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:qtype</span>]
|
17
|
+
<span class="ruby-identifier">bw</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:bailiwick</span>].<span class="ruby-identifier">to_s</span>
|
18
|
+
<span class="ruby-identifier">bwend</span> = <span class="ruby-node">".#{args[:bailiwick]}"</span>
|
19
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">do</span>
|
20
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">name</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">msg_answers?</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">:qname</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">name</span>, <span class="ruby-identifier">:qtype</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">type</span>)
|
21
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">ans</span> = <span class="ruby-identifier">msg_answers?</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">:qname</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">name</span>, <span class="ruby-identifier">:qtype</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'CNAME'</span>) <span class="ruby-keyword kw">then</span>
|
22
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">name</span>
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
<span class="ruby-identifier">target</span> = <span class="ruby-identifier">ans</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">domainname</span>.<span class="ruby-identifier">to_s</span>
|
25
|
+
<span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">"CNAME encountered from #{name} to #{target}"</span>}
|
26
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bw</span> <span class="ruby-keyword kw">and</span> (<span class="ruby-identifier">target</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-identifier">bw</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">!~</span> <span class="ruby-node">/#{bwend}$/i</span>) <span class="ruby-keyword kw">then</span>
|
27
|
+
<span class="ruby-comment cmt"># target outside of bailiwick, don't follow any more CNAMEs.</span>
|
28
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">target</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">target</span>
|
31
|
+
<span class="ruby-keyword kw">end</span>
|
32
|
+
<span class="ruby-keyword kw">end</span></pre>
|
33
|
+
</body>
|
34
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>msg_nodata? (DNSTraverse::MessageUtility)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/dnstraverse/message_utility.rb, line 167</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg_nodata?</span>(<span class="ruby-identifier">msg</span>)
|
15
|
+
<span class="ruby-identifier">ns</span>, <span class="ruby-identifier">soa</span>, <span class="ruby-identifier">other</span> = <span class="ruby-identifier">msg_authority</span>(<span class="ruby-identifier">msg</span>)
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">soa</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">then</span>
|
17
|
+
<span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">"NODATA: soa=#{soa.size} ns=#{ns.size}"</span> }
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>msg_cacheable (DNSTraverse::MessageUtility)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/dnstraverse/message_utility.rb, line 176</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg_cacheable</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">bailiwick</span>, <span class="ruby-identifier">type</span> = <span class="ruby-identifier">:both</span>)
|
15
|
+
<span class="ruby-identifier">good</span>, <span class="ruby-identifier">bad</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>, <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">bw</span> = <span class="ruby-identifier">bailiwick</span>.<span class="ruby-identifier">to_s</span>
|
17
|
+
<span class="ruby-identifier">bwend</span> = <span class="ruby-value str">"."</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">bw</span>
|
18
|
+
<span class="ruby-keyword kw">for</span> <span class="ruby-identifier">section</span> <span class="ruby-keyword kw">in</span> [<span class="ruby-identifier">:additional</span>, <span class="ruby-identifier">:authority</span>] <span class="ruby-keyword kw">do</span>
|
19
|
+
<span class="ruby-keyword kw">for</span> <span class="ruby-identifier">rr</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">section</span>) <span class="ruby-keyword kw">do</span>
|
20
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">rr</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>
|
21
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bailiwick</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-identifier">bw</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span>
|
22
|
+
<span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-node">/#{bwend}$/i</span> <span class="ruby-keyword kw">then</span>
|
23
|
+
<span class="ruby-identifier">good</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">rr</span>
|
24
|
+
<span class="ruby-keyword kw">else</span>
|
25
|
+
<span class="ruby-identifier">bad</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">rr</span>
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
<span class="ruby-keyword kw">end</span>
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
29
|
+
<span class="ruby-identifier">good</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-value str">"Records within bailiwick: "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> } }
|
30
|
+
<span class="ruby-identifier">bad</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-value str">"Records outside bailiwick: "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> } }
|
31
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">good</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:good</span>
|
32
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">bad</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:bad</span>
|
33
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">good</span>, <span class="ruby-identifier">bad</span>
|
34
|
+
<span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -0,0 +1,641 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: DNSTraverse::Referral</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">DNSTraverse::Referral</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/dnstraverse/referral_rb.html">
|
59
|
+
lib/dnstraverse/referral.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000078">answer_calculate</a>
|
90
|
+
<a href="#M000084">check_loop?</a>
|
91
|
+
<a href="#M000072">cleanup</a>
|
92
|
+
<a href="#M000073">inside_bailiwick?</a>
|
93
|
+
<a href="#M000067">ips_as_array</a>
|
94
|
+
<a href="#M000081">is_rootroot?</a>
|
95
|
+
<a href="#M000087">make_referral</a>
|
96
|
+
<a href="#M000086">make_referrals</a>
|
97
|
+
<a href="#M000070">new</a>
|
98
|
+
<a href="#M000074">noglue?</a>
|
99
|
+
<a href="#M000082">process</a>
|
100
|
+
<a href="#M000083">process_add_roots</a>
|
101
|
+
<a href="#M000085">process_normal</a>
|
102
|
+
<a href="#M000079">processed?</a>
|
103
|
+
<a href="#M000069">referral_resolution?</a>
|
104
|
+
<a href="#M000088">replace_child</a>
|
105
|
+
<a href="#M000075">resolve</a>
|
106
|
+
<a href="#M000076">resolve_calculate</a>
|
107
|
+
<a href="#M000080">resolved?</a>
|
108
|
+
<a href="#M000071">showstats</a>
|
109
|
+
<a href="#M000077">stats_calculate_children</a>
|
110
|
+
<a href="#M000089">stats_display</a>
|
111
|
+
<a href="#M000068">to_s</a>
|
112
|
+
<a href="#M000066">txt_ips</a>
|
113
|
+
<a href="#M000065">txt_ips_verbose</a>
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
<!-- if includes -->
|
121
|
+
<div id="includes">
|
122
|
+
<h3 class="section-bar">Included Modules</h3>
|
123
|
+
|
124
|
+
<div id="includes-list">
|
125
|
+
<span class="include-name"><a href="MessageUtility.html">MessageUtility</a></span>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
<div id="section">
|
130
|
+
|
131
|
+
|
132
|
+
<div id="constants-list">
|
133
|
+
<h3 class="section-bar">Constants</h3>
|
134
|
+
|
135
|
+
<div class="name-list">
|
136
|
+
<table summary="Constants">
|
137
|
+
<tr class="top-aligned-row context-row">
|
138
|
+
<td class="context-item-name">EMPTY_ARRAY</td>
|
139
|
+
<td>=</td>
|
140
|
+
<td class="context-item-value">[].freeze</td>
|
141
|
+
</tr>
|
142
|
+
</table>
|
143
|
+
</div>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<div id="attribute-list">
|
149
|
+
<h3 class="section-bar">Attributes</h3>
|
150
|
+
|
151
|
+
<div class="name-list">
|
152
|
+
<table>
|
153
|
+
<tr class="top-aligned-row context-row">
|
154
|
+
<td class="context-item-name">bailiwick</td>
|
155
|
+
<td class="context-item-value"> [R] </td>
|
156
|
+
<td class="context-item-desc"></td>
|
157
|
+
</tr>
|
158
|
+
<tr class="top-aligned-row context-row">
|
159
|
+
<td class="context-item-name">children</td>
|
160
|
+
<td class="context-item-value"> [R] </td>
|
161
|
+
<td class="context-item-desc"></td>
|
162
|
+
</tr>
|
163
|
+
<tr class="top-aligned-row context-row">
|
164
|
+
<td class="context-item-name">decoded_query_cache</td>
|
165
|
+
<td class="context-item-value"> [R] </td>
|
166
|
+
<td class="context-item-desc"></td>
|
167
|
+
</tr>
|
168
|
+
<tr class="top-aligned-row context-row">
|
169
|
+
<td class="context-item-name">infocache</td>
|
170
|
+
<td class="context-item-value"> [R] </td>
|
171
|
+
<td class="context-item-desc"></td>
|
172
|
+
</tr>
|
173
|
+
<tr class="top-aligned-row context-row">
|
174
|
+
<td class="context-item-name">message</td>
|
175
|
+
<td class="context-item-value"> [R] </td>
|
176
|
+
<td class="context-item-desc"></td>
|
177
|
+
</tr>
|
178
|
+
<tr class="top-aligned-row context-row">
|
179
|
+
<td class="context-item-name">nsatype</td>
|
180
|
+
<td class="context-item-value"> [R] </td>
|
181
|
+
<td class="context-item-desc"></td>
|
182
|
+
</tr>
|
183
|
+
<tr class="top-aligned-row context-row">
|
184
|
+
<td class="context-item-name">parent</td>
|
185
|
+
<td class="context-item-value"> [R] </td>
|
186
|
+
<td class="context-item-desc"></td>
|
187
|
+
</tr>
|
188
|
+
<tr class="top-aligned-row context-row">
|
189
|
+
<td class="context-item-name">parent_ip</td>
|
190
|
+
<td class="context-item-value"> [R] </td>
|
191
|
+
<td class="context-item-desc"></td>
|
192
|
+
</tr>
|
193
|
+
<tr class="top-aligned-row context-row">
|
194
|
+
<td class="context-item-name">qclass</td>
|
195
|
+
<td class="context-item-value"> [R] </td>
|
196
|
+
<td class="context-item-desc"></td>
|
197
|
+
</tr>
|
198
|
+
<tr class="top-aligned-row context-row">
|
199
|
+
<td class="context-item-name">qname</td>
|
200
|
+
<td class="context-item-value"> [R] </td>
|
201
|
+
<td class="context-item-desc"></td>
|
202
|
+
</tr>
|
203
|
+
<tr class="top-aligned-row context-row">
|
204
|
+
<td class="context-item-name">qtype</td>
|
205
|
+
<td class="context-item-value"> [R] </td>
|
206
|
+
<td class="context-item-desc"></td>
|
207
|
+
</tr>
|
208
|
+
<tr class="top-aligned-row context-row">
|
209
|
+
<td class="context-item-name">refid</td>
|
210
|
+
<td class="context-item-value"> [R] </td>
|
211
|
+
<td class="context-item-desc"></td>
|
212
|
+
</tr>
|
213
|
+
<tr class="top-aligned-row context-row">
|
214
|
+
<td class="context-item-name">server</td>
|
215
|
+
<td class="context-item-value"> [R] </td>
|
216
|
+
<td class="context-item-desc"></td>
|
217
|
+
</tr>
|
218
|
+
<tr class="top-aligned-row context-row">
|
219
|
+
<td class="context-item-name">serverips</td>
|
220
|
+
<td class="context-item-value"> [R] </td>
|
221
|
+
<td class="context-item-desc"></td>
|
222
|
+
</tr>
|
223
|
+
<tr class="top-aligned-row context-row">
|
224
|
+
<td class="context-item-name">stats</td>
|
225
|
+
<td class="context-item-value"> [R] </td>
|
226
|
+
<td class="context-item-desc"></td>
|
227
|
+
</tr>
|
228
|
+
<tr class="top-aligned-row context-row">
|
229
|
+
<td class="context-item-name">warnings</td>
|
230
|
+
<td class="context-item-value"> [R] </td>
|
231
|
+
<td class="context-item-desc"></td>
|
232
|
+
</tr>
|
233
|
+
</table>
|
234
|
+
</div>
|
235
|
+
</div>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
<!-- if method_list -->
|
240
|
+
<div id="methods">
|
241
|
+
<h3 class="section-bar">Public Class methods</h3>
|
242
|
+
|
243
|
+
<div id="method-M000070" class="method-detail">
|
244
|
+
<a name="M000070"></a>
|
245
|
+
|
246
|
+
<div class="method-heading">
|
247
|
+
<a href="Referral.src/M000070.html" target="Code" class="method-signature"
|
248
|
+
onclick="popupCode('Referral.src/M000070.html');return false;">
|
249
|
+
<span class="method-name">new</span><span class="method-args">(args)</span>
|
250
|
+
</a>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<div class="method-description">
|
254
|
+
<p>
|
255
|
+
<a href="Referral.html">Referral</a> object represents a particular
|
256
|
+
referral to a specified server with given qname, qclass and qtype.
|
257
|
+
</p>
|
258
|
+
<p>
|
259
|
+
roots can be passed in, which will be used to populate root hints in to the
|
260
|
+
infocache, which if not passed in will be automatically created
|
261
|
+
</p>
|
262
|
+
<p>
|
263
|
+
server can be nil which is a special case and causes all the roots to be
|
264
|
+
added as child referrals (uses infocache to lookup roots)
|
265
|
+
</p>
|
266
|
+
<p>
|
267
|
+
if the server‘s IP address(es) are known, they are passed in as
|
268
|
+
serverips otherwise, we will <a href="Referral.html#M000075">resolve</a>
|
269
|
+
the serverips
|
270
|
+
</p>
|
271
|
+
<p>
|
272
|
+
referral_resolution should be set to false. children that are a result of a
|
273
|
+
resolution of a referral that didn‘t have glue records will have this
|
274
|
+
set to true so that you can distringuish this detail
|
275
|
+
</p>
|
276
|
+
</div>
|
277
|
+
</div>
|
278
|
+
|
279
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
280
|
+
|
281
|
+
<div id="method-M000078" class="method-detail">
|
282
|
+
<a name="M000078"></a>
|
283
|
+
|
284
|
+
<div class="method-heading">
|
285
|
+
<a href="Referral.src/M000078.html" target="Code" class="method-signature"
|
286
|
+
onclick="popupCode('Referral.src/M000078.html');return false;">
|
287
|
+
<span class="method-name">answer_calculate</span><span class="method-args">()</span>
|
288
|
+
</a>
|
289
|
+
</div>
|
290
|
+
|
291
|
+
<div class="method-description">
|
292
|
+
</div>
|
293
|
+
</div>
|
294
|
+
|
295
|
+
<div id="method-M000084" class="method-detail">
|
296
|
+
<a name="M000084"></a>
|
297
|
+
|
298
|
+
<div class="method-heading">
|
299
|
+
<a href="Referral.src/M000084.html" target="Code" class="method-signature"
|
300
|
+
onclick="popupCode('Referral.src/M000084.html');return false;">
|
301
|
+
<span class="method-name">check_loop?</span><span class="method-args">(args)</span>
|
302
|
+
</a>
|
303
|
+
</div>
|
304
|
+
|
305
|
+
<div class="method-description">
|
306
|
+
</div>
|
307
|
+
</div>
|
308
|
+
|
309
|
+
<div id="method-M000072" class="method-detail">
|
310
|
+
<a name="M000072"></a>
|
311
|
+
|
312
|
+
<div class="method-heading">
|
313
|
+
<a href="Referral.src/M000072.html" target="Code" class="method-signature"
|
314
|
+
onclick="popupCode('Referral.src/M000072.html');return false;">
|
315
|
+
<span class="method-name">cleanup</span><span class="method-args">(args = nil)</span>
|
316
|
+
</a>
|
317
|
+
</div>
|
318
|
+
|
319
|
+
<div class="method-description">
|
320
|
+
<p>
|
321
|
+
clean up the workings
|
322
|
+
</p>
|
323
|
+
</div>
|
324
|
+
</div>
|
325
|
+
|
326
|
+
<div id="method-M000073" class="method-detail">
|
327
|
+
<a name="M000073"></a>
|
328
|
+
|
329
|
+
<div class="method-heading">
|
330
|
+
<a href="Referral.src/M000073.html" target="Code" class="method-signature"
|
331
|
+
onclick="popupCode('Referral.src/M000073.html');return false;">
|
332
|
+
<span class="method-name">inside_bailiwick?</span><span class="method-args">(name)</span>
|
333
|
+
</a>
|
334
|
+
</div>
|
335
|
+
|
336
|
+
<div class="method-description">
|
337
|
+
</div>
|
338
|
+
</div>
|
339
|
+
|
340
|
+
<div id="method-M000067" class="method-detail">
|
341
|
+
<a name="M000067"></a>
|
342
|
+
|
343
|
+
<div class="method-heading">
|
344
|
+
<a href="Referral.src/M000067.html" target="Code" class="method-signature"
|
345
|
+
onclick="popupCode('Referral.src/M000067.html');return false;">
|
346
|
+
<span class="method-name">ips_as_array</span><span class="method-args">()</span>
|
347
|
+
</a>
|
348
|
+
</div>
|
349
|
+
|
350
|
+
<div class="method-description">
|
351
|
+
<p>
|
352
|
+
<a href="Referral.html#M000067">ips_as_array</a> will return any IP
|
353
|
+
addresses we know for this referral server
|
354
|
+
</p>
|
355
|
+
</div>
|
356
|
+
</div>
|
357
|
+
|
358
|
+
<div id="method-M000081" class="method-detail">
|
359
|
+
<a name="M000081"></a>
|
360
|
+
|
361
|
+
<div class="method-heading">
|
362
|
+
<a href="Referral.src/M000081.html" target="Code" class="method-signature"
|
363
|
+
onclick="popupCode('Referral.src/M000081.html');return false;">
|
364
|
+
<span class="method-name">is_rootroot?</span><span class="method-args">()</span>
|
365
|
+
</a>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
<div class="method-description">
|
369
|
+
</div>
|
370
|
+
</div>
|
371
|
+
|
372
|
+
<div id="method-M000087" class="method-detail">
|
373
|
+
<a name="M000087"></a>
|
374
|
+
|
375
|
+
<div class="method-heading">
|
376
|
+
<a href="Referral.src/M000087.html" target="Code" class="method-signature"
|
377
|
+
onclick="popupCode('Referral.src/M000087.html');return false;">
|
378
|
+
<span class="method-name">make_referral</span><span class="method-args">(args)</span>
|
379
|
+
</a>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
<div class="method-description">
|
383
|
+
</div>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
<div id="method-M000086" class="method-detail">
|
387
|
+
<a name="M000086"></a>
|
388
|
+
|
389
|
+
<div class="method-heading">
|
390
|
+
<a href="Referral.src/M000086.html" target="Code" class="method-signature"
|
391
|
+
onclick="popupCode('Referral.src/M000086.html');return false;">
|
392
|
+
<span class="method-name">make_referrals</span><span class="method-args">(args)</span>
|
393
|
+
</a>
|
394
|
+
</div>
|
395
|
+
|
396
|
+
<div class="method-description">
|
397
|
+
</div>
|
398
|
+
</div>
|
399
|
+
|
400
|
+
<div id="method-M000074" class="method-detail">
|
401
|
+
<a name="M000074"></a>
|
402
|
+
|
403
|
+
<div class="method-heading">
|
404
|
+
<a href="Referral.src/M000074.html" target="Code" class="method-signature"
|
405
|
+
onclick="popupCode('Referral.src/M000074.html');return false;">
|
406
|
+
<span class="method-name">noglue?</span><span class="method-args">()</span>
|
407
|
+
</a>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
<div class="method-description">
|
411
|
+
</div>
|
412
|
+
</div>
|
413
|
+
|
414
|
+
<div id="method-M000082" class="method-detail">
|
415
|
+
<a name="M000082"></a>
|
416
|
+
|
417
|
+
<div class="method-heading">
|
418
|
+
<a href="Referral.src/M000082.html" target="Code" class="method-signature"
|
419
|
+
onclick="popupCode('Referral.src/M000082.html');return false;">
|
420
|
+
<span class="method-name">process</span><span class="method-args">(args)</span>
|
421
|
+
</a>
|
422
|
+
</div>
|
423
|
+
|
424
|
+
<div class="method-description">
|
425
|
+
</div>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
<div id="method-M000083" class="method-detail">
|
429
|
+
<a name="M000083"></a>
|
430
|
+
|
431
|
+
<div class="method-heading">
|
432
|
+
<a href="Referral.src/M000083.html" target="Code" class="method-signature"
|
433
|
+
onclick="popupCode('Referral.src/M000083.html');return false;">
|
434
|
+
<span class="method-name">process_add_roots</span><span class="method-args">(args)</span>
|
435
|
+
</a>
|
436
|
+
</div>
|
437
|
+
|
438
|
+
<div class="method-description">
|
439
|
+
</div>
|
440
|
+
</div>
|
441
|
+
|
442
|
+
<div id="method-M000085" class="method-detail">
|
443
|
+
<a name="M000085"></a>
|
444
|
+
|
445
|
+
<div class="method-heading">
|
446
|
+
<a href="Referral.src/M000085.html" target="Code" class="method-signature"
|
447
|
+
onclick="popupCode('Referral.src/M000085.html');return false;">
|
448
|
+
<span class="method-name">process_normal</span><span class="method-args">(args)</span>
|
449
|
+
</a>
|
450
|
+
</div>
|
451
|
+
|
452
|
+
<div class="method-description">
|
453
|
+
</div>
|
454
|
+
</div>
|
455
|
+
|
456
|
+
<div id="method-M000079" class="method-detail">
|
457
|
+
<a name="M000079"></a>
|
458
|
+
|
459
|
+
<div class="method-heading">
|
460
|
+
<a href="Referral.src/M000079.html" target="Code" class="method-signature"
|
461
|
+
onclick="popupCode('Referral.src/M000079.html');return false;">
|
462
|
+
<span class="method-name">processed?</span><span class="method-args">()</span>
|
463
|
+
</a>
|
464
|
+
</div>
|
465
|
+
|
466
|
+
<div class="method-description">
|
467
|
+
</div>
|
468
|
+
</div>
|
469
|
+
|
470
|
+
<div id="method-M000069" class="method-detail">
|
471
|
+
<a name="M000069"></a>
|
472
|
+
|
473
|
+
<div class="method-heading">
|
474
|
+
<a href="Referral.src/M000069.html" target="Code" class="method-signature"
|
475
|
+
onclick="popupCode('Referral.src/M000069.html');return false;">
|
476
|
+
<span class="method-name">referral_resolution?</span><span class="method-args">()</span>
|
477
|
+
</a>
|
478
|
+
</div>
|
479
|
+
|
480
|
+
<div class="method-description">
|
481
|
+
</div>
|
482
|
+
</div>
|
483
|
+
|
484
|
+
<div id="method-M000088" class="method-detail">
|
485
|
+
<a name="M000088"></a>
|
486
|
+
|
487
|
+
<div class="method-heading">
|
488
|
+
<a href="Referral.src/M000088.html" target="Code" class="method-signature"
|
489
|
+
onclick="popupCode('Referral.src/M000088.html');return false;">
|
490
|
+
<span class="method-name">replace_child</span><span class="method-args">(before, after)</span>
|
491
|
+
</a>
|
492
|
+
</div>
|
493
|
+
|
494
|
+
<div class="method-description">
|
495
|
+
</div>
|
496
|
+
</div>
|
497
|
+
|
498
|
+
<div id="method-M000075" class="method-detail">
|
499
|
+
<a name="M000075"></a>
|
500
|
+
|
501
|
+
<div class="method-heading">
|
502
|
+
<a href="Referral.src/M000075.html" target="Code" class="method-signature"
|
503
|
+
onclick="popupCode('Referral.src/M000075.html');return false;">
|
504
|
+
<span class="method-name">resolve</span><span class="method-args">(*args)</span>
|
505
|
+
</a>
|
506
|
+
</div>
|
507
|
+
|
508
|
+
<div class="method-description">
|
509
|
+
<p>
|
510
|
+
<a href="Referral.html#M000075">resolve</a> server to serverips, return
|
511
|
+
list of <a href="Referral.html">Referral</a> objects to <a
|
512
|
+
href="Referral.html#M000082">process</a>
|
513
|
+
</p>
|
514
|
+
</div>
|
515
|
+
</div>
|
516
|
+
|
517
|
+
<div id="method-M000076" class="method-detail">
|
518
|
+
<a name="M000076"></a>
|
519
|
+
|
520
|
+
<div class="method-heading">
|
521
|
+
<a href="Referral.src/M000076.html" target="Code" class="method-signature"
|
522
|
+
onclick="popupCode('Referral.src/M000076.html');return false;">
|
523
|
+
<span class="method-name">resolve_calculate</span><span class="method-args">()</span>
|
524
|
+
</a>
|
525
|
+
</div>
|
526
|
+
|
527
|
+
<div class="method-description">
|
528
|
+
</div>
|
529
|
+
</div>
|
530
|
+
|
531
|
+
<div id="method-M000080" class="method-detail">
|
532
|
+
<a name="M000080"></a>
|
533
|
+
|
534
|
+
<div class="method-heading">
|
535
|
+
<a href="Referral.src/M000080.html" target="Code" class="method-signature"
|
536
|
+
onclick="popupCode('Referral.src/M000080.html');return false;">
|
537
|
+
<span class="method-name">resolved?</span><span class="method-args">()</span>
|
538
|
+
</a>
|
539
|
+
</div>
|
540
|
+
|
541
|
+
<div class="method-description">
|
542
|
+
</div>
|
543
|
+
</div>
|
544
|
+
|
545
|
+
<div id="method-M000071" class="method-detail">
|
546
|
+
<a name="M000071"></a>
|
547
|
+
|
548
|
+
<div class="method-heading">
|
549
|
+
<a href="Referral.src/M000071.html" target="Code" class="method-signature"
|
550
|
+
onclick="popupCode('Referral.src/M000071.html');return false;">
|
551
|
+
<span class="method-name">showstats</span><span class="method-args">()</span>
|
552
|
+
</a>
|
553
|
+
</div>
|
554
|
+
|
555
|
+
<div class="method-description">
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
|
559
|
+
<div id="method-M000077" class="method-detail">
|
560
|
+
<a name="M000077"></a>
|
561
|
+
|
562
|
+
<div class="method-heading">
|
563
|
+
<a href="Referral.src/M000077.html" target="Code" class="method-signature"
|
564
|
+
onclick="popupCode('Referral.src/M000077.html');return false;">
|
565
|
+
<span class="method-name">stats_calculate_children</span><span class="method-args">(stats, children, weight)</span>
|
566
|
+
</a>
|
567
|
+
</div>
|
568
|
+
|
569
|
+
<div class="method-description">
|
570
|
+
</div>
|
571
|
+
</div>
|
572
|
+
|
573
|
+
<div id="method-M000089" class="method-detail">
|
574
|
+
<a name="M000089"></a>
|
575
|
+
|
576
|
+
<div class="method-heading">
|
577
|
+
<a href="Referral.src/M000089.html" target="Code" class="method-signature"
|
578
|
+
onclick="popupCode('Referral.src/M000089.html');return false;">
|
579
|
+
<span class="method-name">stats_display</span><span class="method-args">(args)</span>
|
580
|
+
</a>
|
581
|
+
</div>
|
582
|
+
|
583
|
+
<div class="method-description">
|
584
|
+
</div>
|
585
|
+
</div>
|
586
|
+
|
587
|
+
<div id="method-M000068" class="method-detail">
|
588
|
+
<a name="M000068"></a>
|
589
|
+
|
590
|
+
<div class="method-heading">
|
591
|
+
<a href="Referral.src/M000068.html" target="Code" class="method-signature"
|
592
|
+
onclick="popupCode('Referral.src/M000068.html');return false;">
|
593
|
+
<span class="method-name">to_s</span><span class="method-args">()</span>
|
594
|
+
</a>
|
595
|
+
</div>
|
596
|
+
|
597
|
+
<div class="method-description">
|
598
|
+
</div>
|
599
|
+
</div>
|
600
|
+
|
601
|
+
<div id="method-M000066" class="method-detail">
|
602
|
+
<a name="M000066"></a>
|
603
|
+
|
604
|
+
<div class="method-heading">
|
605
|
+
<a href="Referral.src/M000066.html" target="Code" class="method-signature"
|
606
|
+
onclick="popupCode('Referral.src/M000066.html');return false;">
|
607
|
+
<span class="method-name">txt_ips</span><span class="method-args">()</span>
|
608
|
+
</a>
|
609
|
+
</div>
|
610
|
+
|
611
|
+
<div class="method-description">
|
612
|
+
</div>
|
613
|
+
</div>
|
614
|
+
|
615
|
+
<div id="method-M000065" class="method-detail">
|
616
|
+
<a name="M000065"></a>
|
617
|
+
|
618
|
+
<div class="method-heading">
|
619
|
+
<a href="Referral.src/M000065.html" target="Code" class="method-signature"
|
620
|
+
onclick="popupCode('Referral.src/M000065.html');return false;">
|
621
|
+
<span class="method-name">txt_ips_verbose</span><span class="method-args">()</span>
|
622
|
+
</a>
|
623
|
+
</div>
|
624
|
+
|
625
|
+
<div class="method-description">
|
626
|
+
</div>
|
627
|
+
</div>
|
628
|
+
|
629
|
+
|
630
|
+
</div>
|
631
|
+
|
632
|
+
|
633
|
+
</div>
|
634
|
+
|
635
|
+
|
636
|
+
<div id="validator-badges">
|
637
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
638
|
+
</div>
|
639
|
+
|
640
|
+
</body>
|
641
|
+
</html>
|