Lines Matching defs:DNS
255 type DNS struct { struct
256 BaseLayer
259 ID uint16
260 QR bool
261 OpCode DNSOpCode
263 AA bool // Authoritative answer
264 TC bool // Truncated
265 RD bool // Recursion desired
266 RA bool // Recursion available
267 Z uint8 // Reserved for future use
269 ResponseCode DNSResponseCode
270 QDCount uint16 // Number of questions to expect
271 ANCount uint16 // Number of answers to expect
272 NSCount uint16 // Number of authorities to expect
273 ARCount uint16 // Number of additional records to expect
276 Questions []DNSQuestion
277 Answers []DNSResourceRecord
278 Authorities []DNSResourceRecord
279 Additionals []DNSResourceRecord
284 buffer []byte
288 func (d *DNS) LayerType() gopacket.LayerType { return LayerTypeDNS }
304 func (d *DNS) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error {
395 func (d *DNS) CanDecode() gopacket.LayerClass {
400 func (d *DNS) NextLayerType() gopacket.LayerType {
405 func (d *DNS) Payload() []byte {
471 func (d *DNS) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error {