mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
net-snmp: Update to 5.7.2
- Removed some un-needed patches Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
This commit is contained in:
committed by
Martin Jansa
parent
a5cbd7c856
commit
71548ec82d
@@ -1,69 +0,0 @@
|
||||
Add support to libnl-3
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- net-snmp-5.6.1/agent/mibgroup/mibII/tcpTable.c.org 2011-03-27 22:39:13.428728506 +0200
|
||||
+++ net-snmp-5.6.1/agent/mibgroup/mibII/tcpTable.c 2011-03-27 22:39:47.606956561 +0200
|
||||
@@ -555,8 +555,9 @@
|
||||
static int
|
||||
tcpTable_load_netlink(void)
|
||||
{
|
||||
+ int err;
|
||||
/* TODO: perhaps use permanent nl handle? */
|
||||
- struct nl_handle *nl = nl_handle_alloc();
|
||||
+ struct nl_sock *nl = nl_socket_alloc();
|
||||
|
||||
if (nl == NULL) {
|
||||
DEBUGMSGTL(("mibII/tcpTable", "Failed to allocate netlink handle\n"));
|
||||
@@ -564,10 +565,10 @@
|
||||
return -1;
|
||||
}
|
||||
|
||||
- if (nl_connect(nl, NETLINK_INET_DIAG) < 0) {
|
||||
- DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror()));
|
||||
- snmp_log(LOG_ERR, "snmpd: Couldn't connect to netlink: %s\n", nl_geterror());
|
||||
- nl_handle_destroy(nl);
|
||||
+ if ((err = nl_connect(nl, NETLINK_INET_DIAG)) < 0) {
|
||||
+ DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror(err)));
|
||||
+ snmp_log(LOG_ERR, "snmpd: Couldn't connect to netlink: %s\n", nl_geterror(err));
|
||||
+ nl_socket_free(nl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -579,10 +580,10 @@
|
||||
struct nl_msg *nm = nlmsg_alloc_simple(TCPDIAG_GETSOCK, NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST);
|
||||
nlmsg_append(nm, &req, sizeof(struct inet_diag_req), 0);
|
||||
|
||||
- if (nl_send_auto_complete(nl, nm) < 0) {
|
||||
- DEBUGMSGTL(("mibII/tcpTable", "nl_send_autocomplete(): %s\n", nl_geterror()));
|
||||
- snmp_log(LOG_ERR, "snmpd: nl_send_autocomplete(): %s\n", nl_geterror());
|
||||
- nl_handle_destroy(nl);
|
||||
+ if ((err = nl_send_auto_complete(nl, nm)) < 0) {
|
||||
+ DEBUGMSGTL(("mibII/tcpTable", "nl_send_autocomplete(): %s\n", nl_geterror(err)));
|
||||
+ snmp_log(LOG_ERR, "snmpd: nl_send_autocomplete(): %s\n", nl_geterror(err));
|
||||
+ nl_socket_free(nl);
|
||||
return -1;
|
||||
}
|
||||
nlmsg_free(nm);
|
||||
@@ -593,9 +594,9 @@
|
||||
|
||||
while (running) {
|
||||
if ((len = nl_recv(nl, &peer, &buf, NULL)) <= 0) {
|
||||
- DEBUGMSGTL(("mibII/tcpTable", "nl_recv(): %s\n", nl_geterror()));
|
||||
- snmp_log(LOG_ERR, "snmpd: nl_recv(): %s\n", nl_geterror());
|
||||
- nl_handle_destroy(nl);
|
||||
+ DEBUGMSGTL(("mibII/tcpTable", "nl_recv(): %s\n", nl_geterror(len)));
|
||||
+ snmp_log(LOG_ERR, "snmpd: nl_recv(): %s\n", nl_geterror(len));
|
||||
+ nl_socket_free(nl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -644,7 +645,7 @@
|
||||
free(buf);
|
||||
}
|
||||
|
||||
- nl_handle_destroy(nl);
|
||||
+ nl_socket_free(nl);
|
||||
|
||||
if (tcp_head) {
|
||||
DEBUGMSGTL(("mibII/tcpTable", "Loaded TCP Table using netlink\n"));
|
||||
File diff suppressed because it is too large
Load Diff
+4
-5
@@ -1,11 +1,8 @@
|
||||
require net-snmp.inc
|
||||
|
||||
PR = "${INC_PR}.4"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=3;endline=8;md5=7f7f00ba639ac8e8deb5a622ea24634e"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
|
||||
file://sync-with-5.7-branch.patch \
|
||||
file://libnl-3-support.patch \
|
||||
file://init \
|
||||
file://snmpd.conf \
|
||||
file://snmptrapd.conf \
|
||||
@@ -15,6 +12,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
|
||||
file://ifmib.patch \
|
||||
"
|
||||
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no"
|
||||
EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
|
||||
|
||||
@@ -30,5 +29,5 @@ do_configure_prepend() {
|
||||
PARALLEL_MAKE = ""
|
||||
CCACHE = ""
|
||||
|
||||
SRC_URI[md5sum] = "c95d08fd5d93df0c11a2e1bdf0e01e0b"
|
||||
SRC_URI[sha256sum] = "7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f"
|
||||
SRC_URI[md5sum] = "5bddd02e2f82b62daa79f82717737a14"
|
||||
SRC_URI[sha256sum] = "09ed31b4cc1f3c0411ef9a16eff79ef3b30d89c32ca46d5a01a41826c4ceb816"
|
||||
Reference in New Issue
Block a user