From f982be45e81588a27383cd1a3eb12789b8498904 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Wed, 19 Nov 2008 10:43:57 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'RELEASE_6_4_0'. --- .../net-snmp-devel/files/patch-snmpUCDIPv6Domain.c | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 net-mgmt/net-snmp-devel/files/patch-snmpUCDIPv6Domain.c (limited to 'net-mgmt/net-snmp-devel/files/patch-snmpUCDIPv6Domain.c') diff --git a/net-mgmt/net-snmp-devel/files/patch-snmpUCDIPv6Domain.c b/net-mgmt/net-snmp-devel/files/patch-snmpUCDIPv6Domain.c deleted file mode 100644 index ad98e534bdf2..000000000000 --- a/net-mgmt/net-snmp-devel/files/patch-snmpUCDIPv6Domain.c +++ /dev/null @@ -1,33 +0,0 @@ ---- snmplib/snmpUDPIPv6Domain.c.orig 2007-06-11 07:22:55.000000000 +0900 -+++ snmplib/snmpUDPIPv6Domain.c 2008-03-26 07:47:55.942743517 +0900 -@@ -109,13 +109,24 @@ - if (to == NULL) { - return strdup("UDP/IPv6: unknown"); - } else { -- char addr[INET6_ADDRSTRLEN]; -- char tmp[INET6_ADDRSTRLEN + 8]; -+ char addr[NI_MAXHOST], tmp[NI_MAXHOST + NI_MAXSERV + 12]; - -- sprintf(tmp, "UDP/IPv6: [%s]:%hu", -- inet_ntop(AF_INET6, (void *) &(to->sin6_addr), addr, -- INET6_ADDRSTRLEN), ntohs(to->sin6_port)); -- return strdup(tmp); -+/* -+ * NI_WITHSCOPEID will be obsoleted. But some implementations require -+ * this flag to retrieve scoped name. -+ * (2002-07-25: kuriyama@FreeBSD.org) -+ */ -+#ifndef NI_WITHSCOPEID -+#define NI_WITHSCOPEID 0 -+#endif -+ if (getnameinfo((struct sockaddr *)to, sizeof(struct sockaddr_in6), -+ addr, sizeof(addr), NULL, 0, -+ NI_NUMERICHOST | NI_WITHSCOPEID)) { -+ return strdup("UDP/IPv6: unknown"); -+ } -+ snprintf(tmp, sizeof(tmp), "UDP/IPv6: [%s]:%hu", addr, -+ ntohs(to->sin6_port)); -+ return strdup(tmp); - } - } - -- cgit v1.2.3