Package dns :: Module edns
[hide private]
[frames] | no frames]

Module edns

source code

EDNS Options

Classes [hide private]
  Option
Base class for all EDNS option types.
  GenericOption
Generate Rdata Class
Functions [hide private]
 
get_option_class(otype) source code
dns.edns.Option instance
option_from_wire(otype, wire, current, olen)
Build an EDNS option object from wire format
source code
Variables [hide private]
  NSID = 3
  _type_to_class = {}
  __package__ = None
hash(x)
Function Details [hide private]

option_from_wire(otype, wire, current, olen)

source code 

Build an EDNS option object from wire format

Parameters:
  • otype (int) - The option type
  • wire (string) - The wire-format message
  • current (int) - The offset in wire of the beginning of the rdata.
  • olen (int) - The length of the wire-format option data
Returns: dns.edns.Option instance