154359Sroberto/* 2182007Sroberto * /src/NTP/ntp4-dev/include/parse_conf.h,v 4.7 2005/06/25 10:58:45 kardel RELEASE_20050625_A 354359Sroberto * 4182007Sroberto * parse_conf.h,v 4.7 2005/06/25 10:58:45 kardel RELEASE_20050625_A 554359Sroberto * 6182007Sroberto * Copyright (c) 1995-2005 by Frank Kardel <kardel <AT> ntp.org> 7290000Sglebius * Copyright (c) 1989-1994 by Frank Kardel, Friedrich-Alexander Universitaet Erlangen-Nuernberg, Germany 854359Sroberto * 9182007Sroberto * Redistribution and use in source and binary forms, with or without 10182007Sroberto * modification, are permitted provided that the following conditions 11182007Sroberto * are met: 12182007Sroberto * 1. Redistributions of source code must retain the above copyright 13182007Sroberto * notice, this list of conditions and the following disclaimer. 14182007Sroberto * 2. Redistributions in binary form must reproduce the above copyright 15182007Sroberto * notice, this list of conditions and the following disclaimer in the 16182007Sroberto * documentation and/or other materials provided with the distribution. 17182007Sroberto * 3. Neither the name of the author nor the names of its contributors 18182007Sroberto * may be used to endorse or promote products derived from this software 19182007Sroberto * without specific prior written permission. 20182007Sroberto * 21182007Sroberto * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 22182007Sroberto * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23182007Sroberto * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24182007Sroberto * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 25182007Sroberto * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26182007Sroberto * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27182007Sroberto * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28182007Sroberto * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29182007Sroberto * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30182007Sroberto * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31182007Sroberto * SUCH DAMAGE. 32182007Sroberto * 3354359Sroberto */ 3454359Sroberto 3554359Sroberto#ifndef __PARSE_CONF_H__ 3654359Sroberto#define __PARSE_CONF_H__ 3754359Sroberto#if !(defined(lint) || defined(__GNUC__)) 38182007Sroberto static char prshrcsid[] = "parse_conf.h,v 4.7 2005/06/25 10:58:45 kardel RELEASE_20050625_A"; 3954359Sroberto#endif 4054359Sroberto 4154359Sroberto/* 4254359Sroberto * field location structure 4354359Sroberto */ 44290000Sglebius#define O_DAY 0 4554359Sroberto#define O_MONTH 1 46290000Sglebius#define O_YEAR 2 47290000Sglebius#define O_HOUR 3 48290000Sglebius#define O_MIN 4 49290000Sglebius#define O_SEC 5 50290000Sglebius#define O_WDAY 6 5154359Sroberto#define O_FLAGS 7 5254359Sroberto#define O_ZONE 8 5354359Sroberto#define O_UTCHOFFSET 9 5454359Sroberto#define O_UTCMOFFSET 10 5554359Sroberto#define O_UTCSOFFSET 11 5654359Sroberto#define O_COUNT (O_UTCSOFFSET+1) 5754359Sroberto 5854359Sroberto#define MBG_EXTENDED 0x00000001 5954359Sroberto 6054359Sroberto/* 6154359Sroberto * see below for field offsets 6254359Sroberto */ 6354359Sroberto 6454359Srobertostruct format 6554359Sroberto{ 6654359Sroberto struct foff 6754359Sroberto { 6854359Sroberto unsigned short offset; /* offset into buffer */ 6954359Sroberto unsigned short length; /* length of field */ 7054359Sroberto } field_offsets[O_COUNT]; 7154359Sroberto const unsigned char *fixed_string; /* string with must be chars (blanks = wildcards) */ 7254359Sroberto u_long flags; 7354359Sroberto}; 7454359Sroberto#endif 75182007Sroberto 76182007Sroberto/* 77182007Sroberto * History: 78182007Sroberto * 79182007Sroberto * parse_conf.h,v 80182007Sroberto * Revision 4.7 2005/06/25 10:58:45 kardel 81182007Sroberto * add missing log keywords 82182007Sroberto * 83182007Sroberto */ 84