MCPcopy Create free account
hub / github.com/rthalley/dnspython / _make_opt

Method _make_opt

dns/message.py:788–790  ·  view source on GitHub ↗
(flags=0, payload=DEFAULT_EDNS_PAYLOAD, options=None)

Source from the content-addressed store, hash-verified

786
787 @staticmethod
788 def _make_opt(flags=0, payload=DEFAULT_EDNS_PAYLOAD, options=None):
789 opt = dns.rdtypes.ANY.OPT.OPT(payload, dns.rdatatype.OPT, options or ())
790 return dns.rrset.from_rdata(dns.name.root, int(flags), opt)
791
792 def use_edns(
793 self,

Callers 4

use_ednsMethod · 0.95
ednsflagsMethod · 0.95
add_optMethod · 0.80
add_ednsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected