mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +00:00
dibbler: Upgrade to 1.0.2RC1
Delete dibbler from meta-oe Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
+16
-40
@@ -1,32 +1,8 @@
|
|||||||
diff --git a/ClntMessages/ClntMsg.cpp b/ClntMessages/ClntMsg.cpp
|
Index: git/ClntMessages/ClntMsgRequest.cpp
|
||||||
index eeaadd0..0cf5dce 100644
|
===================================================================
|
||||||
--- a/ClntMessages/ClntMsg.cpp
|
--- git.orig/ClntMessages/ClntMsgRequest.cpp
|
||||||
+++ b/ClntMessages/ClntMsg.cpp
|
+++ git/ClntMessages/ClntMsgRequest.cpp
|
||||||
@@ -346,7 +346,9 @@ unsigned long TClntMsg::getTimeout()
|
@@ -142,7 +142,10 @@ TClntMsgRequest::TClntMsgRequest(List(TA
|
||||||
|
|
||||||
void TClntMsg::send()
|
|
||||||
{
|
|
||||||
- char* pkt = new char[getSize()];
|
|
||||||
+ size_t size = getSize();
|
|
||||||
+ char* pkt = new char[size];
|
|
||||||
+ memset(pkt, 0, size);
|
|
||||||
|
|
||||||
srand((uint32_t)time(NULL));
|
|
||||||
if (!RC)
|
|
||||||
@@ -364,7 +366,7 @@ void TClntMsg::send()
|
|
||||||
|
|
||||||
RC++;
|
|
||||||
|
|
||||||
- this->storeSelf(pkt);
|
|
||||||
+ storeSelf(pkt);
|
|
||||||
|
|
||||||
SPtr<TIfaceIface> ptrIface = ClntIfaceMgr().getIfaceByID(Iface);
|
|
||||||
if (!ptrIface) {
|
|
||||||
diff --git a/ClntMessages/ClntMsgRequest.cpp b/ClntMessages/ClntMsgRequest.cpp
|
|
||||||
index 4a7b5da..f3e40fd 100644
|
|
||||||
--- a/ClntMessages/ClntMsgRequest.cpp
|
|
||||||
+++ b/ClntMessages/ClntMsgRequest.cpp
|
|
||||||
@@ -143,7 +143,10 @@ TClntMsgRequest::TClntMsgRequest(List(TAddrIA) IAs,
|
|
||||||
IsDone=false;
|
IsDone=false;
|
||||||
SPtr<TOpt> ptr;
|
SPtr<TOpt> ptr;
|
||||||
ptr = new TOptDUID(OPTION_CLIENTID, ClntCfgMgr().getDUID(), this );
|
ptr = new TOptDUID(OPTION_CLIENTID, ClntCfgMgr().getDUID(), this );
|
||||||
@@ -38,8 +14,8 @@ index 4a7b5da..f3e40fd 100644
|
|||||||
|
|
||||||
if (!srvDUID) {
|
if (!srvDUID) {
|
||||||
Log(Error) << "Unable to send REQUEST: ServerId not specified.\n" << LogEnd;
|
Log(Error) << "Unable to send REQUEST: ServerId not specified.\n" << LogEnd;
|
||||||
@@ -154,7 +157,9 @@ TClntMsgRequest::TClntMsgRequest(List(TAddrIA) IAs,
|
@@ -153,7 +156,9 @@ TClntMsgRequest::TClntMsgRequest(List(TA
|
||||||
ptr = (Ptr*) new TOptDUID(OPTION_SERVERID, srvDUID,this);
|
ptr = new TOptDUID(OPTION_SERVERID, srvDUID,this);
|
||||||
// all IAs provided by checkSolicit
|
// all IAs provided by checkSolicit
|
||||||
SPtr<TAddrIA> ClntAddrIA;
|
SPtr<TAddrIA> ClntAddrIA;
|
||||||
- Options.push_back( ptr );
|
- Options.push_back( ptr );
|
||||||
@@ -49,21 +25,21 @@ index 4a7b5da..f3e40fd 100644
|
|||||||
|
|
||||||
IAs.first();
|
IAs.first();
|
||||||
while (ClntAddrIA = IAs.get())
|
while (ClntAddrIA = IAs.get())
|
||||||
diff --git a/Messages/Msg.cpp b/Messages/Msg.cpp
|
Index: git/Messages/Msg.cpp
|
||||||
index baa6c86..6eef6c7 100644
|
===================================================================
|
||||||
--- a/Messages/Msg.cpp
|
--- git.orig/Messages/Msg.cpp
|
||||||
+++ b/Messages/Msg.cpp
|
+++ git/Messages/Msg.cpp
|
||||||
@@ -66,10 +66,15 @@ int TMsg::getSize()
|
@@ -69,10 +69,15 @@ int TMsg::getSize()
|
||||||
{
|
{
|
||||||
int pktsize=0;
|
int pktsize=0;
|
||||||
TOptList::iterator opt;
|
TOptList::iterator opt;
|
||||||
+ int optionCount = 0;
|
+ int optionCount = 0;
|
||||||
for (opt = Options.begin(); opt!=Options.end(); ++opt)
|
for (opt = Options.begin(); opt!=Options.end(); ++opt)
|
||||||
{
|
{
|
||||||
- pktsize += (*opt)->getSize();
|
- pktsize += (*opt)->getSize();
|
||||||
+ Log(Info) << "### CPE Debug - Option with index " << optionCount++ << LogEnd ;
|
+ Log(Info) << "### CPE Debug - Option with index " << optionCount++ << LogEnd ;
|
||||||
+ Log(Info) << "### CPE Debug - Option with type " << (*opt)->getOptType() << LogEnd ;
|
+ Log(Info) << "### CPE Debug - Option with type " << (*opt)->getOptType() << LogEnd ;
|
||||||
+ pktsize += (*opt)->getSize();
|
+ pktsize += (*opt)->getSize();
|
||||||
}
|
}
|
||||||
+ Log(Info) << "### CPE Debug - Packet size of option (Add 4) " << pktsize << LogEnd ;
|
+ Log(Info) << "### CPE Debug - Packet size of option (Add 4) " << pktsize << LogEnd ;
|
||||||
+
|
+
|
||||||
|
|||||||
@@ -1,96 +0,0 @@
|
|||||||
Apply fixes to build on musl
|
|
||||||
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
|
|
||||||
|
|
||||||
Index: dibbler-1.0.1/IfaceMgr/IfaceMgr.cpp
|
|
||||||
===================================================================
|
|
||||||
--- dibbler-1.0.1.orig/IfaceMgr/IfaceMgr.cpp
|
|
||||||
+++ dibbler-1.0.1/IfaceMgr/IfaceMgr.cpp
|
|
||||||
@@ -16,6 +16,7 @@
|
|
||||||
#include <string>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <errno.h>
|
|
||||||
+#include <sys/select.h>
|
|
||||||
#include "Portable.h"
|
|
||||||
#include "IfaceMgr.h"
|
|
||||||
#include "Iface.h"
|
|
||||||
Index: dibbler-1.0.1/IfaceMgr/SocketIPv6.h
|
|
||||||
===================================================================
|
|
||||||
--- dibbler-1.0.1.orig/IfaceMgr/SocketIPv6.h
|
|
||||||
+++ dibbler-1.0.1/IfaceMgr/SocketIPv6.h
|
|
||||||
@@ -18,6 +18,7 @@ class TIfaceSocket;
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <string>
|
|
||||||
+#include <sys/select.h>
|
|
||||||
|
|
||||||
#include "Portable.h"
|
|
||||||
#include "DHCPConst.h"
|
|
||||||
Index: dibbler-1.0.1/Port-linux/ethtool-local.h
|
|
||||||
===================================================================
|
|
||||||
--- dibbler-1.0.1.orig/Port-linux/ethtool-local.h
|
|
||||||
+++ dibbler-1.0.1/Port-linux/ethtool-local.h
|
|
||||||
@@ -22,9 +22,9 @@
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef unsigned long long u64;
|
|
||||||
-typedef __uint32_t u32;
|
|
||||||
-typedef __uint16_t u16;
|
|
||||||
-typedef __uint8_t u8;
|
|
||||||
+typedef uint32_t u32;
|
|
||||||
+typedef uint16_t u16;
|
|
||||||
+typedef uint8_t u8;
|
|
||||||
|
|
||||||
#include "ethtool-kernel.h"
|
|
||||||
|
|
||||||
Index: dibbler-1.0.1/Port-linux/interface.c
|
|
||||||
===================================================================
|
|
||||||
--- dibbler-1.0.1.orig/Port-linux/interface.c
|
|
||||||
+++ dibbler-1.0.1/Port-linux/interface.c
|
|
||||||
@@ -26,6 +26,7 @@
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <linux/if.h>
|
|
||||||
+#include <linux/sockios.h>
|
|
||||||
#include <syslog.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
|
||||||
@@ -35,13 +36,10 @@
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
-#include <net/if.h>
|
|
||||||
|
|
||||||
#include "ethtool-local.h"
|
|
||||||
#include "interface.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
-#include <linux/sockios.h>
|
|
||||||
-#include <linux/if_ether.h>
|
|
||||||
|
|
||||||
void daemon_log(int loglevel, const char *fmt,...)
|
|
||||||
{
|
|
||||||
Index: dibbler-1.0.1/Port-linux/lowlevel-linux-link-state.c
|
|
||||||
===================================================================
|
|
||||||
--- dibbler-1.0.1.orig/Port-linux/lowlevel-linux-link-state.c
|
|
||||||
+++ dibbler-1.0.1/Port-linux/lowlevel-linux-link-state.c
|
|
||||||
@@ -18,7 +18,6 @@
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
-#include <bits/sigthread.h>
|
|
||||||
#include "Portable.h"
|
|
||||||
#include "interface.h"
|
|
||||||
|
|
||||||
Index: dibbler-1.0.1/Port-linux/utils.h
|
|
||||||
===================================================================
|
|
||||||
--- dibbler-1.0.1.orig/Port-linux/utils.h
|
|
||||||
+++ dibbler-1.0.1/Port-linux/utils.h
|
|
||||||
@@ -4,6 +4,7 @@
|
|
||||||
#include <asm/types.h>
|
|
||||||
//#include <resolv.h>
|
|
||||||
#include <linux/types.h>
|
|
||||||
+#include <sys/types.h>
|
|
||||||
|
|
||||||
#include "libnetlink.h"
|
|
||||||
#include "ll_map.h"
|
|
||||||
+8
-8
@@ -5,12 +5,14 @@ HOMEPAGE = "http://klub.com.pl/dhcpv6"
|
|||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7236695bb6d4461c105d685a8b61c4e3"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=7236695bb6d4461c105d685a8b61c4e3"
|
||||||
|
|
||||||
SRC_URI = "http://klub.com.pl/dhcpv6/${BPN}/${BP}.tar.gz \
|
SRCREV = "c4b0ed52e751da7823dd9a36e91f93a6310e5525"
|
||||||
file://dibbler_fix_getSize_crash.patch \
|
|
||||||
file://types.patch \
|
SRC_URI = "git://github.com/tomaszmrugalski/dibbler \
|
||||||
"
|
file://dibbler_fix_getSize_crash.patch \
|
||||||
SRC_URI[md5sum] = "93357bea3ec35b0c1d11242055361409"
|
"
|
||||||
SRC_URI[sha256sum] = "27869877e060c039cbc24a5f6a9dd69006bf67de0ffdf29a645a80aef6e476a1"
|
PV = "1.0.1+1.0.2RC1+git${SRCREV}"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
PACKAGECONFIG ??= "debug bind-reuse resolvconf dns-update"
|
PACKAGECONFIG ??= "debug bind-reuse resolvconf dns-update"
|
||||||
|
|
||||||
@@ -27,8 +29,6 @@ inherit autotools
|
|||||||
|
|
||||||
DEPENDS += "flex-native"
|
DEPENDS += "flex-native"
|
||||||
|
|
||||||
CFLAGS += "-D_GNU_SOURCE"
|
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-requestor ${PN}-client ${PN}-relay ${PN}-server"
|
PACKAGES =+ "${PN}-requestor ${PN}-client ${PN}-relay ${PN}-server"
|
||||||
|
|
||||||
FILES_${PN}-client = "${sbindir}/${PN}-client"
|
FILES_${PN}-client = "${sbindir}/${PN}-client"
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
SUMMARY = "A portable DHCPv6 implementation"
|
|
||||||
DESCRIPTION = "Dibbler is a portable DHCPv6 implementation. It supports stateful \
|
|
||||||
(i.e. IPv6 address granting and IPv6 prefix delegation) as well as stateless (i.e. \
|
|
||||||
option granting) autoconfiguration for IPv6."
|
|
||||||
HOMEPAGE = "http://klub.com.pl/dhcpv6"
|
|
||||||
LICENSE = "GPLv2"
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7236695bb6d4461c105d685a8b61c4e3 \
|
|
||||||
file://bison++/COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
|
|
||||||
|
|
||||||
DEPENDS = "flex-native bison-native"
|
|
||||||
|
|
||||||
SRC_URI = "http://klub.com.pl/dhcpv6/dibbler/dibbler-${PV}.tar.gz"
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "93357bea3ec35b0c1d11242055361409"
|
|
||||||
SRC_URI[sha256sum] = "27869877e060c039cbc24a5f6a9dd69006bf67de0ffdf29a645a80aef6e476a1"
|
|
||||||
|
|
||||||
inherit autotools
|
|
||||||
|
|
||||||
PACKAGECONFIG ?= "auth bind-reuse dns-update dst-addr-filter link-state"
|
|
||||||
|
|
||||||
PACKAGECONFIG[auth] = "--enable-auth,--disable-auth"
|
|
||||||
PACKAGECONFIG[bind-reuse] = "--enable-bind-reuse,--disable-bind-reuse"
|
|
||||||
PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
|
|
||||||
PACKAGECONFIG[dns-update] = "--enable-dns-update,--disable-dns-update"
|
|
||||||
PACKAGECONFIG[dst-addr-filter] = "--enable-dst-addr-filter,--disable-dst-addr-filter"
|
|
||||||
PACKAGECONFIG[link-state] = "--enable-link-state,--disable-link-state"
|
|
||||||
PACKAGECONFIG[remote-autoconf] = "--enable-remote-autoconf,--disable-remote-autoconf"
|
|
||||||
PACKAGECONFIG[resolvconf] = "--enable-resolvconf,--disable-resolvconf"
|
|
||||||
|
|
||||||
EXTRA_OECONF += " \
|
|
||||||
--disable-efence \
|
|
||||||
--with-gtest=no \
|
|
||||||
"
|
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-client ${PN}-relay ${PN}-requestor ${PN}-server"
|
|
||||||
|
|
||||||
FILES_${PN}-client = "${sbindir}/${PN}-client"
|
|
||||||
FILES_${PN}-relay = "${sbindir}/${PN}-relay"
|
|
||||||
FILES_${PN}-requestor = "${sbindir}/${PN}-requestor"
|
|
||||||
FILES_${PN}-server = "${sbindir}/${PN}-server"
|
|
||||||
Reference in New Issue
Block a user