head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.6 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.4 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.2 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.2.0.158 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.156 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.154 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.152 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.150 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.148 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.146 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.144 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.142 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.140 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.138 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.136 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.134 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.132 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.130 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.128 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.126 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.124 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.122 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.120 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.116 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.96 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.118 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.114 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.112 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.110 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.108 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.106 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.104 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.102 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.100 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.98 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.94 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.92 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.90 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.88 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.86 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.84 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.82 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.80 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.78 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.76 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.74 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.72 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.70 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.68 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.66 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.64 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.62 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.60 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.58 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.56 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.54 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.52 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.48 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.46 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.44 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.42 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.40 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.38 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.36 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.34 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.32 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.30 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.28 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.26 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.24 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.22 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.20 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.18 pkgsrc-2008Q1:1.2.0.16 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.14 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.12 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.10 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.8 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.6 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.4 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.2 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.1.1.1.0.18 pkgsrc-2006Q1-base:1.1.1.1 pkgsrc-2005Q4:1.1.1.1.0.16 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.14 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.12 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.10 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.8 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.6 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.4 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.2 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2025.08.20.13.32.18; author pho; state Exp; branches; next 1.2; commitid mhRKvZVTSAqWkt7G; 1.2 date 2006.05.29.14.06.27; author joerg; state Exp; branches; next 1.1; 1.1 date 2004.02.24.23.41.56; author cube; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.02.24.23.41.56; author cube; state Exp; branches; next ; desc @@ 1.3 log @net/gkrellm-multiping: Update to 2.0.15 pkgsrc changes: - Changed MASTER_SITES and HOMEPAGE because the upstream has moved to GitHub. - Removed patch-aa (Makefile) - Added a replacement Makefile for libtoolisation - Removed patch-ab (multiping.c) because it's no longer necessary. - Updated patch-ac (pinger.c) to fix build on *BSD. - Changed the installation path for "pinger" from ${PREFIX}/lib/gkrellm2/plugins to ${PREFIX}/libexec, because it's not nice to install helper executables in "plugins". - Dropped dependency on pthread because it's no longer necessary. upstream changes: 2.0.15 (2010-10-06) * IPv6 support 2.0.14 (2007-12-04) * cleanups, remove signal() and gethostbyname() 2.0.13 (2007-01-18) * remove more deprecated functions * fixed broken adding of new entries 2.0.12 (2006-10-15) * GtkTreeView port 2.0.11 * debianization 2.0.10 (2005-03-25) * added README file * fixed setting of the installation path 2.0.9 * option for dynamic DNS * some brown paper bag bug fixes @ text @$NetBSD: patch-ac,v 1.2 2006/05/29 14:06:27 joerg Exp $ Use BSD names rather than Linux names for ICMP-related cpp macros. Linux apparently supports both but this is required on *BSD. --- pinger.c.orig 2014-09-07 09:40:11.000000000 +0000 +++ pinger.c @@@@ -317,42 +317,49 @@@@ static gchar *pr_icmph(struct icmp *icp) g_string_assign(s, "Echo Reply"); /* XXX ID + Seq + Data */ break; - case ICMP_DEST_UNREACH: + case ICMP_UNREACH: switch (icp->icmp_code) { - case ICMP_NET_UNREACH: + case ICMP_UNREACH_NET: g_string_assign(s, "Destination Net Unreachable"); break; - case ICMP_HOST_UNREACH: + case ICMP_UNREACH_HOST: g_string_assign(s, "Destination Host Unreachable"); break; - case ICMP_PROT_UNREACH: + case ICMP_UNREACH_PROTOCOL: g_string_assign(s, "Destination Protocol Unreachable"); break; - case ICMP_PORT_UNREACH: + case ICMP_UNREACH_PORT: g_string_assign(s, "Destination Port Unreachable"); break; - case ICMP_FRAG_NEEDED: + case ICMP_UNREACH_NEEDFRAG: g_string_assign(s, "Frag needed and DF set"); break; - case ICMP_SR_FAILED: + case ICMP_UNREACH_SRCFAIL: g_string_assign(s, "Source Route Failed"); break; - case ICMP_NET_UNKNOWN: + case ICMP_UNREACH_NET_UNKNOWN: g_string_assign(s, "Network Unknown"); break; - case ICMP_HOST_UNKNOWN: + case ICMP_UNREACH_HOST_UNKNOWN: g_string_assign(s, "Host Unknown"); break; - case ICMP_HOST_ISOLATED: + case ICMP_UNREACH_ISOLATED: g_string_assign(s, "Host Isolated"); break; - case ICMP_NET_UNR_TOS: + case ICMP_UNREACH_TOSNET: g_string_assign(s, "Destination Network Unreachable At This TOS"); break; - case ICMP_HOST_UNR_TOS: + case ICMP_UNREACH_TOSHOST: g_string_assign(s, "Destination Host Unreachable At This TOS"); break; +#if defined(__DragonFly__) + case ICMP_UNREACH_FILTER_PROHIB: +#else + case ICMP_UNREACH_ADMIN_PROHIBIT: +#endif + g_string_assign(s, "Packet Prohibited"); + break; #ifdef ICMP_PKT_FILTERED case ICMP_PKT_FILTERED: g_string_assign(s, "Packet Filtered"); @@@@ -374,21 +381,21 @@@@ static gchar *pr_icmph(struct icmp *icp) break; } break; - case ICMP_SOURCE_QUENCH: + case ICMP_SOURCEQUENCH: g_string_assign(s, "Source Quench"); break; case ICMP_REDIRECT: switch (icp->icmp_code) { - case ICMP_REDIR_NET: + case ICMP_REDIRECT_NET: g_string_assign(s, "Redirect Network"); break; - case ICMP_REDIR_HOST: + case ICMP_REDIRECT_HOST: g_string_assign(s, "Redirect Host"); break; - case ICMP_REDIR_NETTOS: + case ICMP_REDIRECT_TOSNET: g_string_assign(s, "Redirect Type of Service and Network"); break; - case ICMP_REDIR_HOSTTOS: + case ICMP_REDIRECT_TOSHOST: g_string_assign(s, "Redirect Type of Service and Host"); break; default: @@@@ -402,12 +409,12 @@@@ static gchar *pr_icmph(struct icmp *icp) g_string_assign(s, "Echo Request"); /* XXX ID + Seq + Data */ break; - case ICMP_TIME_EXCEEDED: + case ICMP_TIMXCEED: switch (icp->icmp_code) { - case ICMP_EXC_TTL: + case ICMP_TIMXCEED_INTRANS: g_string_assign(s, "Time to live exceeded"); break; - case ICMP_EXC_FRAGTIME: + case ICMP_TIMXCEED_REASS: g_string_assign(s, "Frag reassembly time exceeded"); break; default: @@@@ -416,23 +423,23 @@@@ static gchar *pr_icmph(struct icmp *icp) break; } break; - case ICMP_PARAMETERPROB: + case ICMP_PARAMPROB: g_string_sprintf(s, "Parameter problem: IP address = %s", inet_ntoa(icp->icmp_gwaddr)); break; - case ICMP_TIMESTAMP: + case ICMP_TSTAMP: g_string_assign(s, "Timestamp"); /* XXX ID + Seq + 3 timestamps */ break; - case ICMP_TIMESTAMPREPLY: + case ICMP_TSTAMPREPLY: g_string_assign(s, "Timestamp Reply"); /* XXX ID + Seq + 3 timestamps */ break; - case ICMP_INFO_REQUEST: + case ICMP_IREQ: g_string_assign(s, "Information Request"); /* XXX ID + Seq */ break; - case ICMP_INFO_REPLY: + case ICMP_IREQREPLY: g_string_assign(s, "Information Reply"); /* XXX ID + Seq */ break; @@@@ -510,7 +517,7 @@@@ static gchar *pr_icmph6(struct icmp6_hdr break; } break; - case ICMP_PARAMETERPROB: + case ICMP_PARAMPROB: switch (icmp->icmp6_code) { case ICMP6_PARAMPROB_HEADER: g_string_assign(s, "Erroneous header field"); @@@@ -597,9 +604,9 @@@@ static void pr_pack(u_char *buf, int cc, switch (icp->icmp_type) { case ICMP_ECHO: return; - case ICMP_DEST_UNREACH: - case ICMP_TIME_EXCEEDED: - case ICMP_PARAMETERPROB: + case ICMP_UNREACH: + case ICMP_TIMXCEED: + case ICMP_PARAMPROB: { struct ip *iph = (struct ip *) (&icp->icmp_data); struct icmp *icp1 = @ 1.2 log @Fix build on DragonFly. @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 1 --- pinger.c.orig 2004-01-16 07:48:09.000000000 +0000 d8 4 a11 12 @@@@ -27,6 +27,7 @@@@ ________________________________________ #include #include +#include #include #include #include @@@@ -239,42 +240,48 @@@@ static gchar *pr_icmph(struct icmp *icp) g_string_assign(s, "Echo Reply"); /* XXX ID + Seq + Data */ break; d14 46 a59 46 switch (icp->icmp_code) { - case ICMP_NET_UNREACH: + case ICMP_UNREACH_NET: g_string_assign(s, "Destination Net Unreachable"); break; - case ICMP_HOST_UNREACH: + case ICMP_UNREACH_HOST: g_string_assign(s, "Destination Host Unreachable"); break; - case ICMP_PROT_UNREACH: + case ICMP_UNREACH_PROTOCOL: g_string_assign(s, "Destination Protocol Unreachable"); break; - case ICMP_PORT_UNREACH: + case ICMP_UNREACH_PORT: g_string_assign(s, "Destination Port Unreachable"); break; - case ICMP_FRAG_NEEDED: + case ICMP_UNREACH_NEEDFRAG: g_string_assign(s, "Frag needed and DF set"); break; - case ICMP_SR_FAILED: + case ICMP_UNREACH_SRCFAIL: g_string_assign(s, "Source Route Failed"); break; - case ICMP_NET_UNKNOWN: + case ICMP_UNREACH_NET_UNKNOWN: g_string_assign(s, "Network Unknown"); break; - case ICMP_HOST_UNKNOWN: + case ICMP_UNREACH_HOST_UNKNOWN: g_string_assign(s, "Host Unknown"); break; - case ICMP_HOST_ISOLATED: + case ICMP_UNREACH_ISOLATED: g_string_assign(s, "Host Isolated"); break; - case ICMP_NET_UNR_TOS: + case ICMP_UNREACH_TOSNET: g_string_assign(s, "Destination Network Unreachable At This TOS"); break; - case ICMP_HOST_UNR_TOS: + case ICMP_UNREACH_TOSHOST: g_string_assign(s, "Destination Host Unreachable At This TOS"); break; d66 1 d68 6 a73 6 case ICMP_PKT_FILTERED: g_string_assign(s, "Packet Filtered"); @@@@ -296,21 +303,21 @@@@ static gchar *pr_icmph(struct icmp *icp) break; } break; d76 2 a77 2 g_string_assign(s, "Source Quench"); break; d79 22 a100 22 switch (icp->icmp_code) { - case ICMP_REDIR_NET: + case ICMP_REDIRECT_NET: g_string_assign(s, "Redirect Network"); break; - case ICMP_REDIR_HOST: + case ICMP_REDIRECT_HOST: g_string_assign(s, "Redirect Host"); break; - case ICMP_REDIR_NETTOS: + case ICMP_REDIRECT_TOSNET: g_string_assign(s, "Redirect Type of Service and Network"); break; - case ICMP_REDIR_HOSTTOS: + case ICMP_REDIRECT_TOSHOST: g_string_assign(s, "Redirect Type of Service and Host"); break; default: @@@@ -324,12 +331,12 @@@@ static gchar *pr_icmph(struct icmp *icp) g_string_assign(s, "Echo Request"); /* XXX ID + Seq + Data */ break; d103 14 a116 14 switch (icp->icmp_code) { - case ICMP_EXC_TTL: + case ICMP_TIMXCEED_INTRANS: g_string_assign(s, "Time to live exceeded"); break; - case ICMP_EXC_FRAGTIME: + case ICMP_TIMXCEED_REASS: g_string_assign(s, "Frag reassembly time exceeded"); break; default: @@@@ -338,23 +345,23 @@@@ static gchar *pr_icmph(struct icmp *icp) break; } break; d119 3 a121 3 g_string_sprintf(s, "Parameter problem: IP address = %s", inet_ntoa(icp->icmp_gwaddr)); break; d124 3 a126 3 g_string_assign(s, "Timestamp"); /* XXX ID + Seq + 3 timestamps */ break; d129 3 a131 3 g_string_assign(s, "Timestamp Reply"); /* XXX ID + Seq + 3 timestamps */ break; d134 3 a136 3 g_string_assign(s, "Information Request"); /* XXX ID + Seq */ break; d139 25 a163 28 g_string_assign(s, "Information Reply"); /* XXX ID + Seq */ break; @@@@ -448,11 +455,11 @@@@ void pr_pack(char *buf, int cc, struct s switch (icp->icmp_type) { case ICMP_ECHO: return; - case ICMP_SOURCE_QUENCH: + case ICMP_SOURCEQUENCH: case ICMP_REDIRECT: - case ICMP_DEST_UNREACH: - case ICMP_TIME_EXCEEDED: - case ICMP_PARAMETERPROB: + case ICMP_UNREACH: + case ICMP_TIMXCEED: + case ICMP_PARAMPROB: { struct ip *iph = (struct ip *) (&icp->icmp_data); struct icmp *icp1 = @@@@ -465,7 +472,7 @@@@ void pr_pack(char *buf, int cc, struct s icp1->icmp_id != ident) return; error_pkt = (icp->icmp_type != ICMP_REDIRECT && - icp->icmp_type != ICMP_SOURCE_QUENCH); + icp->icmp_type != ICMP_SOURCEQUENCH); h = (host_data *) g_list_find_custom(hosts, (int *) &icp1-> @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- pinger.c.orig 2003-01-22 17:12:53.000000000 +0100 d13 1 a13 1 @@@@ -220,42 +221,44 @@@@ static gchar *pr_icmph(struct icmp *icp) d65 3 d69 1 d74 1 a74 1 @@@@ -277,21 +280,21 @@@@ static gchar *pr_icmph(struct icmp *icp) d101 1 a101 1 @@@@ -305,12 +308,12 @@@@ static gchar *pr_icmph(struct icmp *icp) d117 1 a117 1 @@@@ -319,23 +322,23 @@@@ static gchar *pr_icmph(struct icmp *icp) d146 1 a146 1 @@@@ -430,11 +433,11 @@@@ void pr_pack(char *buf, int cc, struct s d162 1 a162 1 @@@@ -447,7 +450,7 @@@@ void pr_pack(char *buf, int cc, struct s @ 1.1.1.1 log @Initial import of gkrellm-multiping, version 2.0.8 into the NetBSD Package Collection, from pkgsrc-wip. gkrellm-multiping is a GKrellM plugin that repeatedly pings a list of hosts and show their respective status. Optionally it can displays the average round-trip time value for each host. @ text @@