MCPcopy Create free account
hub / github.com/avicoder/spoodle / pack

Method pack

dnslib/dns.py:294–323  ·  view source on GitHub ↗

Pack record into binary packet (recursively packs each section into buffer) >>> q = DNSRecord.question("abc.com") >>> q.header.id = 1234 >>> a = q.replyZone("abc.com A 1.2.3.4") >>> a.header.aa = 0 >>> pkt = a.pack

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sendMethod · 0.95

Calls 3

set_header_qaMethod · 0.95
DNSBufferClass · 0.90
packMethod · 0.45

Tested by

no test coverage detected