diff options
| author | Doug Barton <dougb@FreeBSD.org> | 2012-09-20 03:38:28 +0000 |
|---|---|---|
| committer | Doug Barton <dougb@FreeBSD.org> | 2012-09-20 03:38:28 +0000 |
| commit | c8aac173de01c185458640b7dd5e559d5727d465 (patch) | |
| tree | e0b5d63bc2bdd94facfed037bb4fca7399a722f8 /lib/dns/include | |
| parent | c55bb3d31a5c057d53c2af6f908485d9720b0e85 (diff) | |
Notes
Diffstat (limited to 'lib/dns/include')
| -rw-r--r-- | lib/dns/include/dns/rdata.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/dns/include/dns/rdata.h b/lib/dns/include/dns/rdata.h index e3183c0553f1c..c3e7db61bdbf6 100644 --- a/lib/dns/include/dns/rdata.h +++ b/lib/dns/include/dns/rdata.h @@ -147,6 +147,17 @@ struct dns_rdata { (((rdata)->flags & ~(DNS_RDATA_UPDATE|DNS_RDATA_OFFLINE)) == 0) /* + * The maximum length of a RDATA that can be sent on the wire. + * Max packet size (65535) less header (12), less name (1), type (2), + * class (2), ttl(4), length (2). + * + * None of the defined types that support name compression can exceed + * this and all new types are to be sent uncompressed. + */ + +#define DNS_RDATA_MAXLENGTH 65512U + +/* * Flags affecting rdata formatting style. Flags 0xFFFF0000 * are used by masterfile-level formatting and defined elsewhere. * See additional comments at dns_rdata_tofmttext(). |
