diff --git a/external/bsd/ntp/dist/include/ntp_config.h b/external/bsd/ntp/dist/include/ntp_config.h index 19bf6d681648..7859f042b27c 100644 --- a/external/bsd/ntp/dist/include/ntp_config.h +++ b/external/bsd/ntp/dist/include/ntp_config.h @@ -1,4 +1,4 @@ -/* $NetBSD: ntp_config.h,v 1.4 2013/12/28 03:20:13 christos Exp $ */ +/* $NetBSD: ntp_config.h,v 1.5 2013/12/30 17:42:19 christos Exp $ */ #ifndef NTP_CONFIG_H #define NTP_CONFIG_H @@ -241,6 +241,7 @@ struct config_tree_tag { int_fifo * reset_counters; sim_fifo * sim_details; + int mdnstries; }; diff --git a/external/bsd/ntp/dist/ntpd/ntp_config.c b/external/bsd/ntp/dist/ntpd/ntp_config.c index 45eca1db7503..d54b04b2ba16 100644 --- a/external/bsd/ntp/dist/ntpd/ntp_config.c +++ b/external/bsd/ntp/dist/ntpd/ntp_config.c @@ -1,4 +1,4 @@ -/* $NetBSD: ntp_config.c,v 1.7 2013/12/30 01:34:22 christos Exp $ */ +/* $NetBSD: ntp_config.c,v 1.8 2013/12/30 17:42:19 christos Exp $ */ /* ntp_config.c * @@ -316,6 +316,7 @@ static void config_ntpd(config_tree *); static void config_other_modes(config_tree *); static void config_auth(config_tree *); static void config_access(config_tree *); +static void config_mdnstries(config_tree *); static void config_phone(config_tree *); static void config_setvar(config_tree *); static void config_ttl(config_tree *); @@ -393,6 +394,7 @@ init_syntax_tree( ) { ZERO(*ptree); + ptree->mdnstries = 5; } @@ -3040,6 +3042,16 @@ config_phone( } #endif /* !SIM */ +static void +config_mdnstries( + config_tree *ptree + ) +{ +#ifdef HAVE_DNSREGISTRATION + extern int mdnstries; + mdnstries = ptree->mdnstries; +#endif /* HAVE_DNSREGISTRATION */ +} #ifdef FREE_CFG_T static void @@ -4268,6 +4280,7 @@ config_ntpd( config_system_opts(ptree); config_logconfig(ptree); config_phone(ptree); + config_mdnstries(ptree); config_setvar(ptree); config_ttl(ptree); config_trap(ptree); diff --git a/external/bsd/ntp/dist/ntpd/ntp_parser.y b/external/bsd/ntp/dist/ntpd/ntp_parser.y index 2bf159f663bd..c76f43488ba4 100644 --- a/external/bsd/ntp/dist/ntpd/ntp_parser.y +++ b/external/bsd/ntp/dist/ntpd/ntp_parser.y @@ -1,4 +1,4 @@ -/* $NetBSD: ntp_parser.y,v 1.6 2013/12/28 03:20:14 christos Exp $ */ +/* $NetBSD: ntp_parser.y,v 1.7 2013/12/30 17:42:19 christos Exp $ */ /* ntp_parser.y * @@ -156,6 +156,7 @@ %token T_Maxdist %token T_Maxmem %token T_Maxpoll +%token T_Mdnstries %token T_Mem %token T_Memlock %token T_Minclock @@ -523,6 +524,8 @@ other_mode_command { CONCAT_G_FIFOS(cfgt.manycastserver, $2); } | T_Multicastclient address_list { CONCAT_G_FIFOS(cfgt.multicastclient, $2); } + | T_Mdnstries T_Integer + { cfgt.mdnstries = $2; } ;