From a394cf31344594e207bdb91ffcc3533169406add Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 9 Sep 2009 16:13:32 +0000 Subject: Add kernel update script + patches for 8.0-BETA3 --- kernel-8.0/freebsd-mcast-eaddrnotavail.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 kernel-8.0/freebsd-mcast-eaddrnotavail.patch (limited to 'kernel-8.0/freebsd-mcast-eaddrnotavail.patch') diff --git a/kernel-8.0/freebsd-mcast-eaddrnotavail.patch b/kernel-8.0/freebsd-mcast-eaddrnotavail.patch new file mode 100644 index 0000000..b933672 --- /dev/null +++ b/kernel-8.0/freebsd-mcast-eaddrnotavail.patch @@ -0,0 +1,22 @@ +--- sys/netinet/in_mcast.c.orig 2009-08-03 08:13:06.000000000 +0000 ++++ sys/netinet/in_mcast.c 2009-09-09 01:35:06.000000000 +0000 +@@ -1964,4 +1964,8 @@ + if (idx == -1) { + is_new = 1; ++ } else if (sopt->sopt_name == IP_ADD_MEMBERSHIP) { ++ /* Trying to join the same Any-source group again. */ ++ error = EADDRINUSE; ++ goto out_inp_locked; + } else { + inm = imo->imo_membership[idx]; +@@ -2139,6 +2143,9 @@ + } + +- if (!in_nullhost(gsa->sin.sin_addr)) ++ if (!in_nullhost(gsa->sin.sin_addr)) { + INADDR_TO_IFP(mreqs.imr_interface, ifp); ++ if (ifp == NULL) ++ return (EADDRNOTAVAIL); ++ } + + CTR3(KTR_IGMPV3, "%s: imr_interface = %s, ifp = %p", -- cgit v1.2.3