#endif
struct interface *dstadr; /* interface datagram arrived thru */
SOCKET fd; /* fd on which it was received */
+ int msg_flags; /* Flags received about the packet */
l_fp recv_time; /* time of arrival */
void (*receiver) P((struct recvbuf *)); /* routine to receive buffer */
int recv_length; /* number of octets received */
static HANDLE hAppLog = NULL;
static FILE *log_stream;
static int debug_level = 0;
-static char *progname = "NTP";
+static char progname[51] = "NTP";
static int logmask = 0;
static struct dsn_c_pvt_sfnt {
openlog(const char *name, int flags, ...) {
/* Get a handle to the Application event log */
hAppLog = RegisterEventSource(NULL, progname);
+ strcpy(progname, name);
}
/*