Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
b32876b6
Commit
b32876b6
authored
Mar 13, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set defaults for all options (also fix clock quality in announce)
parent
0db9b19f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
constants.h
include/pptp/constants.h
+5
-0
open-close.c
proto-standard/open-close.c
+13
-2
No files found.
include/pptp/constants.h
View file @
b32876b6
...
...
@@ -41,6 +41,11 @@
*/
#define PP_DEFAULT_MAX_FOREIGN_RECORDS 5
#define PP_DEFAULT_PARENTS_STATS 0
#define PP_DEFAULT_MAX_RESET 0
#define PP_DEFAULT_MAX_DELAY 0
#define PP_DEFAULT_NO_ADJUST 1
#define PP_DEFAULT_E2E_MODE 0
#define PP_DEFAULT_TTL 1
/* We use an array of timers, with these indexes */
#define PP_TIMER_PDELAYREQ 0
...
...
proto-standard/open-close.c
View file @
b32876b6
...
...
@@ -14,13 +14,24 @@
*/
struct
pp_runtime_opts
default_rt_opts
=
{
.
no_adjust
=
TRUE
,
.
clock_quality
=
{
.
clockClass
=
PP_DEFAULT_CLOCK_CLASS
,
.
clockAccuracy
=
PP_DEFAULT_CLOCK_ACCURACY
,
.
offsetScaledLogVariance
=
PP_DEFAULT_CLOCK_VARIANCE
,
},
.
inbound_latency
=
PP_DEFAULT_INBOUND_LATENCY
,
.
outbound_latency
=
PP_DEFAULT_OUTBOUND_LATENCY
,
.
max_rst
=
PP_DEFAULT_MAX_RESET
,
.
max_dly
=
PP_DEFAULT_MAX_DELAY
,
.
no_adjust
=
PP_DEFAULT_NO_ADJUST
,
.
no_rst_clk
=
PP_DEFAULT_NO_RESET_CLOCK
,
.
ap
=
PP_DEFAULT_AP
,
.
ai
=
PP_DEFAULT_AI
,
.
s
=
PP_DEFAULT_DELAY_S
,
.
ethernet_mode
=
PP_DEFAULT_ETHERNET_MODE
,
.
e2e_mode
=
PP_DEFAULT_E2E_MODE
,
.
gptp_mode
=
PP_DEFAULT_GPTP_MODE
,
.
ofst_first_updated
=
0
,
/* FIXME: is it a option or a state var? */
.
max_foreign_records
=
PP_DEFAULT_MAX_FOREIGN_RECORDS
,
.
cur_utc_ofst
=
PP_DEFAULT_UTC_OFFSET
,
.
announce_intvl
=
PP_DEFAULT_ANNOUNCE_INTERVAL
,
...
...
@@ -28,7 +39,7 @@ struct pp_runtime_opts default_rt_opts = {
.
prio1
=
PP_DEFAULT_PRIORITY1
,
.
prio2
=
PP_DEFAULT_PRIORITY2
,
.
domain_number
=
PP_DEFAULT_DOMAIN_NUMBER
,
.
ttl
=
1
,
.
ttl
=
PP_DEFAULT_TTL
,
};
int
pp_open_instance
(
struct
pp_instance
*
ppi
,
struct
pp_runtime_opts
*
rt_opts
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment