mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

Drop 0015-Add-missing-limits.h.patch (equivalent patch merged upstream), rebase other patches. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
From 5f58e5671cd6dbd4cb49bd30fb606d430b626361 Mon Sep 17 00:00:00 2001
|
|
From: Nate Karstens <nate.karstens@garmin.com>
|
|
Date: Wed, 28 Jun 2017 17:30:00 -0500
|
|
Subject: [PATCH] Track interface socket family
|
|
|
|
Tracks the socket family associated with the interface.
|
|
|
|
Upstream-Status: Submitted [dts@apple.com]
|
|
|
|
Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
|
|
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
|
---
|
|
mDNSPosix/mDNSPosix.c | 1 +
|
|
mDNSPosix/mDNSPosix.h | 2 ++
|
|
2 files changed, 3 insertions(+)
|
|
|
|
diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
|
|
index a6041b04a21e..15bbecee04a4 100644
|
|
--- a/mDNSPosix/mDNSPosix.c
|
|
+++ b/mDNSPosix/mDNSPosix.c
|
|
@@ -1415,6 +1415,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct
|
|
// Set up the extra fields in PosixNetworkInterface.
|
|
assert(intf->intfName != NULL); // intf->intfName already set up above
|
|
intf->index = intfIndex;
|
|
+ intf->sa_family = intfAddr->sa_family;
|
|
intf->multicastSocket4 = -1;
|
|
#if HAVE_IPV6
|
|
intf->multicastSocket6 = -1;
|
|
diff --git a/mDNSPosix/mDNSPosix.h b/mDNSPosix/mDNSPosix.h
|
|
index 9675591b0434..dd7864cd0d5e 100644
|
|
--- a/mDNSPosix/mDNSPosix.h
|
|
+++ b/mDNSPosix/mDNSPosix.h
|
|
@@ -19,6 +19,7 @@
|
|
#define __mDNSPlatformPosix_h
|
|
|
|
#include <signal.h>
|
|
+#include <sys/socket.h>
|
|
#include <sys/time.h>
|
|
|
|
#ifdef __cplusplus
|
|
@@ -40,6 +41,7 @@ struct PosixNetworkInterface
|
|
char * intfName;
|
|
PosixNetworkInterface * aliasIntf;
|
|
int index;
|
|
+ sa_family_t sa_family;
|
|
int multicastSocket4;
|
|
#if HAVE_IPV6
|
|
int multicastSocket6;
|