spf-discuss
[Top] [All Lists]

new macro letter %{c}

2004-03-23 14:34:00
Meng Weng Wong wrote:

now that we have consensus, can someone please send me a patch to the
latest draft spec, thanks.

The 'c' macro expands to the text representation of the clients IP address
as it is done by the inet_ntop() function. For an IPv4 address this is the
dotted quad form, e.g. "192.168.1.2". For an IPv6 address this is one of the
forms as decribed in RFC 2373. For mapped IPv4 addresses, the third form
should be used. The 'c' macro should be used for producing a human readable
string.

The 'i' macro expands to the text representation of the clients IP address
as follow: For an IPv4 address this is the dotted quad form, e.g.
"192.168.1.2". And an IPv6 address is represented as sequence of hexadecimal
nibbles separated by dots with the highest-order nibble first.
"%{ir}.%{v}" must expand to a domain name as for being used for reverse DNS
lookup (see also 3.4 of RFC 1035 and 2.5 of RFC 1866).

Roger