- (config.h.in, configure, configure.in, agent/agent_read_config.c,
agent/snmpd.c):
- uid/gid changes.
git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@4715 06827809-a52a-0410-b366-d66718629ded
diff --git a/agent/agent_read_config.c b/agent/agent_read_config.c
index 8a4d043..e6162d0 100644
--- a/agent/agent_read_config.c
+++ b/agent/agent_read_config.c
@@ -78,8 +78,15 @@
#include <dmalloc.h>
#endif
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_PWD_H
#include <pwd.h>
+#endif
+#ifdef HAVE_GRP_H
#include <grp.h>
+#endif
#include "mibincl.h"
#include "snmpusm.h"
@@ -101,31 +108,39 @@
char dontReadConfigFiles;
char *optconfigfile;
+#ifdef HAVE_UNISTD_H
void snmpd_set_agent_user(const char *token, char *cptr)
{
+#if defined(HAVE_GETPWNAM) && defined(HAVE_PWD_H)
struct passwd *info;
+#endif
if (cptr[0] == '#')
ds_set_int(DS_APPLICATION_ID, DS_AGENT_USERID, atoi(&cptr[1]));
+#ifdef if defined(HAVE_GETPWNAM) && defined(HAVE_PWD_H)
if ((info = getpwnam(cptr)) != NULL) {
ds_set_int(DS_APPLICATION_ID, DS_AGENT_USERID, info->pw_uid);
}
+#endif
}
-
void snmpd_set_agent_group(const char *token, char *cptr)
{
+#if defined(HAVE_GETGRNAM) && defined(HAVE_GRP_H)
struct group *info;
-
+#endif
+
if (cptr[0] == '#')
ds_set_int(DS_APPLICATION_ID, DS_AGENT_GROUPID, atoi(&cptr[1]));
+#if defined(HAVE_GETGRNAM) && defined(HAVE_GRP_H)
if ((info = getgrnam(cptr)) != NULL) {
ds_set_int(DS_APPLICATION_ID, DS_AGENT_GROUPID, info->gr_gid);
}
+#endif
}
-
+#endif
void snmpd_set_agent_address(const char *token, char *cptr)
{
@@ -173,12 +188,14 @@
snmpd_parse_config_trapcommunity,
snmpd_free_trapcommunity,
"community-string");
+#ifdef HAVE_UNISTD_H
register_app_config_handler("agentuser",
snmpd_set_agent_user, NULL,
"userid");
register_app_config_handler("agentgroup",
snmpd_set_agent_group, NULL,
"groupid");
+#endif
register_app_config_handler("agentaddress",
snmpd_set_agent_address, NULL,
"SNMP bind address");
diff --git a/agent/snmpd.c b/agent/snmpd.c
index 9fd1c72..cf965f1 100644
--- a/agent/snmpd.c
+++ b/agent/snmpd.c
@@ -611,6 +611,7 @@
send_easy_trap (0, 0);
#if HAVE_UNISTD_H
+#ifdef HAVE_SETGID
if ((gid = ds_get_int(DS_APPLICATION_ID, DS_AGENT_GROUPID)) != 0) {
DEBUGMSGTL(("snmpd", "Changing gid to %d.\n", gid));
if (setgid(gid)==-1) {
@@ -619,6 +620,8 @@
exit(1);
}
}
+#endif
+#ifdef HAVE_SETUID
if ((uid = ds_get_int(DS_APPLICATION_ID, DS_AGENT_USERID)) != 0) {
DEBUGMSGTL(("snmpd", "Changing uid to %d.\n", uid));
if(setuid(uid)==-1) {
@@ -628,6 +631,7 @@
}
}
#endif
+#endif
/* honor selection of standard error output */
if (!stderr_log)
diff --git a/config.h.in b/config.h.in
index f0c470e..96bb773 100644
--- a/config.h.in
+++ b/config.h.in
@@ -217,6 +217,9 @@
/* Define if you have the getfsstat function. */
#undef HAVE_GETFSSTAT
+/* Define if you have the getgrnam function. */
+#undef HAVE_GETGRNAM
+
/* Define if you have the gethostname function. */
#undef HAVE_GETHOSTNAME
@@ -229,6 +232,9 @@
/* Define if you have the getpid function. */
#undef HAVE_GETPID
+/* Define if you have the getpwnam function. */
+#undef HAVE_GETPWNAM
+
/* Define if you have the gettimeofday function. */
#undef HAVE_GETTIMEOFDAY
@@ -283,12 +289,18 @@
/* Define if you have the setenv function. */
#undef HAVE_SETENV
+/* Define if you have the setgid function. */
+#undef HAVE_SETGID
+
/* Define if you have the setlocale function. */
#undef HAVE_SETLOCALE
/* Define if you have the setmntent function. */
#undef HAVE_SETMNTENT
+/* Define if you have the setuid function. */
+#undef HAVE_SETUID
+
/* Define if you have the sigaction function. */
#undef HAVE_SIGACTION
@@ -379,6 +391,9 @@
/* Define if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
+/* Define if you have the <grp.h> header file. */
+#undef HAVE_GRP_H
+
/* Define if you have the <inet/mib2.h> header file. */
#undef HAVE_INET_MIB2_H
@@ -532,6 +547,9 @@
/* Define if you have the <pthread.h> header file. */
#undef HAVE_PTHREAD_H
+/* Define if you have the <pwd.h> header file. */
+#undef HAVE_PWD_H
+
/* Define if you have the <regex.h> header file. */
#undef HAVE_REGEX_H
diff --git a/configure b/configure
index 833ca9e..c66509c 100755
--- a/configure
+++ b/configure
@@ -4924,7 +4924,7 @@
fi
-for ac_hdr in stdarg.h string.h fcntl.h limits.h sys/file.h sys/ioctl.h syslog.h unistd.h netinet/tcpip.h netinet/in.h netinet/ip.h net/if.h netdb.h sys/dmap.h machine/pte.h xti.h sys/sockio.h sys/socket.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h ufs/ffs/fs.h sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h sys/vmparam.h sys/vmmac.h sys/vmsystm.h sys/mbuf.h sys/time.h sys/swap.h inet/mib2.h sys/statvfs.h sys/vfs.h sys/mnttab.h sys/user.h sys/proc.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h pthread.h sys/loadavg.h regex.h
+for ac_hdr in stdarg.h string.h fcntl.h limits.h sys/file.h sys/ioctl.h syslog.h unistd.h netinet/tcpip.h netinet/in.h netinet/ip.h net/if.h netdb.h sys/dmap.h machine/pte.h xti.h sys/sockio.h sys/socket.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h ufs/ffs/fs.h sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h sys/vmparam.h sys/vmmac.h sys/vmsystm.h sys/mbuf.h sys/time.h sys/swap.h inet/mib2.h sys/statvfs.h sys/vfs.h sys/mnttab.h sys/user.h sys/proc.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h pthread.h sys/loadavg.h regex.h pwd.h grp.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -7629,14 +7629,69 @@
fi
done
+for ac_func in getpwnam getgrnam setgid setuid
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:7636: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 7641 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+$ac_func();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
echo $ac_n "checking for SIOCGIFADDR in sys/ioctl.h""... $ac_c" 1>&6
-echo "configure:7635: checking for SIOCGIFADDR in sys/ioctl.h" >&5
+echo "configure:7690: checking for SIOCGIFADDR in sys/ioctl.h" >&5
if eval "test \"`echo '$''{'cv_sys_ioctl_h_has_SIOCGIFADDR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7640 "configure"
+#line 7695 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_IOCTL_H
@@ -7669,7 +7724,7 @@
# ultrix
echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
-echo "configure:7673: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
+echo "configure:7728: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7677,7 +7732,7 @@
fu_cv_sys_stat_fs_data=no
else
cat > conftest.$ac_ext <<EOF
-#line 7681 "configure"
+#line 7736 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_PARAM_H
@@ -7698,7 +7753,7 @@
exit (statfs (".", &fsd) != 1);
}
EOF
-if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:7757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
fu_cv_sys_stat_fs_data=yes
else
@@ -7721,13 +7776,13 @@
fi
echo $ac_n "checking if __FUNCTION__ is defined""... $ac_c" 1>&6
-echo "configure:7725: checking if __FUNCTION__ is defined" >&5
+echo "configure:7780: checking if __FUNCTION__ is defined" >&5
if eval "test \"`echo '$''{'ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7731 "configure"
+#line 7786 "configure"
#include "confdefs.h"
int main() {
@@ -7736,7 +7791,7 @@
; return 0; }
EOF
-if { (eval echo configure:7740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=yes
else
@@ -7765,7 +7820,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for sigaction.sa_sigaction""... $ac_c" 1>&6
-echo "configure:7769: checking for sigaction.sa_sigaction" >&5
+echo "configure:7824: checking for sigaction.sa_sigaction" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7778,7 +7833,7 @@
defineit="no"
fi
cat > conftest.$ac_ext <<EOF
-#line 7782 "configure"
+#line 7837 "configure"
#include "confdefs.h"
@@ -7796,7 +7851,7 @@
; return 0; }
EOF
-if { (eval echo configure:7800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -7830,7 +7885,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for sockaddr.sa_len""... $ac_c" 1>&6
-echo "configure:7834: checking for sockaddr.sa_len" >&5
+echo "configure:7889: checking for sockaddr.sa_len" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7843,7 +7898,7 @@
defineit="no"
fi
cat > conftest.$ac_ext <<EOF
-#line 7847 "configure"
+#line 7902 "configure"
#include "confdefs.h"
@@ -7865,7 +7920,7 @@
; return 0; }
EOF
-if { (eval echo configure:7869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -7899,7 +7954,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for sockaddr.sa_union.sa_generic.sa_family2""... $ac_c" 1>&6
-echo "configure:7903: checking for sockaddr.sa_union.sa_generic.sa_family2" >&5
+echo "configure:7958: checking for sockaddr.sa_union.sa_generic.sa_family2" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7912,7 +7967,7 @@
defineit="no"
fi
cat > conftest.$ac_ext <<EOF
-#line 7916 "configure"
+#line 7971 "configure"
#include "confdefs.h"
@@ -7934,7 +7989,7 @@
; return 0; }
EOF
-if { (eval echo configure:7938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -7968,7 +8023,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for rtentry.rt_dst""... $ac_c" 1>&6
-echo "configure:7972: checking for rtentry.rt_dst" >&5
+echo "configure:8027: checking for rtentry.rt_dst" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7981,7 +8036,7 @@
defineit="no"
fi
cat > conftest.$ac_ext <<EOF
-#line 7985 "configure"
+#line 8040 "configure"
#include "confdefs.h"
@@ -8004,7 +8059,7 @@
; return 0; }
EOF
-if { (eval echo configure:8008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8031,14 +8086,14 @@
echo $ac_n "checking type of rtentry structure""... $ac_c" 1>&6
-echo "configure:8035: checking type of rtentry structure" >&5
+echo "configure:8090: checking type of rtentry structure" >&5
if eval "test \"`echo '$''{'ac_cv_RTENTRY_TYPE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8042 "configure"
+#line 8097 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_PARAM_H
@@ -8065,7 +8120,7 @@
; return 0; }
EOF
-if { (eval echo configure:8069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_RTENTRY_TYPE="BSD-4.4"
else
@@ -8076,7 +8131,7 @@
if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
cat > conftest.$ac_ext <<EOF
-#line 8080 "configure"
+#line 8135 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_PARAM_H
@@ -8097,7 +8152,7 @@
; return 0; }
EOF
-if { (eval echo configure:8101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_RTENTRY_TYPE="BSD-4.3"
else
@@ -8126,12 +8181,12 @@
if test "x$ac_cv_RTENTRY_TYPE" = "xunknown"; then
echo $ac_n "checking for struct rtentry""... $ac_c" 1>&6
-echo "configure:8130: checking for struct rtentry" >&5
+echo "configure:8185: checking for struct rtentry" >&5
if eval "test \"`echo '$''{'ac_cv_struct_rtentry'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8135 "configure"
+#line 8190 "configure"
#include "confdefs.h"
#define KERNEL
#include <net/route.h>
@@ -8175,13 +8230,13 @@
if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.3"; then
echo $ac_n "checking for struct rtentry has a rt_next node""... $ac_c" 1>&6
-echo "configure:8179: checking for struct rtentry has a rt_next node" >&5
+echo "configure:8234: checking for struct rtentry has a rt_next node" >&5
if eval "test \"`echo '$''{'ac_cv_struct_rtentry_rt_next'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8185 "configure"
+#line 8240 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_PARAM_H
@@ -8202,7 +8257,7 @@
; return 0; }
EOF
-if { (eval echo configure:8206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_struct_rtentry_rt_next=yes
else
@@ -8234,7 +8289,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for rtentry.rt_unit""... $ac_c" 1>&6
-echo "configure:8238: checking for rtentry.rt_unit" >&5
+echo "configure:8293: checking for rtentry.rt_unit" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8247,7 +8302,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8251 "configure"
+#line 8306 "configure"
#include "confdefs.h"
@@ -8270,7 +8325,7 @@
; return 0; }
EOF
-if { (eval echo configure:8274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8304,7 +8359,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for rtentry.rt_refcnt""... $ac_c" 1>&6
-echo "configure:8308: checking for rtentry.rt_refcnt" >&5
+echo "configure:8363: checking for rtentry.rt_refcnt" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8317,7 +8372,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8321 "configure"
+#line 8376 "configure"
#include "confdefs.h"
@@ -8340,7 +8395,7 @@
; return 0; }
EOF
-if { (eval echo configure:8344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8374,7 +8429,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for rtentry.rt_hash""... $ac_c" 1>&6
-echo "configure:8378: checking for rtentry.rt_hash" >&5
+echo "configure:8433: checking for rtentry.rt_hash" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8387,7 +8442,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8391 "configure"
+#line 8446 "configure"
#include "confdefs.h"
@@ -8410,7 +8465,7 @@
; return 0; }
EOF
-if { (eval echo configure:8414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8444,7 +8499,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for rtentry.rt_use""... $ac_c" 1>&6
-echo "configure:8448: checking for rtentry.rt_use" >&5
+echo "configure:8503: checking for rtentry.rt_use" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8457,7 +8512,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8461 "configure"
+#line 8516 "configure"
#include "confdefs.h"
@@ -8480,7 +8535,7 @@
; return 0; }
EOF
-if { (eval echo configure:8484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8514,7 +8569,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for tcpstat.tcp_rcvmemdrop""... $ac_c" 1>&6
-echo "configure:8518: checking for tcpstat.tcp_rcvmemdrop" >&5
+echo "configure:8573: checking for tcpstat.tcp_rcvmemdrop" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8527,7 +8582,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8531 "configure"
+#line 8586 "configure"
#include "confdefs.h"
@@ -8552,7 +8607,7 @@
; return 0; }
EOF
-if { (eval echo configure:8556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8587,7 +8642,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_mtu""... $ac_c" 1>&6
-echo "configure:8591: checking for ifnet.if_mtu" >&5
+echo "configure:8646: checking for ifnet.if_mtu" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8600,7 +8655,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8604 "configure"
+#line 8659 "configure"
#include "confdefs.h"
@@ -8622,7 +8677,7 @@
; return 0; }
EOF
-if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8650,7 +8705,7 @@
if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xno"; then
echo $ac_n "checking if _KERNEL needs to be defined for if_mtu""... $ac_c" 1>&6
-echo "configure:8654: checking if _KERNEL needs to be defined for if_mtu" >&5
+echo "configure:8709: checking if _KERNEL needs to be defined for if_mtu" >&5
if eval "test \"`echo '$''{'ac_cv_IFNET_NEEDS_KERNEL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8659,7 +8714,7 @@
ac_cv_IFNET_NEEDS_KERNEL=no
else
cat > conftest.$ac_ext <<EOF
-#line 8663 "configure"
+#line 8718 "configure"
#include "confdefs.h"
#define _KERNEL 1
@@ -8683,7 +8738,7 @@
; return 0; }
EOF
-if { (eval echo configure:8687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_IFNET_NEEDS_KERNEL=yes
else
@@ -8715,7 +8770,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifaddr.ifa_next""... $ac_c" 1>&6
-echo "configure:8719: checking for ifaddr.ifa_next" >&5
+echo "configure:8774: checking for ifaddr.ifa_next" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8728,7 +8783,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8732 "configure"
+#line 8787 "configure"
#include "confdefs.h"
@@ -8756,7 +8811,7 @@
; return 0; }
EOF
-if { (eval echo configure:8760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8791,7 +8846,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_baudrate""... $ac_c" 1>&6
-echo "configure:8795: checking for ifnet.if_baudrate" >&5
+echo "configure:8850: checking for ifnet.if_baudrate" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8804,7 +8859,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8808 "configure"
+#line 8863 "configure"
#include "confdefs.h"
@@ -8863,7 +8918,7 @@
; return 0; }
EOF
-if { (eval echo configure:8867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -8898,7 +8953,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_baudrate.ifs_value""... $ac_c" 1>&6
-echo "configure:8902: checking for ifnet.if_baudrate.ifs_value" >&5
+echo "configure:8957: checking for ifnet.if_baudrate.ifs_value" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8911,7 +8966,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 8915 "configure"
+#line 8970 "configure"
#include "confdefs.h"
@@ -8970,7 +9025,7 @@
; return 0; }
EOF
-if { (eval echo configure:8974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9005,7 +9060,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_speed""... $ac_c" 1>&6
-echo "configure:9009: checking for ifnet.if_speed" >&5
+echo "configure:9064: checking for ifnet.if_speed" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9018,7 +9073,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9022 "configure"
+#line 9077 "configure"
#include "confdefs.h"
@@ -9077,7 +9132,7 @@
; return 0; }
EOF
-if { (eval echo configure:9081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9112,7 +9167,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_type""... $ac_c" 1>&6
-echo "configure:9116: checking for ifnet.if_type" >&5
+echo "configure:9171: checking for ifnet.if_type" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9125,7 +9180,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9129 "configure"
+#line 9184 "configure"
#include "confdefs.h"
@@ -9184,7 +9239,7 @@
; return 0; }
EOF
-if { (eval echo configure:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9219,7 +9274,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_imcasts""... $ac_c" 1>&6
-echo "configure:9223: checking for ifnet.if_imcasts" >&5
+echo "configure:9278: checking for ifnet.if_imcasts" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9232,7 +9287,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9236 "configure"
+#line 9291 "configure"
#include "confdefs.h"
@@ -9291,7 +9346,7 @@
; return 0; }
EOF
-if { (eval echo configure:9295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9326,7 +9381,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_iqdrops""... $ac_c" 1>&6
-echo "configure:9330: checking for ifnet.if_iqdrops" >&5
+echo "configure:9385: checking for ifnet.if_iqdrops" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9339,7 +9394,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9343 "configure"
+#line 9398 "configure"
#include "confdefs.h"
@@ -9398,7 +9453,7 @@
; return 0; }
EOF
-if { (eval echo configure:9402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9433,7 +9488,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_noproto""... $ac_c" 1>&6
-echo "configure:9437: checking for ifnet.if_noproto" >&5
+echo "configure:9492: checking for ifnet.if_noproto" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9446,7 +9501,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9450 "configure"
+#line 9505 "configure"
#include "confdefs.h"
@@ -9505,7 +9560,7 @@
; return 0; }
EOF
-if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9540,7 +9595,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_omcasts""... $ac_c" 1>&6
-echo "configure:9544: checking for ifnet.if_omcasts" >&5
+echo "configure:9599: checking for ifnet.if_omcasts" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9553,7 +9608,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9557 "configure"
+#line 9612 "configure"
#include "confdefs.h"
@@ -9612,7 +9667,7 @@
; return 0; }
EOF
-if { (eval echo configure:9616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9647,7 +9702,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_xname""... $ac_c" 1>&6
-echo "configure:9651: checking for ifnet.if_xname" >&5
+echo "configure:9706: checking for ifnet.if_xname" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9660,7 +9715,7 @@
defineit="no"
fi
cat > conftest.$ac_ext <<EOF
-#line 9664 "configure"
+#line 9719 "configure"
#include "confdefs.h"
@@ -9719,7 +9774,7 @@
; return 0; }
EOF
-if { (eval echo configure:9723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9754,7 +9809,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_lastchange.tv_sec""... $ac_c" 1>&6
-echo "configure:9758: checking for ifnet.if_lastchange.tv_sec" >&5
+echo "configure:9813: checking for ifnet.if_lastchange.tv_sec" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9767,7 +9822,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9771 "configure"
+#line 9826 "configure"
#include "confdefs.h"
@@ -9826,7 +9881,7 @@
; return 0; }
EOF
-if { (eval echo configure:9830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9861,7 +9916,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_obytes""... $ac_c" 1>&6
-echo "configure:9865: checking for ifnet.if_obytes" >&5
+echo "configure:9920: checking for ifnet.if_obytes" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9874,7 +9929,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9878 "configure"
+#line 9933 "configure"
#include "confdefs.h"
@@ -9933,7 +9988,7 @@
; return 0; }
EOF
-if { (eval echo configure:9937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -9968,7 +10023,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_ibytes""... $ac_c" 1>&6
-echo "configure:9972: checking for ifnet.if_ibytes" >&5
+echo "configure:10027: checking for ifnet.if_ibytes" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9981,7 +10036,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 9985 "configure"
+#line 10040 "configure"
#include "confdefs.h"
@@ -10040,7 +10095,7 @@
; return 0; }
EOF
-if { (eval echo configure:10044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10075,7 +10130,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_addrlist""... $ac_c" 1>&6
-echo "configure:10079: checking for ifnet.if_addrlist" >&5
+echo "configure:10134: checking for ifnet.if_addrlist" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10088,7 +10143,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10092 "configure"
+#line 10147 "configure"
#include "confdefs.h"
@@ -10147,7 +10202,7 @@
; return 0; }
EOF
-if { (eval echo configure:10151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10182,7 +10237,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for ifnet.if_addrhead.tqh_first""... $ac_c" 1>&6
-echo "configure:10186: checking for ifnet.if_addrhead.tqh_first" >&5
+echo "configure:10241: checking for ifnet.if_addrhead.tqh_first" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10195,7 +10250,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10199 "configure"
+#line 10254 "configure"
#include "confdefs.h"
@@ -10254,7 +10309,7 @@
; return 0; }
EOF
-if { (eval echo configure:10258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10289,7 +10344,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for udpstat.udps_discard""... $ac_c" 1>&6
-echo "configure:10293: checking for udpstat.udps_discard" >&5
+echo "configure:10348: checking for udpstat.udps_discard" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10302,7 +10357,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10306 "configure"
+#line 10361 "configure"
#include "confdefs.h"
@@ -10330,7 +10385,7 @@
; return 0; }
EOF
-if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10364,7 +10419,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for udpstat.udps_noport""... $ac_c" 1>&6
-echo "configure:10368: checking for udpstat.udps_noport" >&5
+echo "configure:10423: checking for udpstat.udps_noport" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10377,7 +10432,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10381 "configure"
+#line 10436 "configure"
#include "confdefs.h"
@@ -10405,7 +10460,7 @@
; return 0; }
EOF
-if { (eval echo configure:10409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10439,7 +10494,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for udpstat.udps_noportbcast""... $ac_c" 1>&6
-echo "configure:10443: checking for udpstat.udps_noportbcast" >&5
+echo "configure:10498: checking for udpstat.udps_noportbcast" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10452,7 +10507,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10456 "configure"
+#line 10511 "configure"
#include "confdefs.h"
@@ -10480,7 +10535,7 @@
; return 0; }
EOF
-if { (eval echo configure:10484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10514,7 +10569,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for udpstat.udps_fullsock""... $ac_c" 1>&6
-echo "configure:10518: checking for udpstat.udps_fullsock" >&5
+echo "configure:10573: checking for udpstat.udps_fullsock" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10527,7 +10582,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10531 "configure"
+#line 10586 "configure"
#include "confdefs.h"
@@ -10555,7 +10610,7 @@
; return 0; }
EOF
-if { (eval echo configure:10559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10589,7 +10644,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for arphd.at_next""... $ac_c" 1>&6
-echo "configure:10593: checking for arphd.at_next" >&5
+echo "configure:10648: checking for arphd.at_next" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10602,7 +10657,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10606 "configure"
+#line 10661 "configure"
#include "confdefs.h"
@@ -10630,7 +10685,7 @@
; return 0; }
EOF
-if { (eval echo configure:10634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10664,7 +10719,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for swdevt.sw_nblksenabled""... $ac_c" 1>&6
-echo "configure:10668: checking for swdevt.sw_nblksenabled" >&5
+echo "configure:10723: checking for swdevt.sw_nblksenabled" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10677,7 +10732,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10681 "configure"
+#line 10736 "configure"
#include "confdefs.h"
@@ -10693,7 +10748,7 @@
; return 0; }
EOF
-if { (eval echo configure:10697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10727,7 +10782,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for statvfs.f_frsize""... $ac_c" 1>&6
-echo "configure:10731: checking for statvfs.f_frsize" >&5
+echo "configure:10786: checking for statvfs.f_frsize" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10740,7 +10795,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10744 "configure"
+#line 10799 "configure"
#include "confdefs.h"
@@ -10762,7 +10817,7 @@
; return 0; }
EOF
-if { (eval echo configure:10766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10796,7 +10851,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for statvfs.f_files""... $ac_c" 1>&6
-echo "configure:10800: checking for statvfs.f_files" >&5
+echo "configure:10855: checking for statvfs.f_files" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10809,7 +10864,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10813 "configure"
+#line 10868 "configure"
#include "confdefs.h"
@@ -10831,7 +10886,7 @@
; return 0; }
EOF
-if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10865,7 +10920,7 @@
ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
echo $ac_n "checking for nlist.n_value""... $ac_c" 1>&6
-echo "configure:10869: checking for nlist.n_value" >&5
+echo "configure:10924: checking for nlist.n_value" >&5
if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10878,7 +10933,7 @@
defineit=""
fi
cat > conftest.$ac_ext <<EOF
-#line 10882 "configure"
+#line 10937 "configure"
#include "confdefs.h"
@@ -10894,7 +10949,7 @@
; return 0; }
EOF
-if { (eval echo configure:10898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "${ac_safe_all}=yes"
else
@@ -10922,7 +10977,7 @@
echo $ac_n "checking if sysctl can read kernel information""... $ac_c" 1>&6
-echo "configure:10926: checking if sysctl can read kernel information" >&5
+echo "configure:10981: checking if sysctl can read kernel information" >&5
if eval "test \"`echo '$''{'ac_cv_CAN_USE_SYSCTL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10930,7 +10985,7 @@
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
-#line 10934 "configure"
+#line 10989 "configure"
#include "confdefs.h"
#if TIME_WITH_SYS_TIME
@@ -10968,7 +11023,7 @@
}
EOF
-if { (eval echo configure:10972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_CAN_USE_SYSCTL=yes
else
@@ -10992,12 +11047,12 @@
fi
echo $ac_n "checking whether TCP timers depend on \`hz'""... $ac_c" 1>&6
-echo "configure:10996: checking whether TCP timers depend on \`hz'" >&5
+echo "configure:11051: checking whether TCP timers depend on \`hz'" >&5
if eval "test \"`echo '$''{'ac_cv_TCPTV_NEEDS_HZ'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 11001 "configure"
+#line 11056 "configure"
#include "confdefs.h"
#include <netinet/tcp_timer.h>
TCPTV_SRTTDFLT
@@ -11027,7 +11082,7 @@
if test "x$ac_cv_user_prompt_LOGFILE" = "x" -o "x$ac_cv_user_prompt_SYS_LOC" = "x" -o "x$ac_cv_user_prompt_SYS_CONTACT" = "x"; then
echo $ac_n "checking if you have run configure before""... $ac_c" 1>&6
-echo "configure:11031: checking if you have run configure before" >&5
+echo "configure:11086: checking if you have run configure before" >&5
if eval "test \"`echo '$''{'ac_cv_have_warned'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -11082,7 +11137,7 @@
System Contact Information" | tail -1`
echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
-echo "configure:11086: checking $MSG_CHECK" >&5
+echo "configure:11141: checking $MSG_CHECK" >&5
if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_CONTACT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -11142,7 +11197,7 @@
System Location" | tail -1`
echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
-echo "configure:11146: checking $MSG_CHECK" >&5
+echo "configure:11201: checking $MSG_CHECK" >&5
if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_LOC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -11208,7 +11263,7 @@
Location to write logfile" | tail -1`
echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
-echo "configure:11212: checking $MSG_CHECK" >&5
+echo "configure:11267: checking $MSG_CHECK" >&5
if eval "test \"`echo '$''{'ac_cv_user_prompt_LOGFILE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -11273,7 +11328,7 @@
Location to write persistent information" | tail -1`
echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
-echo "configure:11277: checking $MSG_CHECK" >&5
+echo "configure:11332: checking $MSG_CHECK" >&5
if eval "test \"`echo '$''{'ac_cv_user_prompt_PERSISTENT_DIRECTORY'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
diff --git a/configure.in b/configure.in
index 40b6f05..cfa147b 100644
--- a/configure.in
+++ b/configure.in
@@ -1020,7 +1020,7 @@
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(stdarg.h string.h fcntl.h limits.h sys/file.h sys/ioctl.h syslog.h unistd.h netinet/tcpip.h netinet/in.h netinet/ip.h net/if.h netdb.h sys/dmap.h machine/pte.h xti.h sys/sockio.h sys/socket.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h ufs/ffs/fs.h sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h sys/vmparam.h sys/vmmac.h sys/vmsystm.h sys/mbuf.h sys/time.h sys/swap.h inet/mib2.h sys/statvfs.h sys/vfs.h sys/mnttab.h sys/user.h sys/proc.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h pthread.h sys/loadavg.h regex.h)
+AC_CHECK_HEADERS(stdarg.h string.h fcntl.h limits.h sys/file.h sys/ioctl.h syslog.h unistd.h netinet/tcpip.h netinet/in.h netinet/ip.h net/if.h netdb.h sys/dmap.h machine/pte.h xti.h sys/sockio.h sys/socket.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h ufs/ffs/fs.h sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h sys/vmparam.h sys/vmmac.h sys/vmsystm.h sys/mbuf.h sys/time.h sys/swap.h inet/mib2.h sys/statvfs.h sys/vfs.h sys/mnttab.h sys/user.h sys/proc.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h pthread.h sys/loadavg.h regex.h pwd.h grp.h)
dnl FreeBSD required headers
AC_CHECK_HEADERS(malloc.h sys/param.h net/if_dl.h sys/sysctl.h stdlib.h net/if_mib.h net/if_types.h net/if_var.h sys/queue.h osreldate.h sys/disklabel.h machine/types.h sys/socketvar.h)
dnl Linux
@@ -1175,6 +1175,7 @@
dnl DYNAMIC MODULE SUPPORT
AC_CHECK_FUNCS(dlopen)
AC_CHECK_FUNCS(mkstemp)
+AC_CHECK_FUNCS(getpwnam getgrnam setgid setuid)
AC_MSG_CHECKING([for SIOCGIFADDR in sys/ioctl.h])
AC_CACHE_VAL(cv_sys_ioctl_h_has_SIOCGIFADDR,