Home | History | Annotate | Download | only in mDNSCore

Lines Matching defs:bytes

383 // RFC 1034/1035/2181 specify that a domain name (length bytes and data bytes) may be up to 255 bytes long,
384 // plus the terminating zero at the end makes 256 bytes total in the on-the-wire format.
386 typedef struct { mDNSu8 c[256]; } domainname; // Up to 256 bytes of length-prefixed domainlabels
390 // The longest legal textual form of a DNS name is 1009 bytes, including the C-string terminating NULL at the end.
394 // The longest legal domain name is 256 bytes, in the form of four labels as shown below:
395 // Length byte, 63 data bytes, length byte, 63 data bytes, length byte, 63 data bytes, length byte, 62 data bytes, zero byte.
406 // For IPv4: "123.123.123.123.in-addr.arpa." 30 bytes including terminating NUL
407 // For IPv6: "x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.ip6.arpa." 74 bytes including terminating NUL
478 // We can send and receive packets up to 9000 bytes (Ethernet Jumbo Frame size, if that ever becomes widely used)
479 // However, in the normal case we try to limit packets to 1500 bytes so that we don't get IP fragmentation on standard Ethernet
485 DNSMessageHeader h; // Note: Size 12 bytes
517 } EthernetHeader; // 14 bytes
530 } ARP_EthIP; // 28 bytes
544 } IPv4Header; // 20 bytes
554 } IPv6Header; // 40 bytes
562 } IPv6PseudoHeader; // 40 bytes
566 mDNSu8 bytes[20];
583 } TCPHeader; // 20 bytes; IP protocol type 0x06
589 mDNSu16 len; // Length including UDP header (i.e. minimum value is 8 bytes)
591 } UDPHeader; // 8 bytes; IP protocol type 0x11
600 // Typically 8 bytes of options are also present
601 } IPv6NDP; // 24 bytes or more; IP protocol type 0x3A
615 mDNSu8 bytes[20];
631 } IKEHeader; // 28 bytes
774 // Header 11 bytes (name 1, type 2, class 2, TTL 4, length 2)
775 // LLQ rdata 18 bytes (opt 2, len 2, vers 2, op 2, err 2, id 8, lease 4)
776 // Lease rdata 8 bytes (opt 2, len 2, lease 4)
800 // 256 bytes domainname 'nextname'
801 // + 256 * 34 = 8704 bytes of bitmap data
802 // = 8960 bytes total
804 // which gives us a fixed in-memory size of 32 bytes (256 bits)
810 // StandardAuthRDSize is 264 (256+8), which is large enough to hold a maximum-sized SRV record (6 + 256 bytes)
823 // 780 were various PTR, TXT and SRV records from 12-64 bytes
824 // Only 69 records had rdata bigger than 64 bytes
829 // On 64-bit, the pointers in a CacheRecord are bigger, and that creates 8 bytes more space for the name in a CacheGroup
882 // sizeofRDataHeader should be 4 bytes
996 unsigned long nread; // number of bytes read so far
1091 typedef struct // Size is 36 bytes when compiling for 32-bit; 48 when compiling for 64-bit
1097 mDNSu16 rdlength; // Size of the raw rdata, in bytes, in the on-the-wire format
1155 // Size to here is 20 bytes when compiling 32-bit; 40 bytes when compiling 64-bit
1195 ResourceRecord resrec; // 36 bytes when compiling for 32-bit; 48 when compiling for 64-bit
1276 // rdatastorage MUST be the last thing in the structure -- when using oversized AuthRecords, extra bytes
1326 // Size to here is 20 bytes when compiling 32-bit; 40 bytes when compiling 64-bit
1334 ResourceRecord resrec; // 36 bytes when compiling for 32-bit; 48 when compiling for 64-bit
1352 // Size to here is 76 bytes when compiling 32-bit; 104 bytes when compiling 64-bit
1353 RData_small smallrdatastorage; // Storage for small records is right here (4 bytes header + 68 bytes data = 72 bytes)
1364 mDNSu8 _extradata[MaximumRDSize-InlineCacheRDSize]; // Glue on the necessary number of extra bytes
1365 domainname namestorage; // Needs to go *after* the extra rdata bytes
1529 mDNSu32 LargeAnswers; // Number of answers with rdata > 1024 bytes
1734 char ifname[64]; // Windows uses a GUID string for the interface name, which doesn't fit in 16 bytes
2294 // because that object is defined to be 256 bytes long, but not all domainname objects are truly the full size.
2295 bytes that are valid.
2316 // (e.g. length of "com." is 5 (length byte, three data bytes, final zero)
2340 // When using ConvertDomainLabelToCString, the target buffer must be MAX_ESCAPED_DOMAIN_LABEL (254) bytes long
2343 // Similarly, when using ConvertDomainNameToCString, the target buffer must be MAX_ESCAPED_DOMAIN_NAME (1009) bytes long.
2452 // 16 bytes (128 bits) is recommended for an MD5 hash as per RFC 2485.
2620 // return the number of bytes read/written, 0 if the call would block, and -1 if an error. PlatformReadTCP
2921 // properly packed, without adding padding bytes to align fields on 32-bit or 64-bit boundaries.