+* [Bug 2561] Allow wildcards in the target of the "interface" command.
(4.2.7p422) 2014/02/17 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2536] ntpd sandboxing support (libseccomp2).
(4.2.7p421) 2014/02/10 Released by Harlan Stenn <stenn@ntp.org>
[Use Rendezvous/DNS-SD registration])]
)]
)
-AC_CHECK_HEADERS([fcntl.h ieeefp.h inttypes.h kvm.h math.h])
+AC_CHECK_HEADERS([fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h])
AC_CHECK_HEADERS([memory.h netdb.h poll.h])
AC_CHECK_HEADERS([sgtty.h stdlib.h string.h termio.h])
)]
)
-AC_CHECK_FUNCS([getbootfile getuid getrusage nanosleep strsignal])
+AC_CHECK_FUNCS([fnmatch getbootfile getuid getrusage nanosleep strsignal])
# kvm_open() is only used by tickadj. Also see above.
case "$ac_cv_header_kvm_h" in
#include <stdio.h>
#include <signal.h>
+#ifdef HAVE_FNMATCH_H
+# include <fnmatch.h>
+#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
case MATCH_IFNAME:
if (if_name != NULL
- && !strcasecmp(if_name, rule->if_name)) {
+#ifdef HAVE_FNMATCH
+ && !fnmatch(rule->if_name, if_name, FNM_CASEFOLD)
+#else
+ && !strcasecmp(if_name, rule->if_name)
+#endif
+ ) {
DPRINTF(4, ("interface name match - %s\n",
action_text(rule->action)));