msg: Share a static global more globally.
Any code that wants to call one_step() needs to link with the static global 'assume_two_step'. This patch moves that variable's definition from ptp4l.c to msg.c. Not only is that file the more natural choice (since the variable is used on msg.h) but also this allows other programs to call the one_step() function. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
99fd084253
commit
ae28894814
2
msg.c
2
msg.c
|
@ -32,6 +32,8 @@
|
||||||
#define VERSION_MASK 0x0f
|
#define VERSION_MASK 0x0f
|
||||||
#define VERSION 0x02
|
#define VERSION 0x02
|
||||||
|
|
||||||
|
int assume_two_step = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Head room fits a VLAN Ethernet header, and 'msg' is 64 bit aligned.
|
* Head room fits a VLAN Ethernet header, and 'msg' is 64 bit aligned.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue