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 {
CONFIG_ITEM_IN
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/con
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 "ether.h"
+#include "hash.h
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 a47e
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(-)
dif
Changes in V5:
- Add a string type
- Convert every last option
- Lightly refactor the pasring code
Changes in V4:
- Added missing calls to config_get_double() for:
"pi_integral_exponent"
"pi_integral_norm_max"
"pi_integral_scale"
"pi_proportional_exponent"
"pi_proportional_norm_max"
Cha
This patch introduces generic code for adding and parsing new options.
The public 'get' methods return option values directly. Although the
API is easy to use, it does not provide error checking in case the
option does not exist or if there is a type mismatch.
Therefore the code performs a BIST t
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 con
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
@@ -97,
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 config_t
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
@@ -98,6
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 config_
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..3bd98d
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..15
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 @@ stru
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/co
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 config
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 config_t
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"
#include "contain.h"
#inclu
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 --g
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 confi
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 cl
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 config_item
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 co
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 config_t
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 config_ite
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 @@ s
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 @@ s
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 @@ s
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 config_i
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 +99
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..15
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(-)
dif
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 a47e
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/con
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"
#include "contain.h"
#inclu
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 con
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 {
CONFIG_ITEM_IN
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 "ether.h"
+#include "hash.h
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..3bd98d
Changes in V5:
- Add a string type
- Convert every last option
- Lightly refactor the pasring code
Changes in V4:
- Added missing calls to config_get_double() for:
"pi_integral_exponent"
"pi_integral_norm_max"
"pi_integral_scale"
"pi_proportional_exponent"
"pi_proportional_norm_max"
Cha
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 | 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[]
This patch introduces generic code for adding and parsing new options.
The public 'get' methods return option values directly. Although the
API is easy to use, it does not provide error checking in case the
option does not exist or if there is a type mismatch.
Therefore the code performs a BIST t
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 @@ s
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
@@ -98,6
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 | 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 @@ stru
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 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/co
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 --g
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 @@ s
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 +99
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 co
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 config_i
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
---
clock.c | 6 --
config.c | 14 +-
config.h | 1 -
ds.h | 1 -
port.c | 2 +-
ptp4l.c | 1 -
6 files changed, 6 insertions(+), 19 deletions(-)
diff --git a/clock.c b/clock.c
index 0856f81..73cf016 100644
--- a/clock.c
+++ b/clock.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
@@ -97,
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 config
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 +--
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("
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 | 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
---
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
--- a
Signed-off-by: Richard Cochran
---
config.c | 10 ++
config.h | 1 -
ether.h | 1 -
ptp4l.8 | 8
ptp4l.c | 1 -
raw.c| 16
raw.h| 5 -
7 files changed, 18 insertions(+), 24 deletions(-)
diff --git a/config.c b/config.c
index c878178..c88a308
Signed-off-by: Richard Cochran
---
clock.c | 2 +-
config.c | 7 +--
ds.h | 1 -
ptp4l.c | 1 -
4 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/clock.c b/clock.c
index f31ae42..c64fdaa 100644
--- a/clock.c
+++ b/clock.c
@@ -882,7 +882,7 @@ struct clock *clock_create(struc
Signed-off-by: Richard Cochran
---
config.c | 11 ++-
config.h | 1 -
ether.h | 1 -
ptp4l.8 | 8
ptp4l.c | 1 -
raw.c| 15 ++-
raw.h| 5 -
7 files changed, 16 insertions(+), 26 deletions(-)
diff --git a/config.c b/config.c
index c88a308..5aac1c7
Signed-off-by: Richard Cochran
---
clock.c | 2 +-
config.c | 7 +--
ds.h | 1 -
ptp4l.c | 1 -
4 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/clock.c b/clock.c
index ee20a3c..ab048f5 100644
--- a/clock.c
+++ b/clock.c
@@ -830,7 +830,7 @@ struct clock *clock_create(struc
Signed-off-by: Richard Cochran
---
clock.c | 3 ++-
config.c | 8 ++--
config.h | 1 -
phc2sys.c | 5 -
pmc.c | 6 +-
ptp4l.c | 2 --
uds.c | 3 +--
uds.h | 5 -
8 files changed, 14 insertions(+), 19 deletions(-)
diff --git a/clock.c b/clock.c
index 320a84c..f94
Signed-off-by: Richard Cochran
---
config.c | 15 +--
config.h | 1 -
ds.h | 1 -
port.c | 4 ++--
ptp4l.c | 1 -
5 files changed, 3 insertions(+), 19 deletions(-)
diff --git a/config.c b/config.c
index f9d5777..d0451e3 100644
--- a/config.c
+++ b/config.c
@@ -93,6 +93,7 @
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
---
config.c | 66 ++---
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[] = {
GLOB_IT
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 73cf016..8c20d64 100644
--- a/clock.c
+++ b/clock.c
@@ -824,7 +824,7 @@ struct clock *clock_create(st
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("ass
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
@@ -8
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(st
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 *clock_creat
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/cloc
Global default values will be static strings, but values from the
configuration file will be dynamic, so the code remembers whether or it
should free the string when cleaning up.
Signed-off-by: Richard Cochran
---
config.c | 70
co
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 config_t
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 @@ str
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 config_
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 | 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 {
1 - 100 of 127 matches
Mail list logo