From fcd399814fed9ddecfe6aed60b8034ffc0f7977b Mon Sep 17 00:00:00 2001 From: henning <> Date: Thu, 1 Mar 2007 17:50:42 +0000 Subject: [PATCH] read buffer size must be >= max imsg size. after release we should revisit this issue, we can probably safely shrink the max imsg size. Valentin Kozamernik in PR5401 --- src/usr.sbin/ntpd/ntpd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/ntpd.h b/src/usr.sbin/ntpd/ntpd.h index ccfeb63b..a7d6fd5b 100644 --- a/src/usr.sbin/ntpd/ntpd.h +++ b/src/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.81 2007/01/15 08:19:11 otto Exp $ */ +/* $OpenBSD: ntpd.h,v 1.82 2007/03/01 17:50:42 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -34,7 +34,7 @@ #define CONFFILE "/etc/ntpd.conf" #define DRIFTFILE "/var/db/ntpd.drift" -#define READ_BUF_SIZE 4096 +#define READ_BUF_SIZE 8192 #define NTPD_OPT_VERBOSE 0x0001 #define NTPD_OPT_VERBOSE2 0x0002