MCPcopy Create free account
hub / github.com/secdev/scapy / DNSRRHINFO

Class DNSRRHINFO

scapy/layers/dns.py:816–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814
815
816class DNSRRHINFO(_DNSRRdummy):
817 name = "DNS HINFO Resource Record"
818 fields_desc = [DNSStrField("rrname", ""),
819 ShortEnumField("type", 13, dnstypes),
820 BitField("cacheflush", 0, 1), # mDNS RFC 6762
821 BitEnumField("rclass", 1, 15, dnsclasses),
822 IntField("ttl", 0),
823 ShortField("rdlen", None),
824 FieldLenField("cpulen", None, fmt="!B", length_of="cpu"),
825 StrLenField("cpu", "", length_from=lambda x: x.cpulen),
826 FieldLenField("oslen", None, fmt="!B", length_of="os"),
827 StrLenField("os", "", length_from=lambda x: x.oslen)]
828
829
830class DNSRRMX(_DNSRRdummy):

Callers

nothing calls this directly

Calls 8

ShortEnumFieldClass · 0.90
BitFieldClass · 0.90
BitEnumFieldClass · 0.90
IntFieldClass · 0.90
ShortFieldClass · 0.90
FieldLenFieldClass · 0.90
StrLenFieldClass · 0.90
DNSStrFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…