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/0006-Remove-unneeded-function.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/0006-Remove-unneeded-function.patch')
-rw-r--r-- | meta-networking/recipes-protocols/mdns/files/0006-Remove-unneeded-function.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/meta-networking/recipes-protocols/mdns/files/0006-Remove-unneeded-function.patch b/meta-networking/recipes-protocols/mdns/files/0006-Remove-unneeded-function.patch deleted file mode 100644 index b461a60df7..0000000000 --- a/meta-networking/recipes-protocols/mdns/files/0006-Remove-unneeded-function.patch +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | From 157d67f152777754c059ced7511352102f23ffae Mon Sep 17 00:00:00 2001 | ||
2 | From: Nate Karstens <nate.karstens@garmin.com> | ||
3 | Date: Mon, 24 Jul 2017 09:39:18 -0500 | ||
4 | Subject: [PATCH 06/11] Remove unneeded function | ||
5 | |||
6 | Removes a function we no longer need by integrating it into the only | ||
7 | function that calls it. This was originally separated so that we could | ||
8 | only process network interfaces that netlink indicated had been changed, | ||
9 | this has since been extended to test for all network intefaces. | ||
10 | |||
11 | Upstream-Status: Submitted [dts@apple.com] | ||
12 | |||
13 | Signed-off-by: Nate Karstens <nate.karstens@garmin.com> | ||
14 | --- | ||
15 | mDNSPosix/mDNSPosix.c | 13 ++----------- | ||
16 | 1 file changed, 2 insertions(+), 11 deletions(-) | ||
17 | |||
18 | diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c | ||
19 | index 59a8b8c..3fc5451 100644 | ||
20 | --- a/mDNSPosix/mDNSPosix.c | ||
21 | +++ b/mDNSPosix/mDNSPosix.c | ||
22 | @@ -1079,24 +1079,15 @@ mDNSlocal mStatus OpenIfNotifySocket(int *pFD) | ||
23 | return err; | ||
24 | } | ||
25 | |||
26 | -mDNSlocal mDNSBool ListContainsInterfaceIndex(GenLinkedList *list, int if_index) | ||
27 | +mDNSlocal void AddInterfaceIndexToList(GenLinkedList *list, int if_index) | ||
28 | { | ||
29 | NetworkInterfaceIndex *item; | ||
30 | |||
31 | for (item = (NetworkInterfaceIndex*)list->Head; item != NULL; item = item->Next) | ||
32 | { | ||
33 | - if (if_index == item->if_index) return mDNStrue; | ||
34 | + if (if_index == item->if_index) return; | ||
35 | } | ||
36 | |||
37 | - return mDNSfalse; | ||
38 | -} | ||
39 | - | ||
40 | -mDNSlocal void AddInterfaceIndexToList(GenLinkedList *list, int if_index) | ||
41 | -{ | ||
42 | - NetworkInterfaceIndex *item; | ||
43 | - | ||
44 | - if (ListContainsInterfaceIndex(list, if_index)) return; | ||
45 | - | ||
46 | item = malloc(sizeof *item); | ||
47 | if (item == NULL) return; | ||
48 | |||
49 | -- | ||
50 | 2.17.1 | ||
51 | |||