forked from Lainports/freebsd-ports
* Fix runtime PHP errors if short_opentag is disabled (default) * Remove most PHP warnings/notices that go to error_log * Fix HTML output to be valid * Fix quoting of SQL objects * Fix escaping of user-provided SQL data (potential sql injection) * Widen fields in 95.php and 95.pl for interface and router names * Fix warnings in perl modules in newer perl versions * Fix createdb script to use CREATE USER/GRANT not manipulate user db directly * Add "Update_desc" config entry to auto-update port descriptions from snmp * Update default SNMP version to 2 PR: 227376 Submitted by: <freebsd-ports@dan.me.uk> (maintainer)
16 lines
416 B
C
16 lines
416 B
C
--- src/rtg.h.orig 2003-09-25 15:56:04 UTC
|
|
+++ src/rtg.h
|
|
@@ -40,11 +40,9 @@
|
|
#define DEFAULT_DB_DB "rtg"
|
|
#define DEFAULT_DB_USER "snmp"
|
|
#define DEFAULT_DB_PASS "rtgdefault"
|
|
-#define DEFAULT_SNMP_VER 1
|
|
+#define DEFAULT_SNMP_VER 2
|
|
#define DEFAULT_SNMP_PORT 161
|
|
-
|
|
-/* PID File */
|
|
-#define PIDFILE "/tmp/rtgpoll.pid"
|
|
+#define DEFAULT_PIDFILE "/tmp/rtgpoll.pid"
|
|
|
|
#define STAT_DESCRIP_ERROR 99
|
|
#define HASHSIZE 5000
|