summaryrefslogtreecommitdiffstats
path: root/Demo/dns/dnsopcode.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/dns/dnsopcode.py')
-rwxr-xr-xDemo/dns/dnsopcode.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Demo/dns/dnsopcode.py b/Demo/dns/dnsopcode.py
deleted file mode 100755
index f2e7cd5..0000000
--- a/Demo/dns/dnsopcode.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# Opcode values in message header (section 4.1.1)
-
-QUERY = 0
-IQUERY = 1
-STATUS = 2
-
-# Construct reverse mapping dictionary
-
-_names = dir()
-opcodemap = {}
-for _name in _names:
- if _name[0] != '_': opcodemap[eval(_name)] = _name
-
-def opcodestr(opcode):
- if opcodemap.has_key(opcode): return opcodemap[opcode]
- else: return `opcode`