250 lines
7.6 KiB
Mathematica
250 lines
7.6 KiB
Mathematica
/* 00comp_ipnet_sntp.cdf - IPNet SNTP configuration file */
|
|
|
|
/*
|
|
* Copyright (c) 2006-2007 Wind River Systems, Inc.
|
|
*
|
|
* The right to copy, distribute or otherwise make use of this software
|
|
* may be licensed only pursuant to the terms of an applicable Wind River
|
|
* license agreement. No license to Wind River intellectual property rights
|
|
* is granted herein. All rights not licensed by Wind River are reserved
|
|
* by Wind River.
|
|
*/
|
|
|
|
/*
|
|
modification history
|
|
--------------------
|
|
01a,03Aug10,rjq New file for Networking Configuration VSB restructuring.
|
|
*/
|
|
|
|
#ifdef _WRS_CONFIG_COMPONENT_IPSNTP
|
|
|
|
Folder FOLDER_SNTP {
|
|
NAME SNTP Components
|
|
SYNOPSIS SNTP Components
|
|
CHILDREN INCLUDE_IPSNTP_COMMON \
|
|
INCLUDE_IPSNTPC_API \
|
|
INCLUDE_IPSNTPS_API \
|
|
INCLUDE_IPSNTPC\
|
|
INCLUDE_IPSNTPS \
|
|
INCLUDE_IPSNTP_CMD
|
|
_CHILDREN FOLDER_NET_L5_APPLICATIONS
|
|
}
|
|
|
|
Component INCLUDE_IPSNTP_COMMON {
|
|
NAME SNTP common configurations
|
|
SYNOPSIS SNTP common configurations
|
|
CONFIGLETTES ipsntp_config.c
|
|
MODULES ipsntp.o
|
|
LINK_SYMS ipsntp_create
|
|
REQUIRES INCLUDE_IPCOM
|
|
CFG_PARAMS SNTP_LISTENING_PORT \
|
|
SNTP_BIND_IPV6_ADDR \
|
|
SNTP_BIND_IPV4_ADDR
|
|
}
|
|
|
|
Component INCLUDE_IPSNTPS {
|
|
NAME SNTP Server (daemon)
|
|
SYNOPSIS SNTP Server daemon
|
|
REQUIRES INCLUDE_IPSNTP_COMMON
|
|
LINK_SYMS ipsntp_set_reference
|
|
EXCLUDES INCLUDE_IPSNTPC
|
|
CFG_PARAMS SNTPS_STRATUM SNTPS_PRECISION SNTPS_MULTICAST_INTERVAL \
|
|
SNTPS_MULTICAST_TTL SNTPS_IPV4_MULTICAST_ADDR \
|
|
SNTPS_IPV6_MULTICAST_ADDR SNTPS_LEAP_SECOND_FILENAME
|
|
}
|
|
|
|
Component INCLUDE_IPSNTPC {
|
|
NAME SNTP Client (daemon)
|
|
SYNOPSIS SNTP Client daemon
|
|
REQUIRES INCLUDE_IPSNTP_COMMON
|
|
LINK_SYMS ipsntp_set_reference
|
|
EXCLUDES INCLUDE_IPSNTPS
|
|
CFG_PARAMS SNTPC_POLL_INTERVAL SNTPC_POLL_COUNT SNTPC_POLL_TIMEOUT \
|
|
SNTPC_PRIMARY_IPV4_ADDR SNTPC_BACKUP_IPV4_ADDR \
|
|
SNTPC_MULTICAST_MODE_IF SNTPC_MULTICAST_GROUP_ADDR \
|
|
SNTPC_PRIMARY_IPV6_ADDR SNTPC_BACKUP_IPV6_ADDR \
|
|
SNTPC_MULTICAST_MODE_IPV6_IF \
|
|
SNTPC_MULTICAST_GROUP_IPV6_ADDR
|
|
}
|
|
|
|
Component INCLUDE_IPSNTPC_API {
|
|
NAME SNTP Client (API)
|
|
SYNOPSIS SNTP Client application programming interface
|
|
LINK_SYMS ipsntp_query_time
|
|
REQUIRES INCLUDE_IPSNTP_COMMON
|
|
}
|
|
|
|
Component INCLUDE_IPSNTPS_API {
|
|
NAME SNTP Server (API)
|
|
SYNOPSIS SNTP Server application programming interface
|
|
LINK_SYMS ipsntp_server_nsec_to_fraction \
|
|
ipsntp_set_reference
|
|
REQUIRES INCLUDE_IPSNTP_COMMON \
|
|
INCLUDE_IPSNTPS
|
|
}
|
|
|
|
/******************** Configuration Parameters *****************************/
|
|
|
|
/* INCLUDE_IPSNTP_COMMON configuration parameters */
|
|
Parameter SNTP_LISTENING_PORT {
|
|
NAME SNTP port
|
|
SYNOPSIS Specifies the SNTP listening port.
|
|
TYPE char *
|
|
DEFAULT "123"
|
|
}
|
|
|
|
Parameter SNTP_BIND_IPV4_ADDR {
|
|
NAME SNTP IPv4 source address.
|
|
SYNOPSIS SNTP IPv4 source address.
|
|
TYPE char *
|
|
DEFAULT ""
|
|
}
|
|
|
|
Parameter SNTP_BIND_IPV6_ADDR {
|
|
NAME SNTP IPv6 source address.
|
|
SYNOPSIS SNTP IPv6 source address.
|
|
TYPE char *
|
|
DEFAULT ""
|
|
}
|
|
|
|
/* INCLUDE_IPSNTPS configuration parameters */
|
|
Parameter SNTPS_LEAP_SECOND_FILENAME {
|
|
NAME SNTP leap second filename
|
|
SYNOPSIS The name of leap second file to be read by the SNTP server \
|
|
every day. The file contains the leap second to be adjusted \
|
|
in NTP timestamp format. E.g: "3644697600 36 # 1 Jul 2015". \
|
|
If there is a leap second adjustment, the SNTP server will set \
|
|
the LI flag automatically in that day. Contents of this file \
|
|
may be derived from leap-second bulletins posted by the \
|
|
International Earth Rotation and Reference Systems Service (IERS).
|
|
TYPE char *
|
|
DEFAULT NULL
|
|
}
|
|
|
|
Parameter SNTPS_STRATUM {
|
|
NAME SNTP server stratum
|
|
SYNOPSIS SNTP server stratum.
|
|
TYPE char *
|
|
DEFAULT "9"
|
|
}
|
|
|
|
Parameter SNTPS_PRECISION {
|
|
NAME SNTP server precision
|
|
SYNOPSIS SNTP server precision. Precision is 2 ^ SNTPS_PRECISION \
|
|
seconds.
|
|
TYPE char *
|
|
DEFAULT "-6"
|
|
}
|
|
|
|
Parameter SNTPS_MULTICAST_INTERVAL {
|
|
NAME SNTP multicast mode send interval
|
|
SYNOPSIS SNTP multicast mode send interval in seconds. Set to zero \
|
|
for unicast mode only.
|
|
TYPE char *
|
|
DEFAULT "3600"
|
|
}
|
|
|
|
Parameter SNTPS_MULTICAST_TTL {
|
|
NAME SNTP multicast mode TTL
|
|
SYNOPSIS SNTP multicast mode TTL.
|
|
TYPE char *
|
|
DEFAULT "1"
|
|
}
|
|
|
|
Parameter SNTPS_IPV4_MULTICAST_ADDR {
|
|
NAME SNTP multicast mode IPv4 destination address
|
|
SYNOPSIS SNTP server multicast mode IPv4 destination address.
|
|
TYPE char *
|
|
DEFAULT "10.1.255.255"
|
|
}
|
|
|
|
Parameter SNTPS_IPV6_MULTICAST_ADDR {
|
|
NAME SNTP multicast mode IPv6 destination address
|
|
SYNOPSIS SNTP server multicast mode IPv6 destination address.
|
|
TYPE char *
|
|
DEFAULT "FF05::1"
|
|
}
|
|
|
|
/* INCLUDE_IPSNTPC configuration parameters */
|
|
Parameter SNTPC_POLL_INTERVAL {
|
|
NAME SNTP unicast client mode poll interval
|
|
SYNOPSIS SNTP client unicast mode poll interval. Set to zero for \
|
|
multicast mode only.
|
|
TYPE char *
|
|
DEFAULT "1024"
|
|
}
|
|
|
|
Parameter SNTPC_POLL_COUNT {
|
|
NAME Number of retransmissions
|
|
SYNOPSIS Number of retransmissions the client will attempt on each \
|
|
SNTP server.
|
|
TYPE char *
|
|
DEFAULT "3"
|
|
}
|
|
|
|
Parameter SNTPC_POLL_TIMEOUT {
|
|
NAME Seconds between retransmissions
|
|
SYNOPSIS Seconds between retransmissions
|
|
TYPE char *
|
|
DEFAULT "2"
|
|
}
|
|
|
|
Parameter SNTPC_PRIMARY_IPV4_ADDR {
|
|
NAME Primary server IPv4 address
|
|
SYNOPSIS Primary SNTP server IPv4 address
|
|
TYPE char *
|
|
DEFAULT "10.1.2.90"
|
|
}
|
|
|
|
Parameter SNTPC_BACKUP_IPV4_ADDR {
|
|
NAME Backup server IPv4 address
|
|
SYNOPSIS Backup SNTP server IPv4 address
|
|
TYPE char *
|
|
DEFAULT "10.1.2.40"
|
|
}
|
|
|
|
Parameter SNTPC_MULTICAST_MODE_IF {
|
|
NAME SNTP multicast client mode interface
|
|
SYNOPSIS SNTP multicast client mode interface.
|
|
TYPE char *
|
|
DEFAULT ""
|
|
}
|
|
|
|
Parameter SNTPC_MULTICAST_GROUP_ADDR {
|
|
NAME SNTP multicast client mode multicast group
|
|
SYNOPSIS SNTP multicast client mode multicast group.
|
|
TYPE char *
|
|
DEFAULT "224.0.1.1"
|
|
}
|
|
|
|
Parameter SNTPC_PRIMARY_IPV6_ADDR {
|
|
NAME Primary server IPv6 address
|
|
SYNOPSIS Primary SNTP server IPv6 address
|
|
TYPE char *
|
|
DEFAULT "2001::90"
|
|
}
|
|
|
|
Parameter SNTPC_BACKUP_IPV6_ADDR {
|
|
NAME Backup server IPv6 address
|
|
SYNOPSIS Backup SNTP server IPv6 address
|
|
TYPE char *
|
|
DEFAULT "2001::28"
|
|
}
|
|
|
|
Parameter SNTPC_MULTICAST_MODE_IPV6_IF {
|
|
NAME SNTP multicast client mode IPv6 interface
|
|
SYNOPSIS SNTP multicast client mode IPv6 interface.
|
|
TYPE char *
|
|
DEFAULT ""
|
|
}
|
|
|
|
Parameter SNTPC_MULTICAST_GROUP_IPV6_ADDR {
|
|
NAME SNTP multicast client mode IPv6 multicast group
|
|
SYNOPSIS SNTP multicast client mode IPv6 multicast group.
|
|
TYPE char *
|
|
DEFAULT "ff05::101"
|
|
}
|
|
|
|
#endif
|
|
|