summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/amt/lms/0002-Use-proper-netinet-in.h-API.patch
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2018-08-02 07:20:56 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2018-08-02 07:20:56 +0800
commit8bca950b8a89500782148f0fcbeae14ae9ba30fd (patch)
tree027061dd050d13cac04defbf7723ade22bcdf884 /recipes-bsp/amt/lms/0002-Use-proper-netinet-in.h-API.patch
parent12acdbe9d83dab15b364d9fab7b56b95a0a47925 (diff)
downloadmeta-intel-8bca950b8a89500782148f0fcbeae14ae9ba30fd.tar.gz
lms8: remove
Obsolete and not being maintained anymore. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-bsp/amt/lms/0002-Use-proper-netinet-in.h-API.patch')
-rw-r--r--recipes-bsp/amt/lms/0002-Use-proper-netinet-in.h-API.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/recipes-bsp/amt/lms/0002-Use-proper-netinet-in.h-API.patch b/recipes-bsp/amt/lms/0002-Use-proper-netinet-in.h-API.patch
deleted file mode 100644
index fa2e29a5..00000000
--- a/recipes-bsp/amt/lms/0002-Use-proper-netinet-in.h-API.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 0adc925ca9e005f93d77f373ccda2a6c6cc3ff2f Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Mon, 23 Jan 2017 20:46:50 +0200
4Subject: [PATCH 2/2] Use proper netinet/in.h API
5
6in6addr is only guaranteed to contain this member:
7 uint8_t s6_addr[16]
8Use that instead of the glibc implementation detail __in6_u.
9
10Upstream-Status: Pending
11Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
12---
13 src/tools/ATNetworkTool.cpp | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/tools/ATNetworkTool.cpp b/src/tools/ATNetworkTool.cpp
17index 66e27df..0789c79 100755
18--- a/src/tools/ATNetworkTool.cpp
19+++ b/src/tools/ATNetworkTool.cpp
20@@ -207,7 +207,7 @@ int ATNetworkTool::GetSockPeerIP(int sock, ATAddressList & peerAddresses, int &e
21 if(sa->sa_family == AF_INET6 && IN6_IS_ADDR_V4MAPPED(&addr)) //if(IN6_IS_ADDR_V4COMPAT(&addr))
22 {
23 struct in_addr demapped_addr;
24- memcpy(&demapped_addr.s_addr, &addr.__in6_u.__u6_addr8[12], 4);
25+ memcpy(&demapped_addr.s_addr, &addr.s6_addr[12], 4);
26
27 struct sockaddr_in sa_in;
28 sa_in.sin_family = AF_INET;
29--
302.1.4
31