2 $Id: Opcode.py,v 1.6.2.1 2011/03/16 20:06:39 customdesigned Exp $
4 This file is part of the pydns project.
5 Homepage: http://pydns.sourceforge.net
7 This code is covered by the standard Python License. See LICENSE for details.
9 Opcode values in message header. RFC 1035, 1996, 2136.
20 # Construct reverse mapping dictionary
25 if _name[0] != '_': opcodemap[eval(_name)] = _name
27 def opcodestr(opcode):
28 if opcodemap.has_key(opcode): return opcodemap[opcode]
33 # Revision 1.6.2.1 2011/03/16 20:06:39 customdesigned
34 # Refer to explicit LICENSE file.
36 # Revision 1.6 2002/04/23 10:51:43 anthonybaxter
37 # Added UPDATE, NOTIFY.
39 # Revision 1.5 2002/03/19 12:41:33 anthonybaxter
40 # tabnannied and reindented everything. 4 space indent, no tabs.
43 # Revision 1.4 2002/03/19 12:26:13 anthonybaxter
44 # death to leading tabs.
46 # Revision 1.3 2001/08/09 09:08:55 anthonybaxter
47 # added identifying header to top of each file
49 # Revision 1.2 2001/07/19 06:57:07 anthony