From 60aab665670e50cb18bba45ee25f2ed091759741 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Mon, 23 Feb 2004 04:42:13 +0000 Subject: Say hello to the new "net-mgmt" category. There are probably more ports that belong here than the ones I have identified and moved in this, first, pass. Approved in principle by: marcus --- net/net-snmp/files/patch-snmpUCDIPv6Domain.c | 30 ---------------------------- 1 file changed, 30 deletions(-) delete mode 100644 net/net-snmp/files/patch-snmpUCDIPv6Domain.c (limited to 'net/net-snmp/files/patch-snmpUCDIPv6Domain.c') diff --git a/net/net-snmp/files/patch-snmpUCDIPv6Domain.c b/net/net-snmp/files/patch-snmpUCDIPv6Domain.c deleted file mode 100644 index 6f1f6c4caeed..000000000000 --- a/net/net-snmp/files/patch-snmpUCDIPv6Domain.c +++ /dev/null @@ -1,30 +0,0 @@ ---- snmplib/snmpUDPIPv6Domain.c.orig Fri Aug 9 22:57:43 2002 -+++ snmplib/snmpUDPIPv6Domain.c Sun Oct 6 18:03:18 2002 -@@ -62,13 +62,21 @@ - if (to == NULL) { - return strdup("UDP/IPv6: unknown"); - } else { -- char addr[INET6_ADDRSTRLEN]; -- char tmp[INET6_ADDRSTRLEN + 8]; -+ char tmp[NI_MAXHOST]; - -- sprintf(tmp, "[%s]:%hd", -- 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(to, sizeof(struct sockaddr_in6), tmp, sizeof(tmp), -+ NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID)) { -+ return strdup("UDP/IPv6: unknown"); -+ } -+ return strdup(tmp); - } - } - -- cgit v1.2.3