changeset 1061:13900936a2c4

* include/netinet/icmp_var.h: Changed icmpstat definition to a declaration so stopping ld from generating a multiple symbol definition error if combining of common symbols is disabled in the toolchain. * src/sys/netinet/ip_icmp.c: Added an icmpstat definition.
author asl
date Mon, 23 Jun 2003 10:17:28 +0000
parents 968041f10447
children e8b69d9c90a6
files packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/include/netinet/icmp_var.h packages/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c
diffstat 3 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog
+++ b/packages/net/bsd_tcpip/current/ChangeLog
@@ -1,3 +1,11 @@
+2003-06-23  Michael Checky  <Michael_Checky@ThermoKing.com>
+ 
+	* include/netinet/icmp_var.h: Changed icmpstat definition to a
+	declaration so stopping ld from generating a multiple symbol
+	definition error if combining of common symbols is disabled in the
+	toolchain.
+	* src/sys/netinet/ip_icmp.c: Added an icmpstat definition.
+
 2003-06-23  Jay Foster  <jay@systech.com>
 
 	* src/ecos/support.c: Increase the stack size for the background
--- a/packages/net/bsd_tcpip/current/include/netinet/icmp_var.h
+++ b/packages/net/bsd_tcpip/current/include/netinet/icmp_var.h
@@ -92,7 +92,7 @@ extern int badport_bandlim __P((int));
 #define BANDLIM_MAX 4
 
 // Used by SNMP
-struct icmpstat icmpstat;
+extern struct icmpstat icmpstat;
 
 #endif
 
--- a/packages/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c
+++ b/packages/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c
@@ -83,6 +83,7 @@
  * host table maintenance routines.
  */
 
+struct icmpstat icmpstat;
 static int	icmpmaskrepl = 0;
 static int	drop_redirect = 0;
 static int	log_redirect = 0;