summaryrefslogtreecommitdiff
path: root/mail/sendmail/patches
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2000-12-07 15:53:09 +0000
committeritojun <itojun@pkgsrc.org>2000-12-07 15:53:09 +0000
commit90bf09cb5aa963999e843331de63fdbb7ac2b0ca (patch)
tree598ca999eece5a52ffb5ef53329e63c56a75f4e8 /mail/sendmail/patches
parent0d3cab268fa1af2e2eebf7821232cd01d86a7322 (diff)
downloadpkgsrc-90bf09cb5aa963999e843331de63fdbb7ac2b0ca.tar.gz
include patch for SIOCGIFCONF handling (sent to sendmail.org).
the patch is the same as the one applied to src/gnu/dist/sendmail.
Diffstat (limited to 'mail/sendmail/patches')
-rw-r--r--mail/sendmail/patches/patch-af24
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/sendmail/patches/patch-af b/mail/sendmail/patches/patch-af
new file mode 100644
index 00000000000..228ef93917b
--- /dev/null
+++ b/mail/sendmail/patches/patch-af
@@ -0,0 +1,24 @@
+$NetBSD: patch-af,v 1.5 2000/12/07 15:53:10 itojun Exp $
+
+--- sendmail/conf.c.orig Sun Sep 24 01:54:01 2000
++++ sendmail/conf.c Thu Dec 7 17:12:14 2000
+@@ -4911,3 +4911,3 @@
+ ia6 = sa->sin6.sin6_addr;
+- if (ia6.s6_addr == in6addr_any.s6_addr)
++ if (IN6_IS_ADDR_UNSPECIFIED(&ia6))
+ {
+@@ -5094,3 +5094,13 @@
+ ia6 = sa->sin6.sin6_addr;
+- if (ia6.s6_addr == in6addr_any.s6_addr)
++# ifdef __KAME__
++ /* convert into proper scoped address - */
++ if ((IN6_IS_ADDR_LINKLOCAL(&ia6) ||
++ IN6_IS_ADDR_SITELOCAL(&ia6)) &&
++ sa->sin6.sin6_scope_id == 0) {
++ sa->sin6.sin6_scope_id = ntohs(ia6.s6_addr[3] |
++ ((unsigned int)ia6.s6_addr[2] << 8));
++ ia6.s6_addr[2] = ia6.s6_addr[3] = 0;
++ }
++# endif
++ if (IN6_IS_ADDR_UNSPECIFIED(&ia6))
+ {