diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:13:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:41:52 +0200 |
commit | e1c959948c0e31d6997bcdfbabfbd077784b2bae (patch) | |
tree | 20110fde60bc894123285e77c329c22ec3a0d8b4 /src/resolve/resolved-dns-packet.h | |
parent | 76f468c8ea568fce98fa75d7f1d540256eb0940a (diff) |
resolved: properly handle MTU logic
Diffstat (limited to 'src/resolve/resolved-dns-packet.h')
-rw-r--r-- | src/resolve/resolved-dns-packet.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.h b/src/resolve/resolved-dns-packet.h index 99f60a1556..de3a789a78 100644 --- a/src/resolve/resolved-dns-packet.h +++ b/src/resolve/resolved-dns-packet.h @@ -44,8 +44,12 @@ struct DnsPacketHeader { /* The various DNS protocols deviate in how large a packet can grow, but the TCP transport has a 16bit size field, hence that appears to - be the maximum. */ + be the absolute maximum. */ #define DNS_PACKET_SIZE_MAX 0xFFFF + +/* RFC 1035 say 512 is the maximum, for classic unicast DNS */ +#define DNS_PACKET_UNICAST_SIZE_MAX 512 + #define DNS_PACKET_SIZE_START 512 struct DnsPacket { |