/* dnsmasq is Copyright (c) 2000-2026 Simon Kelley This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991, or (at your option) version 3 dated 29 June, 2007. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #define NAMESERVER_PORT 53 #define TFTP_PORT 69 #define MIN_PORT 1024 /* first non-reserved port */ #define MAX_PORT 65535u #define IN6ADDRSZ 16 #define INADDRSZ 4 /* Dnsmasq handles domains names internally as NULL-terminated C strings. The '.' characters in these strings are significant as label-seperators. '.' and /0 characters _within_ labels are escaped and take up two characters to allow labels to contain arbitrary characters. The maximum length of a domain name in wire format is 255 bytes. and the maximum length of this when coverted to a