chiark / gitweb /
zone.lisp: Don't try to take the `car' of something we know isn't a list.
[zone] / addr-family-ipv6.lisp
index e9dd1aa5e0d263095bd8eb79201d9b1b5d8c686c..ae886c2b8322f7a5eed6fb7fa8ac9d03c063aebd 100644 (file)
@@ -168,7 +168,7 @@ (defmethod ipaddr-string ((ip ip6addr))
                     (incf i)
                     (when (>= i end) (return))
                     (write-char #\: out))))))
-       (cond ((null best-start)
+       (cond ((< best-length 2)
               (chunk 0 8))
              ((and (= best-start 0)
                    (or (and (= best-length 5)
@@ -206,6 +206,7 @@ (defmethod ipnet-broadcast ((ipn ip6net)) nil)
 
 (defmethod reverse-domain-component-width ((ipaddr ip6addr)) 4)
 (defmethod reverse-domain-radix ((ipaddr ip6addr)) 16)
-(defmethod reverse-domain-suffix ((ipaddr ip6addr)) "ip6.arpa")
+(defmethod reverse-domain-suffix ((ipaddr ip6addr))
+  (make-domain-name :labels (list "arpa" "ip6") :absolutep t))
 
 ;;;----- That's all, folks --------------------------------------------------