dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.edns Namespace Reference

Classes

class  ECSOption
 
class  GenericOption
 
class  Option
 

Functions

def get_option_class (otype)
 
def option_from_wire (otype, wire, current, olen)
 

Variables

int NSID = 3
 
int DAU = 5
 
int DHU = 6
 
int N3U = 7
 
int ECS = 8
 
int EXPIRE = 9
 
int COOKIE = 10
 
int KEEPALIVE = 11
 
int PADDING = 12
 
int CHAIN = 13
 
dictionary _type_to_class
 

Function Documentation

◆ get_option_class()

def dns.edns.get_option_class (   otype)
Return the class for the specified option type.

The GenericOption class is used if a more specific class is not
known.

Definition at line 240 of file edns.py.

Referenced by dns.edns.option_from_wire().

◆ option_from_wire()

def dns.edns.option_from_wire (   otype,
  wire,
  current,
  olen 
)
Build an EDNS option object from wire format.

*otype*, an ``int``, is the option type.

*wire*, a ``binary``, is the wire-format message.

*current*, an ``int``, is the offset in *wire* of the beginning
of the rdata.

*olen*, an ``int``, is the length of the wire-format option data

Returns an instance of a subclass of ``dns.edns.Option``.

Definition at line 253 of file edns.py.

References dns.edns.get_option_class().

Referenced by dns.message._WireReader._get_section().

Variable Documentation

◆ _type_to_class

dictionary dns.edns._type_to_class
private
Initial value:
1 = {
2  ECS: ECSOption
3 }

Definition at line 236 of file edns.py.

◆ CHAIN

int dns.edns.CHAIN = 13

Definition at line 46 of file edns.py.

◆ COOKIE

int dns.edns.COOKIE = 10

Definition at line 40 of file edns.py.

◆ DAU

int dns.edns.DAU = 5

Definition at line 30 of file edns.py.

◆ DHU

int dns.edns.DHU = 6

Definition at line 32 of file edns.py.

◆ ECS

int dns.edns.ECS = 8

Definition at line 36 of file edns.py.

◆ EXPIRE

int dns.edns.EXPIRE = 9

Definition at line 38 of file edns.py.

◆ KEEPALIVE

int dns.edns.KEEPALIVE = 11

Definition at line 42 of file edns.py.

◆ N3U

int dns.edns.N3U = 7

Definition at line 34 of file edns.py.

◆ NSID

int dns.edns.NSID = 3

Definition at line 28 of file edns.py.

◆ PADDING

int dns.edns.PADDING = 12

Definition at line 44 of file edns.py.