diff options
author | itojun <itojun@pkgsrc.org> | 2000-12-07 15:53:09 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2000-12-07 15:53:09 +0000 |
commit | 90bf09cb5aa963999e843331de63fdbb7ac2b0ca (patch) | |
tree | 598ca999eece5a52ffb5ef53329e63c56a75f4e8 /mail/sendmail/patches | |
parent | 0d3cab268fa1af2e2eebf7821232cd01d86a7322 (diff) | |
download | pkgsrc-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-af | 24 |
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)) + { |