diff -ur ucd-snmp-lvs-module-0.0.2-orig/agentxlvs.c ucd-snmp-lvs-module-0.0.2a/agentxlvs.c
--- ucd-snmp-lvs-module-0.0.2-orig/agentxlvs.c	2002-03-06 22:10:58.000000000 +0000
+++ ucd-snmp-lvs-module-0.0.2a/agentxlvs.c	2006-01-27 12:44:13.000000000 +0000
@@ -4,6 +4,9 @@
 #endif
 #include <ucd-snmp/ucd-snmp-includes.h>
 #include <ucd-snmp/ucd-snmp-agent-includes.h>
+#include <net-snmp/agent/ds_agent.h>
+#include <ucd-snmp/default_store.h>
+
 #include <signal.h>
 
 static int keep_running;
@@ -21,7 +24,7 @@
   /* we're an agentx subagent? */
   if (agentx_subagent) {
     /* make us a agentx client. */
-    ds_set_boolean(DS_APPLICATION_ID, DS_AGENT_ROLE, 1);
+    ds_set_boolean(DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 1);
   }
 
   init_agent("lvs");
@@ -31,7 +34,7 @@
   init_snmp("lvs");
 
   if (!agentx_subagent)
-    init_master_agent(161, NULL, NULL);  
+    init_master_agent();  
 
   keep_running = 1;
   signal(SIGTERM, stop_server);
diff -ur ucd-snmp-lvs-module-0.0.2-orig/CHANGELOG ucd-snmp-lvs-module-0.0.2a/CHANGELOG
--- ucd-snmp-lvs-module-0.0.2-orig/CHANGELOG	2002-03-07 00:20:26.000000000 +0000
+++ ucd-snmp-lvs-module-0.0.2a/CHANGELOG	2006-01-27 13:22:01.000000000 +0000
@@ -1,5 +1,23 @@
 CHANGELOG
 
+2006 January 27 
+
+0.0.2a
+
+- Small changes to make it compile under Red Hat Enterprise Linux ES release 4 (Nahant) 
+  by Mike Suszycki <mike@wizard.ae.krakow.pl>. I don't know what about backward compatibility.
+  It runs on RHES4 with following software version:
+
+ * libipvs from ipvsadm-1.24  
+	2 files are needed from libipvs:
+		/usr/include/ipvs/libipvs.h 
+		/usr/lib/libipvs.a
+ * kernel 2.6.14.1  (/usr/src/linux/include/net/ip_vs.h is needed)
+ * net-snmp-5.1.2-11.i386.rpm
+ * net-snmp-devel-5.1.2-11.i386.rpm
+ * net-snmp-libs-5.1.2-11.i386.rpm
+	       
+
 
 2001.11.02	0.0.1	
 
diff -ur ucd-snmp-lvs-module-0.0.2-orig/lvs.c ucd-snmp-lvs-module-0.0.2a/lvs.c
--- ucd-snmp-lvs-module-0.0.2-orig/lvs.c	2002-03-07 00:18:56.000000000 +0000
+++ ucd-snmp-lvs-module-0.0.2a/lvs.c	2006-01-27 13:44:06.000000000 +0000
@@ -21,7 +21,7 @@
 #include <ucd-snmp/ucd-snmp-config.h>
 #include <ucd-snmp/ucd-snmp-includes.h>
 #include <ucd-snmp/ucd-snmp-agent-includes.h>
-#include <ucd-snmp/util_funcs.h>
+#include <net-snmp/utilities.h>
 
 #endif /* !IN_UCD_SNMP_SOURCE */
 
@@ -218,7 +218,7 @@
 	return NULL;
   
   get = ipvs_get_services();
-  timeout = ipvs_get_timeouts();
+  timeout = ipvs_get_timeout();
   daemon = ipvs_get_daemon();
 
   /* 
@@ -329,7 +329,7 @@
 
   extern struct ip_vs_getinfo ipvs_info;
   struct ip_vs_get_services *get;
-  struct ip_vs_service_user *service;
+  struct ip_vs_service_entry *service;
   int index;  
   //long long int test = 4294967299; 	
 
@@ -548,7 +548,7 @@
 
   extern struct ip_vs_getinfo ipvs_info;
   struct ip_vs_get_services *get;
-  struct ip_vs_service_user *service;
+  struct ip_vs_service_entry *service;
   struct ip_vs_get_dests *dest;
   int index, i=0,j=0,result,br,service_nr,real_nr;  
   oid newname[MAX_OID_LEN];
@@ -690,7 +690,7 @@
 
 	  case LVSREALSERVERFORWARD:
 		  
-		  long_ret =  dest->entrytable[real_nr-1].flags & 71;
+		  long_ret =  dest->entrytable[real_nr-1].conn_flags & 71;
 		  free(dest);
 		  return (unsigned char *) &long_ret;
 
diff -ur ucd-snmp-lvs-module-0.0.2-orig/Makefile ucd-snmp-lvs-module-0.0.2a/Makefile
--- ucd-snmp-lvs-module-0.0.2-orig/Makefile	2002-03-07 00:21:11.000000000 +0000
+++ ucd-snmp-lvs-module-0.0.2a/Makefile	2006-01-27 13:11:00.000000000 +0000
@@ -28,4 +28,6 @@
 	rm lvs.so lvs.o agentxlvs
 
 agentx:	lvs
-	$(CC) $(CFLAGS) -L/usr/local/lib -o agentxlvs agentxlvs.c lvs.o -lucdagent -lucdmibs -lsnmp -lipvs -lcrypto
+	$(CC) $(CFLAGS) -L/usr/local/lib -o agentxlvs agentxlvs.c lvs.o -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lipvs -lcrypto -lnetsnmpmibs -lwrap -lsensors -lrpm-4.3
+	
+

