Tcl Library Source Code

View Ticket
Login
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.