]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Clarify RFC952 and RFC1123 to justify domain name restriction dhcpcd imposes.
authorRoy Marples <roy@marples.name>
Fri, 16 Jun 2017 08:38:29 +0000 (09:38 +0100)
committerRoy Marples <roy@marples.name>
Fri, 16 Jun 2017 08:38:29 +0000 (09:38 +0100)
hooks/dhcpcd-run-hooks.in
src/dhcp-common.c

index 076ffb2b81dd49dbaafd51e09967a397fe9d6031..4490fa9b2e803b989a4c2f512f6dfef690b2b8b2 100644 (file)
@@ -198,8 +198,7 @@ syslog()
        fi
 }
 
-# Check for a valid domain name as per RFC1123 with the exception of
-# allowing - and _ as they seem to be widely used.
+# Check for a valid name as per RFC952 and RFC1123 section 2.1
 valid_domainname()
 {
        local name="$1" label
index c6dc2b9f31386a6680afa3e6c23a8ae03e9fa9b0..51f1b0126061a8bd8042b6eed7b8827480f060be 100644 (file)
@@ -415,8 +415,7 @@ decode_rfc1035(char *out, size_t len, const uint8_t *p, size_t pl)
        return (ssize_t)o_len;
 }
 
-/* Check for a valid domain name as per RFC1123 with the exception of
- * allowing - and _ (but not at start or end) as they seem to be widely used. */
+/* Check for a valid name as per RFC952 and RFC1123 section 2.1 */
 static int
 valid_domainname(char *lbl, int type)
 {