Tcl Library Source Code

View Ticket
Login
2026-11-16
00:06 • Ticket [2526633fff] SPF package fails with hosts with IPv6 specifications status still Open with 3 other changes artifact: 63a620035e user: serhiy.storchaka
2026-11-15
23:36
Fix [2526633fff]: SPF checks raised an error when an IPv4 address was compared with an IPv6 one. Such addresses now simply do not match. leaf check-in: 0389fb7aa9 user: serhiy.storchaka tags: spf-ipv4-ipv6-mismatch
2009-01-21
18:17 • New ticket [2526633fff] SPF package fails with hosts with IPv6 specifications. artifact: 60a7ac89c0 user: rkeene

Ticket UUID: 2526633
Title: SPF package fails with hosts with IPv6 specifications
Type: Bug Version: None
Submitter: rkeene Created on: 2009-01-21 18:17:56
Subsystem: spf Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Open Last Modified: 2026-11-16 00:06:15
Resolution: None Closed By:
    Closed on:
Description:
The SPF package (v1.1.1) fails to handle SPF records with IPv6 ("ip6") entries:

% package require spf
1.1.1
% ::spf::spf 1.2.3.4 kvanals.org [email protected]
error in "ip6": type mismatch: cannot compare different address types
% ::spf::spf fe80::1 kvanals.org [email protected]
error in "ip4": type mismatch: cannot compare different address types
% ::spf::SPF kvanals.org
v=spf1 ip4:207.201.218.70 ip4:207.201.218.71 ip4:66.102.165.0/24 ip6:2001:480:fa0d::/48 ip6:2001:480:f001::55 -all
User Comments: serhiy.storchaka added on 2026-11-16 00:06:15:

Proposed fix in branch spf-ipv4-ipv6-mismatch: addresses of the other family no longer match, instead of raising an error. Tests spf-4.6 to 4.9.