summaryrefslogtreecommitdiff
path: root/net-misc/dhcpcd/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-03-27 22:40:05 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-03-27 22:40:05 +0100
commit8c364c784966be1700ea39ae45028f3e9be9cae0 (patch)
treec1971211069b79e3831b71accd52a67a9fdc77a3 /net-misc/dhcpcd/files
parent6bd95d1f6320b8666a31ec949183aaa3088aa16f (diff)
gentoo resync : 27.03.2018
Diffstat (limited to 'net-misc/dhcpcd/files')
-rw-r--r--net-misc/dhcpcd/files/dhcpcd-6.11.1-arp-conflict.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/net-misc/dhcpcd/files/dhcpcd-6.11.1-arp-conflict.patch b/net-misc/dhcpcd/files/dhcpcd-6.11.1-arp-conflict.patch
deleted file mode 100644
index ae7da3fbd8a9..000000000000
--- a/net-misc/dhcpcd/files/dhcpcd-6.11.1-arp-conflict.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-Index: ipv4ll.c
-==================================================================
---- a/ipv4ll.c
-+++ b/ipv4ll.c
-@@ -242,31 +242,33 @@
- assert(astate != NULL);
- assert(astate->iface != NULL);
- ifp = astate->iface;
- state = IPV4LL_STATE(ifp);
- assert(state != NULL);
-- assert(state->addr != NULL);
-
- fail = 0;
- /* RFC 3927 2.2.1, Probe Conflict Detection */
- if (amsg == NULL ||
- (amsg->sip.s_addr == astate->addr.s_addr ||
- (amsg->sip.s_addr == 0 && amsg->tip.s_addr == astate->addr.s_addr)))
- fail = astate->addr.s_addr;
-
- /* RFC 3927 2.5, Conflict Defense */
-- if (IN_LINKLOCAL(ntohl(state->addr->addr.s_addr)) &&
-+ if (state->addr != NULL &&
-+ IN_LINKLOCAL(ntohl(state->addr->addr.s_addr)) &&
- amsg && amsg->sip.s_addr == state->addr->addr.s_addr)
- fail = state->addr->addr.s_addr;
-
- if (fail == 0)
- return;
-
- astate->failed.s_addr = fail;
- arp_report_conflicted(astate, amsg);
-
-- if (astate->failed.s_addr == state->addr->addr.s_addr) {
-+ if (state->addr != NULL &&
-+ astate->failed.s_addr == state->addr->addr.s_addr)
-+ {
- struct timespec now, defend;
-
- /* RFC 3927 Section 2.5 says a defence should
- * broadcast an ARP announcement.
- * Because the kernel will also unicast a reply to the
-@@ -378,16 +380,18 @@
- astate->conflicted_cb = ipv4ll_conflicted;
- astate->free_cb = ipv4ll_arpfree;
-
- /* Find an existing IPv4LL address and ensure we can work with it. */
- ia = ipv4_iffindlladdr(ifp);
-+
- #ifdef IN_IFF_TENTATIVE
- if (ia != NULL && ia->addr_flags & IN_IFF_DUPLICATED) {
- ipv4_deladdr(ia, 0);
- ia = NULL;
- }
- #endif
-+
- if (ia != NULL) {
- astate->addr = ia->addr;
- #ifdef IN_IFF_TENTATIVE
- if (ia->addr_flags & (IN_IFF_TENTATIVE | IN_IFF_DETACHED)) {
- logger(ifp->ctx, LOG_INFO,
-