diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2022-12-08 21:33:41 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-12-09 10:39:27 -0800 |
| commit | ec96eb577bd518b89e2e7834bd569ba269df458f (patch) | |
| tree | 318874c6037b3fffedeac7a5fcdb7c9b3cf3f1f1 /meta-networking/recipes-protocols/mdns/files/0008-Mark-deleted-interfaces-as-being-changed.patch | |
| parent | 19f28fb34e2fa15b30274b97d10b8ecbdafaaf19 (diff) | |
| download | meta-openembedded-ec96eb577bd518b89e2e7834bd569ba269df458f.tar.gz | |
mdns: Upgrade 1310.140.1 -> 1790.40.31
Reinstate and rework patches from @garmin.com dropped in 21afab4609d0
("mdns: update to version 1096.40.7") as these were the functional
pieces of this series; we should either maintain it as a whole or drop
it in its entirety. With this update and without this series,
steady-state operation is a constant churn of all names being removed
and re-added every few seconds. These were refactored to handle the move
to getifaddrs() from get_ifi_info().
Check and cleanup all the other patches, much of which was redundant.
Move source releases to github which is where the Apple site now
redirects to (though these are still effectively just tarball dumps into
git).
Cleanup the recipe so it doesn't override all the packaging defaults.
Fixup musl installs so they don't fail attempting to patch a
non-existent /etc/nsswitch.conf.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols/mdns/files/0008-Mark-deleted-interfaces-as-being-changed.patch')
| -rw-r--r-- | meta-networking/recipes-protocols/mdns/files/0008-Mark-deleted-interfaces-as-being-changed.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/meta-networking/recipes-protocols/mdns/files/0008-Mark-deleted-interfaces-as-being-changed.patch b/meta-networking/recipes-protocols/mdns/files/0008-Mark-deleted-interfaces-as-being-changed.patch deleted file mode 100644 index fdc5105cb9..0000000000 --- a/meta-networking/recipes-protocols/mdns/files/0008-Mark-deleted-interfaces-as-being-changed.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | From 0fcc0f210f3a9310a1963de640b384ce866410fd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Nate Karstens <nate.karstens@garmin.com> | ||
| 3 | Date: Wed, 9 Aug 2017 09:16:58 -0500 | ||
| 4 | Subject: [PATCH 08/11] Mark deleted interfaces as being changed | ||
| 5 | |||
| 6 | Netlink notification handling ignores messages for deleted links, | ||
| 7 | RTM_DELLINK. It does handle RTM_GETLINK. According to libnl docu- | ||
| 8 | mentation (http://www.infradead.org/~tgr/libnl/doc/route.html) | ||
| 9 | RTM_DELLINK can be sent by the kernel, but RTM_GETLINK cannot. | ||
| 10 | There was likely a mixup in the original implementation, so this | ||
| 11 | change replaces handling for RTM_GETLINK with RTM_DELLINK. | ||
| 12 | |||
| 13 | Testing and Verification Instructions: | ||
| 14 | 1. Use ip-link to add and remove a VLAN interface and verify | ||
| 15 | that mDNSResponder handles the deleted link. | ||
| 16 | |||
| 17 | Upstream-Status: Submitted [dts@apple.com] | ||
| 18 | |||
| 19 | Signed-off-by: Nate Karstens <nate.karstens@garmin.com> | ||
| 20 | --- | ||
| 21 | mDNSPosix/mDNSPosix.c | 2 +- | ||
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c | ||
| 25 | index 798ab10..a8a57df 100644 | ||
| 26 | --- a/mDNSPosix/mDNSPosix.c | ||
| 27 | +++ b/mDNSPosix/mDNSPosix.c | ||
| 28 | @@ -1163,7 +1163,7 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change | ||
| 29 | #endif | ||
| 30 | |||
| 31 | // Process the NetLink message | ||
| 32 | - if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK) | ||
| 33 | + if (pNLMsg->nlmsg_type == RTM_DELLINK || pNLMsg->nlmsg_type == RTM_NEWLINK) | ||
| 34 | AddInterfaceIndexToList(changedInterfaces, ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index); | ||
| 35 | else if (pNLMsg->nlmsg_type == RTM_DELADDR || pNLMsg->nlmsg_type == RTM_NEWADDR) | ||
| 36 | AddInterfaceIndexToList(changedInterfaces, ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index); | ||
| 37 | -- | ||
| 38 | 2.17.1 | ||
| 39 | |||
