FreeBSD Bugzilla – Attachment 159775 Details for
Bug 202248
[patch] mail/p5-Sendmail-Milter: add IPv6 support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to add IPv6 support in connect_callback
p5-Sendmail-Milter-0.18_2.diff (text/plain), 2.26 KB, created by
J.R. Oldroyd
on 2015-08-11 18:56:54 UTC
(
hide
)
Description:
patch to add IPv6 support in connect_callback
Filename:
MIME Type:
Creator:
J.R. Oldroyd
Created:
2015-08-11 18:56:54 UTC
Size:
2.26 KB
patch
obsolete
>diff -ruN p5-Sendmail-Milter-0.18_1/Makefile p5-Sendmail-Milter-0.18_2/Makefile >--- p5-Sendmail-Milter-0.18_1/Makefile 2015-06-10 13:16:19.000000000 -0400 >+++ p5-Sendmail-Milter-0.18_2/Makefile 2015-08-11 14:49:42.000000000 -0400 >@@ -3,7 +3,7 @@ > > PORTNAME= Sendmail-Milter > PORTVERSION= 0.18 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= mail perl5 > MASTER_SITES= CPAN > PKGNAMEPREFIX= p5- >diff -ruN p5-Sendmail-Milter-0.18_1/files/patch-Milter.pm p5-Sendmail-Milter-0.18_2/files/patch-Milter.pm >--- p5-Sendmail-Milter-0.18_1/files/patch-Milter.pm 1969-12-31 19:00:00.000000000 -0500 >+++ p5-Sendmail-Milter-0.18_2/files/patch-Milter.pm 2015-08-11 14:33:40.000000000 -0400 >@@ -0,0 +1,17 @@ >+--- Milter.pm.orig 2001-10-10 00:21:22.000000000 -0400 >++++ Milter.pm 2015-08-11 14:22:14.000000000 -0400 >+@@ -423,10 +423,10 @@ >+ =item B<connect_callback> CTX, HOSTNAME, SOCKADDR_IN >+ >+ Invoked on each connection. HOSTNAME is the host domain name, as determined by >+-a reverse lookup on the host address. SOCKADDR_IN is the AF_INET portion of the >+-host address, as determined by a B<getpeername(2)> syscall on the SMTP >+-socket. You can use B<Socket::unpack_sockaddr_in()> to unpack it into a port >+-and IP address. >++a reverse lookup on the host address. SOCKADDR_IN is the AF_INET or AF_INET6 >++portion of the host address, as determined by a B<getpeername(2)> syscall on >++the SMTP socket. You can use B<Socket::unpack_sockaddr_in()> or >++B<Socket6::unpack_sockaddr_in6()> to unpack it into a port and IP address. >+ >+ This callback should return one of the B<SMFIS_*> result codes. >+ >diff -ruN p5-Sendmail-Milter-0.18_1/files/patch-callbacks.c p5-Sendmail-Milter-0.18_2/files/patch-callbacks.c >--- p5-Sendmail-Milter-0.18_1/files/patch-callbacks.c 1969-12-31 19:00:00.000000000 -0500 >+++ p5-Sendmail-Milter-0.18_2/files/patch-callbacks.c 2015-08-11 14:33:59.000000000 -0400 >@@ -0,0 +1,14 @@ >+--- callbacks.c.orig 2000-07-19 02:20:36.000000000 -0400 >++++ callbacks.c 2015-08-11 14:31:40.000000000 -0400 >+@@ -490,6 +490,11 @@ >+ XPUSHs(sv_2mortal(newSVpvn((char *)arg_sa, >+ sizeof(_SOCK_ADDR)))); >+ } >++ else if (arg_sa->sa_family == AF_INET6) >++ { >++ XPUSHs(sv_2mortal(newSVpvn((char *)arg_sa, >++ sizeof(struct sockaddr_in6)))); >++ } >+ else >+ { >+ XPUSHs(sv_2mortal(newSVsv(&PL_sv_undef)));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202248
: 159775