Signed-off-by: Richard Cochran
---
config.c | 29 +
config.h | 1 -
ptp4l.c | 14 +++---
3 files changed, 16 insertions(+), 28 deletions(-)
diff --git a/config.c b/config.c
index 1c4421b..87d944f 100644
--- a/config.c
+++ b/config.c
@@ -126,11 +126,13
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 8 +---
pi.h | 7 ---
ptp4l.c | 1 -
5 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/config.c b/config.c
index fc7dd23..2f184dd 100644
--- a/config.c
+++ b/config.c
@@ -97,6 +97,7
Signed-off-by: Richard Cochran
---
config.c | 12 ++--
ptp4l.c | 5 ++---
2 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/config.c b/config.c
index afb3879..3f4014c 100644
--- a/config.c
+++ b/config.c
@@ -99,6 +99,7 @@ struct config_item config_tab
This will allow modules to read out various user options.
Signed-off-by: Richard Cochran
---
pmc_common.c| 2 +-
port.c | 3 ++-
transport.c | 7 +--
transport.h | 6 +-
transport_private.h | 1 +
5 files changed, 14 insertions(+), 5 deletions
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
ptp4l.c | 2 +-
3 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/config.c b/config.c
index 871e277..ad398c1 100644
--- a/config.c
+++ b/config.c
@@ -78,6 +78,7 @@ struct config_item {
struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 2 --
ptp4l.c | 2 --
servo.c | 4 ++--
servo.h | 6 --
5 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/config.c b/config.c
index d539a5b..08508be 100644
--- a/config.c
+++ b/config.c
@@ -94,6 +94,7
Signed-off-by: Richard Cochran
---
config.c | 11 +++
config.h | 4
2 files changed, 15 insertions(+)
diff --git a/config.c b/config.c
index 934caa2..9ef8be1 100644
--- a/config.c
+++ b/config.c
@@ -24,6 +24,7 @@
#include
#include "config.h"
#include "eth
In the near future, the transports will need to consult the configuration
database in order to obtain various options. This patch also introduces
the idea of a configuration file into the phc2sys and pmc programs.
Signed-off-by: Richard Cochran
---
phc2sys.c| 10 ++
pmc.c
Signed-off-by: Richard Cochran
---
config.c | 21 +++--
config.h | 1 -
phc2sys.c | 9 ++---
ptp4l.c | 1 -
servo.c | 4 +++-
servo.h | 9 -
6 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/config.c b/config.c
index aa856ad..6732b23 100644
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 4 +++-
ptp4l.c | 4
4 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/config.c b/config.c
index 20a0d89..b3ca2b9 100644
--- a/config.c
+++ b/config.c
@@ -99,6 +99,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 8 +---
config.h | 2 --
ptp4l.c | 6 ++
3 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/config.c b/config.c
index 143d9db..90d7659 100644
--- a/config.c
+++ b/config.c
@@ -99,6 +99,7 @@ struct config_item config_tab
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 3 ++-
ptp4l.c | 1 -
4 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 678471a..4ebe1b8 100644
--- a/config.c
+++ b/config.c
@@ -95,6 +95,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
phc2sys.c | 7 ---
pi.c | 7 ---
pi.h | 6 --
ptp4l.c | 1 -
6 files changed, 9 insertions(+), 20 deletions(-)
diff --git a/config.c b/config.c
index 3bd98da..2437ec0 100644
--- a/config.c
+++ b
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 10 ++
pi.h | 7 ---
ptp4l.c | 1 -
5 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/config.c b/config.c
index 43f96fe..5775272 100644
--- a/config.c
+++ b/config.c
@@ -99,6
Signed-off-by: Richard Cochran
---
clock.c | 2 +-
config.c | 7 +--
ds.h | 1 -
ptp4l.c | 5 ++---
4 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/clock.c b/clock.c
index 8c20d64..f31ae42 100644
--- a/clock.c
+++ b/clock.c
@@ -826,7 +826,7 @@ struct clock *clock_create
Signed-off-by: Richard Cochran
---
config.c | 11 ++-
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 3 ---
4 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/config.c b/config.c
index 4c5182e..d8ce1e2 100644
--- a/config.c
+++ b/config.c
@@ -104,6 +104,7 @@ struct
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 833d894..6401e44 100644
--- a/config.c
+++ b/config.c
@@ -91,6 +91,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 56a86e9..833d894 100644
--- a/config.c
+++ b/config.c
@@ -97,6 +97,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
ptp4l.c | 5 -
3 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/config.c b/config.c
index d3c19e5..871e277 100644
--- a/config.c
+++ b/config.c
@@ -77,6 +77,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 8 +---
config.h | 3 ---
ptp4l.c | 7 ++-
3 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/config.c b/config.c
index 90d7659..b649cf0 100644
--- a/config.c
+++ b/config.c
@@ -100,6 +100,7 @@ struct config_item config_tab
This definition is now empty and can serve no purpose any more.
Signed-off-by: Richard Cochran
---
config.c | 3 ---
config.h | 2 --
ds.h | 3 ---
port.c | 2 --
4 files changed, 10 deletions(-)
diff --git a/config.c b/config.c
index ee91a40..e1eac73 100644
--- a/config.c
+++ b/config.c
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 14 --
pi.h | 8
ptp4l.c | 1 -
5 files changed, 9 insertions(+), 22 deletions(-)
diff --git a/config.c b/config.c
index 5775272..fc7dd23 100644
--- a/config.c
+++ b/config.c
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 8 +---
pi.h | 7 ---
ptp4l.c | 1 -
5 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/config.c b/config.c
index 07cb016..43f96fe 100644
--- a/config.c
+++ b/config.c
@@ -98,6 +98,7
Signed-off-by: Richard Cochran
---
config.c | 16 +++-
ptp4l.c | 4 ++--
2 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/config.c b/config.c
index 87d944f..683eee5 100644
--- a/config.c
+++ b/config.c
@@ -125,6 +125,8 @@ struct config_item config_tab
This conversion is not straightforward due to the fact that these options
can take a value of "ASAP" or a number. We check for the special ASAP
case in a helper function and leave the numbers to the generic code.
Signed-off-by: Richard Cochran
---
con
Signed-off-by: Richard Cochran
---
clock.c | 2 +-
config.c | 29 -
config.h | 1 -
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
6 files changed, 10 insertions(+), 26 deletions(-)
diff --git a/clock.c b/clock.c
index a923915..91ed78d 100644
--- a/clock.c
Signed-off-by: Richard Cochran
---
clock.c | 3 ++-
clock.h | 3 +--
config.c | 21 +
config.h | 2 --
ptp4l.c | 7 ++-
5 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/clock.c b/clock.c
index 112d0a2..320a84c 100644
--- a/clock.c
+++ b/clock.c
Signed-off-by: Richard Cochran
---
config.c | 7 +--
ptp4l.c | 3 ++-
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/config.c b/config.c
index 683eee5..516ce7a 100644
--- a/config.c
+++ b/config.c
@@ -95,6 +95,7 @@ struct config_item config_tab[] = {
GLOB_ITEM_INT
Signed-off-by: Richard Cochran
---
clock.c | 2 +-
config.c | 7 +--
ds.h | 1 -
ptp4l.c | 3 +--
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/clock.c b/clock.c
index c64fdaa..1d5e2b6 100644
--- a/clock.c
+++ b/clock.c
@@ -827,7 +827,7 @@ struct clock *clock_create
This probably should not have been a variable in the first place.
Signed-off-by: Richard Cochran
---
ds.h| 1 -
port.c | 3 ++-
ptp4l.c | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/ds.h b/ds.h
index f9a5d7b..d30c418 100644
--- a/ds.h
+++ b/ds.h
@@ -125,7 +125,6
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/config.c b/config.c
index d8ce1e2..a4282f8 100644
--- a/config.c
+++ b/config.c
@@ -104,6 +104,7 @@ struct config_item config_tab
Signed-off-by: Richard Cochran
---
clock.c | 6 --
config.c | 7 +--
ds.h | 1 -
ptp4l.c | 3 +--
4 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/clock.c b/clock.c
index 1d5e2b6..ee20a3c 100644
--- a/clock.c
+++ b/clock.c
@@ -810,6 +810,7 @@ struct clock
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 6 --
ptp4l.c | 1 -
4 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/config.c b/config.c
index a4282f8..20a0d89 100644
--- a/config.c
+++ b/config.c
@@ -95,6 +95,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
ptp4l.c | 2 +-
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/config.c b/config.c
index 516ce7a..e14156b 100644
--- a/config.c
+++ b/config.c
@@ -95,6 +95,7 @@ struct config_item config_tab[] = {
GLOB_ITEM_INT
Signed-off-by: Richard Cochran
---
clock.c | 3 ++-
config.c | 35 ++-
config.h | 1 -
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
6 files changed, 13 insertions(+), 30 deletions(-)
diff --git a/clock.c b/clock.c
index d0298f4..a923915 100644
--- a
Signed-off-by: Richard Cochran
---
config.c | 33 +
config.h | 4
port.c | 2 +-
ptp4l.c | 14 ++
4 files changed, 16 insertions(+), 37 deletions(-)
diff --git a/config.c b/config.c
index 66d6954..3fce7d2 100644
--- a/config.c
+++ b/config.c
Signed-off-by: Richard Cochran
---
config.c | 34 +-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/config.c b/config.c
index 3f4014c..2e975d5 100644
--- a/config.c
+++ b/config.c
@@ -37,6 +37,12 @@ enum config_section {
enum config_type
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
ptp4l.c | 1 -
udp6.c | 5 ++---
udp6.h | 6 --
5 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/config.c b/config.c
index e1eac73..1c4421b 100644
--- a/config.c
+++ b/config.c
@@ -133,6 +133,7
Signed-off-by: Richard Cochran
---
clock.c | 3 ++-
clock.h | 2 --
config.c | 22 +-
config.h | 6 --
ptp4l.c | 29 +
5 files changed, 24 insertions(+), 38 deletions(-)
diff --git a/clock.c b/clock.c
index 91ed78d..112d0a2 100644
--- a
Now we have debug messages in the configuration code. Therefore set up
the print levels immediately after parsing the command line and the file,
so that those messages have a chance to be seen.
Signed-off-by: Richard Cochran
---
ptp4l.c | 10 +-
1 file changed, 5 insertions(+), 5
Signed-off-by: Richard Cochran
---
config.c | 7 +--
ptp4l.c | 3 ++-
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/config.c b/config.c
index e14156b..afb3879 100644
--- a/config.c
+++ b/config.c
@@ -118,6 +118,7 @@ struct config_item config_tab[] = {
PORT_ITEM_INT
Signed-off-by: Richard Cochran
---
clock.c | 5 -
config.c | 33 +
config.h | 3 ---
port.c | 6 --
ptp4l.c | 17 +
5 files changed, 26 insertions(+), 38 deletions(-)
diff --git a/clock.c b/clock.c
index ab048f5..d0298f4 100644
On Thu, Aug 20, 2015 at 10:25:23PM +, Keller, Jacob E wrote:
> If I understand this correctly, this means that a user passing a
> configuration file missing any option the program reads we will
> terminate the whole program instead of selecting the default?
No, that is not how it works.
The f
On Fri, Aug 21, 2015 at 03:42:08PM +, Keller, Jacob E wrote:
> So, what happens in the case of a configuration file that is missing a
> field? ie: a user provides a configuration file which doesn't have the
> item in it?
Then the default value from the 'config_tab' table is used.
Thanks,
Rich
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
ptp4l.c | 5 -
3 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/config.c b/config.c
index d3c19e5..871e277 100644
--- a/config.c
+++ b/config.c
@@ -77,6 +77,7 @@ struct config_item
This function allows the ports to read configuration variables without
changing the port method signatures.
Signed-off-by: Richard Cochran
---
clock.c | 5 +
clock.h | 7 +++
2 files changed, 12 insertions(+)
diff --git a/clock.c b/clock.c
index 1569108..a47e1e9 100644
--- a/clock.c
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
phc2sys.c | 5 +++--
ptp4l.c | 1 -
servo.c | 5 -
servo.h | 9 -
6 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/config.c b/config.c
index 6732b23..d539a5b 100644
--- a/config.c
+++ b
Signed-off-by: Richard Cochran
---
config.c | 11 +++
config.h | 4
2 files changed, 15 insertions(+)
diff --git a/config.c b/config.c
index 934caa2..9ef8be1 100644
--- a/config.c
+++ b/config.c
@@ -24,6 +24,7 @@
#include
#include "config.h"
#include "eth
This will allow removing the code that passes configuration options via
global variables.
Signed-off-by: Richard Cochran
---
clock.c | 4 ++--
phc2sys.c | 3 ++-
servo.c | 3 ++-
servo.h | 5 -
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/clock.c b/clock.c
index
This will allow modules to read out various user options.
Signed-off-by: Richard Cochran
---
pmc_common.c| 2 +-
port.c | 3 ++-
transport.c | 7 +--
transport.h | 6 +-
transport_private.h | 1 +
5 files changed, 14 insertions(+), 5 deletions
ch 62 adds enumerated types.
Patch 69 tweaks ptp4l's logging configuration.
Patches 71 and 76 add string parsing utilities.
Patches 81 and 82 refactor config.c a bit.
Patch 83 finally changes config_init() into config_create().
All the *other* patches convert individual options.
Review and
include an option for specifying the UDP TTL.
Users are required to call 'config_init', and so this patch add that into
all three programs, ptp4l, phc2sys and pmc.
Signed-off-by: Richard Cochran
---
config.c | 245 --
config.h
This patch adds functions that will set and lock a certain value. The
intended use of these methods is to give command line options priority
over the configuration file.
Signed-off-by: Richard Cochran
---
config.c | 50 ++
config.h | 11
Signed-off-by: Richard Cochran
---
config.c | 21 +++--
config.h | 1 -
phc2sys.c | 9 ++---
ptp4l.c | 1 -
servo.c | 4 +++-
servo.h | 9 -
6 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/config.c b/config.c
index aa856ad..6732b23 100644
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
ptp4l.c | 2 +-
3 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/config.c b/config.c
index 871e277..ad398c1 100644
--- a/config.c
+++ b/config.c
@@ -78,6 +78,7 @@ struct config_item {
struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 14 --
pi.h | 8
ptp4l.c | 1 -
5 files changed, 9 insertions(+), 22 deletions(-)
diff --git a/config.c b/config.c
index 5775272..fc7dd23 100644
--- a/config.c
+++ b/config.c
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 56a86e9..833d894 100644
--- a/config.c
+++ b/config.c
@@ -97,6 +97,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 8 +---
config.h | 3 ---
ptp4l.c | 7 ++-
3 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/config.c b/config.c
index 90d7659..b649cf0 100644
--- a/config.c
+++ b/config.c
@@ -100,6 +100,7 @@ struct config_item config_tab
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 13 +++--
pi.h | 8
ptp4l.c | 1 -
5 files changed, 8 insertions(+), 22 deletions(-)
diff --git a/config.c b/config.c
index 2437ec0..07cb016 100644
--- a/config.c
+++ b/config.c
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 3 ++-
ptp4l.c | 1 -
4 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 678471a..4ebe1b8 100644
--- a/config.c
+++ b/config.c
@@ -95,6 +95,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
phc2sys.c | 7 ---
pi.c | 11 +++
pi.h | 8 +---
ptp4l.c | 1 -
servo.c | 2 +-
7 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/config.c b/config.c
index b649cf0
This will help us to simplify the passing of parameters between the main
program. clock, and ports.
Signed-off-by: Richard Cochran
---
clock.c | 9 ++---
clock.h | 8 +---
ptp4l.c | 3 ++-
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/clock.c b/clock.c
index 9e9feba
Signed-off-by: Richard Cochran
---
config.c | 10 +-
config.h | 2 --
ptp4l.c | 9 -
3 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/config.c b/config.c
index 08508be..143d9db 100644
--- a/config.c
+++ b/config.c
@@ -94,6 +94,7 @@ struct config_item config_tab
In the near future, the transports will need to consult the configuration
database in order to obtain various options. This patch also introduces
the idea of a configuration file into the phc2sys and pmc programs.
Signed-off-by: Richard Cochran
---
phc2sys.c| 10 ++
pmc.c
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 2 --
ptp4l.c | 2 --
servo.c | 4 ++--
servo.h | 6 --
5 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/config.c b/config.c
index d539a5b..08508be 100644
--- a/config.c
+++ b/config.c
@@ -94,6 +94,7
Signed-off-by: Richard Cochran
---
config.c | 8 +---
config.h | 1 -
pi.c | 12 ++--
pi.h | 7 ---
ptp4l.c | 1 -
5 files changed, 7 insertions(+), 22 deletions(-)
diff --git a/config.c b/config.c
index 2f184dd..1ae564f 100644
--- a/config.c
+++ b/config.c
@@ -98,6
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
phc2sys.c | 7 ---
pi.c | 7 ---
pi.h | 6 --
ptp4l.c | 1 -
6 files changed, 9 insertions(+), 20 deletions(-)
diff --git a/config.c b/config.c
index 3bd98da..2437ec0 100644
--- a/config.c
+++ b
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 6401e44..c17ab73 100644
--- a/config.c
+++ b/config.c
@@ -112,6 +112,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 0cd26e2..56a86e9 100644
--- a/config.c
+++ b/config.c
@@ -96,6 +96,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
udp.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/udp.c b/udp.c
index b100dbf..b8aa76a 100644
--- a/udp.c
+++ b/udp.c
@@ -30,6 +30,7 @@
#include
#include "address.h"
+#include "config.h"
Signed-off-by: Richard Cochran
---
hash.c | 113 +++
hash.h | 59 +
makefile | 2 +-
3 files changed, 173 insertions(+), 1 deletion(-)
create mode 100644 hash.c
create mode 100644 hash.h
diff
Signed-off-by: Richard Cochran
---
config.c | 8 +---
config.h | 2 --
ptp4l.c | 6 ++
3 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/config.c b/config.c
index 143d9db..90d7659 100644
--- a/config.c
+++ b/config.c
@@ -99,6 +99,7 @@ struct config_item config_tab
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 3 ++-
ptp4l.c | 1 -
4 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index c17ab73..2c97002 100644
--- a/config.c
+++ b/config.c
@@ -113,6 +113,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
clock.c | 2 +-
config.c | 8 +---
ds.h | 2 --
port.c | 4 +++-
ptp4l.c | 2 --
5 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/clock.c b/clock.c
index 8a5ef05..0856f81 100644
--- a/clock.c
+++ b/clock.c
@@ -823,7 +823,7 @@ struct
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 2 --
ptp4l.c | 4 +---
3 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/config.c b/config.c
index ad398c1..2cd2788 100644
--- a/config.c
+++ b/config.c
@@ -78,6 +78,7 @@ struct config_item {
struct
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 11 +++
3 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/config.c b/config.c
index c1d5aeb..678471a 100644
--- a/config.c
+++ b/config.c
@@ -93,6 +93,7 @@ struct config_item {
struct
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 2 --
ntpshm.c | 9 +++--
ntpshm.h | 7 +--
phc2sys.c | 3 +++
ptp4l.c | 2 --
servo.c | 2 +-
7 files changed, 9 insertions(+), 23 deletions(-)
diff --git a/config.c b/config.c
index 1ae564f..c1d5aeb 100644
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 4ebe1b8..0cd26e2 100644
--- a/config.c
+++ b/config.c
@@ -96,6 +96,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 11 ++-
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 3 ---
4 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/config.c b/config.c
index 4c5182e..d8ce1e2 100644
--- a/config.c
+++ b/config.c
@@ -104,6 +104,7 @@ struct
This probably should not have been a variable in the first place.
Signed-off-by: Richard Cochran
---
ds.h| 1 -
port.c | 3 ++-
ptp4l.c | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/ds.h b/ds.h
index f9a5d7b..d30c418 100644
--- a/ds.h
+++ b/ds.h
@@ -125,7 +125,6
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 8 +---
pi.h | 7 ---
ptp4l.c | 1 -
5 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/config.c b/config.c
index fc7dd23..2f184dd 100644
--- a/config.c
+++ b/config.c
@@ -97,6 +97,7
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 8 +---
pi.h | 7 ---
ptp4l.c | 1 -
5 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/config.c b/config.c
index 07cb016..43f96fe 100644
--- a/config.c
+++ b/config.c
@@ -98,6 +98,7
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 10 ++
ptp4l.c | 1 -
4 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/config.c b/config.c
index 2c10158..7cc3ca5 100644
--- a/config.c
+++ b/config.c
@@ -96,6 +96,7 @@ struct
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 8 +---
ptp4l.c | 1 -
4 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/config.c b/config.c
index 2c97002..2c10158 100644
--- a/config.c
+++ b/config.c
@@ -103,6 +103,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
pi.c | 10 ++
pi.h | 7 ---
ptp4l.c | 1 -
5 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/config.c b/config.c
index 43f96fe..5775272 100644
--- a/config.c
+++ b/config.c
@@ -99,6
Signed-off-by: Richard Cochran
---
config.c | 9 ++---
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/config.c b/config.c
index 833d894..6401e44 100644
--- a/config.c
+++ b/config.c
@@ -91,6 +91,7 @@ struct config_item
I screwed up the subject line with V4 instead of V5. I'll resend the
bunch.
Sorry,
Richard
--
___
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lis
This will help us to simplify the passing of parameters between the main
program. clock, and ports.
Signed-off-by: Richard Cochran
---
clock.c | 9 ++---
clock.h | 8 +---
ptp4l.c | 3 ++-
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/clock.c b/clock.c
index 9e9feba
This function allows the ports to read configuration variables without
changing the port method signatures.
Signed-off-by: Richard Cochran
---
clock.c | 5 +
clock.h | 7 +++
2 files changed, 12 insertions(+)
diff --git a/clock.c b/clock.c
index 1569108..a47e1e9 100644
--- a/clock.c
This will allow modules to read out various user options.
Signed-off-by: Richard Cochran
---
pmc_common.c| 2 +-
port.c | 3 ++-
transport.c | 7 +--
transport.h | 6 +-
transport_private.h | 1 +
5 files changed, 14 insertions(+), 5 deletions
This will allow removing the code that passes configuration options via
global variables.
Signed-off-by: Richard Cochran
---
clock.c | 4 ++--
phc2sys.c | 3 ++-
servo.c | 3 ++-
servo.h | 5 -
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/clock.c b/clock.c
index
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
phc2sys.c | 5 +++--
ptp4l.c | 1 -
servo.c | 5 -
servo.h | 9 -
6 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/config.c b/config.c
index 6732b23..d539a5b 100644
--- a/config.c
+++ b
Signed-off-by: Richard Cochran
---
udp.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/udp.c b/udp.c
index b100dbf..b8aa76a 100644
--- a/udp.c
+++ b/udp.c
@@ -30,6 +30,7 @@
#include
#include "address.h"
+#include "config.h"
Signed-off-by: Richard Cochran
---
config.c | 21 +++--
config.h | 1 -
phc2sys.c | 9 ++---
ptp4l.c | 1 -
servo.c | 4 +++-
servo.h | 9 -
6 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/config.c b/config.c
index aa856ad..6732b23 100644
In the near future, the transports will need to consult the configuration
database in order to obtain various options. This patch also introduces
the idea of a configuration file into the phc2sys and pmc programs.
Signed-off-by: Richard Cochran
---
phc2sys.c| 10 ++
pmc.c
Signed-off-by: Richard Cochran
---
config.c | 8 +---
config.h | 2 --
ptp4l.c | 6 ++
3 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/config.c b/config.c
index 143d9db..90d7659 100644
--- a/config.c
+++ b/config.c
@@ -99,6 +99,7 @@ struct config_item config_tab
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
ptp4l.c | 2 +-
3 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/config.c b/config.c
index 871e277..ad398c1 100644
--- a/config.c
+++ b/config.c
@@ -78,6 +78,7 @@ struct config_item {
struct config_item
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
ptp4l.c | 5 -
3 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/config.c b/config.c
index d3c19e5..871e277 100644
--- a/config.c
+++ b/config.c
@@ -77,6 +77,7 @@ struct config_item
Signed-off-by: Richard Cochran
---
config.c | 11 +++
config.h | 4
2 files changed, 15 insertions(+)
diff --git a/config.c b/config.c
index 934caa2..9ef8be1 100644
--- a/config.c
+++ b/config.c
@@ -24,6 +24,7 @@
#include
#include "config.h"
#include "eth
Signed-off-by: Richard Cochran
---
config.c | 7 +--
config.h | 1 -
phc2sys.c | 7 ---
pi.c | 11 +++
pi.h | 8 +---
ptp4l.c | 1 -
servo.c | 2 +-
7 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/config.c b/config.c
index b649cf0
501 - 600 of 1746 matches
Mail list logo