Spfval validates SPF records. It does not check them via the network, this was intentionally omitted in favour of focusing purely on syntactically validating SPF records. Simply pass the validator a string and it will see if it validates as an SPFv1 or SPF-Classic record. If an error is found, it tries its best to report the error in question and the specific location in the record where the error occured. WWW: http://spfval.codeshare.ca/ PR: ports/83899 Submitted by: Emanuel Haupt <ehaupt@critical.ch>
10 lines
415 B
C
10 lines
415 B
C
--- src/spfval/spfval.c.orig Mon Jul 25 07:46:21 2005
|
|
+++ src/spfval/spfval.c Mon Jul 25 07:46:30 2005
|
|
@@ -44,6 +44,7 @@
|
|
#include <stdio.h> /* printf */
|
|
#include <stdlib.h> /* malloc / free */
|
|
#include <string.h> /* printf */
|
|
+#include <sys/types.h>
|
|
#include <sys/socket.h> /* inet_ntoa */
|
|
#include <netinet/in.h> /* inet_ntoa / ntohl */
|
|
#include <arpa/inet.h> /* inet_ntoa */
|