1 |
commit: f4453af5553a4e9dcc3793640dcdf8d3cf8d203b |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jan 31 17:07:47 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 4 22:49:37 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4453af5 |
7 |
|
8 |
sys-freebsd/freebsd-sources: remove unused patch. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/7011 |
11 |
|
12 |
.../files/freebsd-sources-9.0-ipv6refcount.patch | 128 --------------------- |
13 |
1 file changed, 128 deletions(-) |
14 |
|
15 |
diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-9.0-ipv6refcount.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-9.0-ipv6refcount.patch |
16 |
deleted file mode 100644 |
17 |
index f0984f6776c..00000000000 |
18 |
--- a/sys-freebsd/freebsd-sources/files/freebsd-sources-9.0-ipv6refcount.patch |
19 |
+++ /dev/null |
20 |
@@ -1,128 +0,0 @@ |
21 |
-Index: sys/netinet6/in6.c |
22 |
-=================================================================== |
23 |
---- sys/netinet6/in6.c.orig |
24 |
-+++ sys/netinet6/in6.c |
25 |
-@@ -1369,6 +1369,8 @@ in6_purgeaddr(struct ifaddr *ifa) |
26 |
- } |
27 |
- |
28 |
- cleanup: |
29 |
-+ if (ifa0 != NULL) |
30 |
-+ ifa_free(ifa0); |
31 |
- |
32 |
- plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr, NULL); /* XXX */ |
33 |
- if ((ia->ia_flags & IFA_ROUTE) && plen == 128) { |
34 |
-@@ -1393,8 +1395,6 @@ cleanup: |
35 |
- return; |
36 |
- ia->ia_flags &= ~IFA_ROUTE; |
37 |
- } |
38 |
-- if (ifa0 != NULL) |
39 |
-- ifa_free(ifa0); |
40 |
- |
41 |
- in6_unlink_ifa(ia, ifp); |
42 |
- } |
43 |
-@@ -1667,14 +1667,19 @@ in6_lifaddr_ioctl(struct socket *so, u_long cmd, c |
44 |
- hostid = IFA_IN6(ifa); |
45 |
- |
46 |
- /* prefixlen must be <= 64. */ |
47 |
-- if (64 < iflr->prefixlen) |
48 |
-+ if (64 < iflr->prefixlen) { |
49 |
-+ if (ifa != NULL) |
50 |
-+ ifa_free(ifa); |
51 |
- return EINVAL; |
52 |
-+ } |
53 |
- prefixlen = iflr->prefixlen; |
54 |
- |
55 |
- /* hostid part must be zero. */ |
56 |
- sin6 = (struct sockaddr_in6 *)&iflr->addr; |
57 |
- if (sin6->sin6_addr.s6_addr32[2] != 0 || |
58 |
- sin6->sin6_addr.s6_addr32[3] != 0) { |
59 |
-+ if (ifa != NULL) |
60 |
-+ ifa_free(ifa); |
61 |
- return EINVAL; |
62 |
- } |
63 |
- } else |
64 |
-@@ -2265,14 +2265,20 @@ in6_ifawithifp(struct ifnet *ifp, struct in6_addr |
65 |
- IN6_IFADDR_RUNLOCK(); |
66 |
- return (struct in6_ifaddr *)ifa; |
67 |
- } |
68 |
-- IN6_IFADDR_RUNLOCK(); |
69 |
- |
70 |
- /* use the last-resort values, that are, deprecated addresses */ |
71 |
-- if (dep[0]) |
72 |
-+ if (dep[0]) { |
73 |
-+ ifa_ref((struct ifaddr *)dep[0]); |
74 |
-+ IN6_IFADDR_RUNLOCK(); |
75 |
- return dep[0]; |
76 |
-- if (dep[1]) |
77 |
-+ } |
78 |
-+ if (dep[1]) { |
79 |
-+ ifa_ref((struct ifaddr *)dep[1]); |
80 |
-+ IN6_IFADDR_RUNLOCK(); |
81 |
- return dep[1]; |
82 |
-+ } |
83 |
- |
84 |
-+ IN6_IFADDR_RUNLOCK(); |
85 |
- return NULL; |
86 |
- } |
87 |
- |
88 |
-Index: sys/netinet6/ip6_input.c |
89 |
-=================================================================== |
90 |
---- sys/netinet6/ip6_input.c.orig |
91 |
-+++ sys/netinet6/ip6_input.c |
92 |
-@@ -879,19 +879,23 @@ passin: |
93 |
- * as our interface address (e.g. multicast addresses, addresses |
94 |
- * within FAITH prefixes and such). |
95 |
- */ |
96 |
-- if (deliverifp && !ip6_getdstifaddr(m)) { |
97 |
-+ if (deliverifp) { |
98 |
- struct in6_ifaddr *ia6; |
99 |
- |
100 |
-- ia6 = in6_ifawithifp(deliverifp, &ip6->ip6_dst); |
101 |
-- if (ia6) { |
102 |
-- if (!ip6_setdstifaddr(m, ia6)) { |
103 |
-- /* |
104 |
-- * XXX maybe we should drop the packet here, |
105 |
-- * as we could not provide enough information |
106 |
-- * to the upper layers. |
107 |
-- */ |
108 |
-+ if ((ia6 = ip6_getdstifaddr(m)) != NULL) { |
109 |
-+ ifa_free(&ia6->ia_ifa); |
110 |
-+ } else { |
111 |
-+ ia6 = in6_ifawithifp(deliverifp, &ip6->ip6_dst); |
112 |
-+ if (ia6) { |
113 |
-+ if (!ip6_setdstifaddr(m, ia6)) { |
114 |
-+ /* |
115 |
-+ * XXX maybe we should drop the packet here, |
116 |
-+ * as we could not provide enough information |
117 |
-+ * to the upper layers. |
118 |
-+ */ |
119 |
-+ } |
120 |
-+ ifa_free(&ia6->ia_ifa); |
121 |
- } |
122 |
-- ifa_free(&ia6->ia_ifa); |
123 |
- } |
124 |
- } |
125 |
- |
126 |
-Index: sys/netinet/tcp_input.c |
127 |
-=================================================================== |
128 |
---- sys/netinet/tcp_input.c.orig |
129 |
-+++ sys/netinet/tcp_input.c |
130 |
-@@ -512,6 +512,8 @@ tcp6_input(struct mbuf **mp, int *offp, int proto) |
131 |
- (caddr_t)&ip6->ip6_dst - (caddr_t)ip6); |
132 |
- return IPPROTO_DONE; |
133 |
- } |
134 |
-+ if (ia6) |
135 |
-+ ifa_free(&ia6->ia_ifa); |
136 |
- |
137 |
- tcp_input(m, *offp); |
138 |
- return IPPROTO_DONE; |
139 |
-@@ -1240,7 +1242,8 @@ relocked: |
140 |
- rstreason = BANDLIM_RST_OPENPORT; |
141 |
- goto dropwithreset; |
142 |
- } |
143 |
-- ifa_free(&ia6->ia_ifa); |
144 |
-+ if (ia6) |
145 |
-+ ifa_free(&ia6->ia_ifa); |
146 |
- } |
147 |
- #endif /* INET6 */ |
148 |
- /* |