Skip to content

Commit

Permalink
Introduce unicast service.
Browse files Browse the repository at this point in the history
This patch adds new code that handles unicast service contracts,
sending messages according the negotiated schedule.

Signed-off-by: Richard Cochran <[email protected]>
  • Loading branch information
richardcochran committed Jul 2, 2018
1 parent dfa9e65 commit 6359868
Show file tree
Hide file tree
Showing 5 changed files with 622 additions and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ OBJ = bmc.o clock.o clockadj.o clockcheck.o config.o e2e_tc.o fault.o \
filter.o fsm.o hash.o linreg.o mave.o mmedian.o msg.o ntpshm.o nullf.o phc.o \
pi.o port.o port_signaling.o pqueue.o print.o ptp4l.o p2p_tc.o raw.o rtnl.o \
servo.o sk.o stats.o tc.o telecom.o tlv.o transport.o tsproc.o udp.o udp6.o \
uds.o unicast_client.o unicast_fsm.o util.o version.o
uds.o unicast_client.o unicast_fsm.o unicast_service.o util.o version.o

OBJECTS = $(OBJ) hwstamp_ctl.o nsm.o phc2sys.o phc_ctl.o pmc.o pmc_common.o \
sysoff.o timemaster.o
Expand Down
2 changes: 2 additions & 0 deletions missing.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ enum {

#else

#define TFD_TIMER_ABSTIME (1 << 0)

static inline int clock_nanosleep(clockid_t clock_id, int flags,
const struct timespec *request,
struct timespec *remain)
Expand Down
2 changes: 2 additions & 0 deletions port_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ struct port {
TAILQ_HEAD(tct, tc_txd) tc_transmitted;
/* unicast client mode */
struct unicast_master_table *unicast_master_table;
/* unicast service mode */
struct unicast_service *unicast_service;
};

#define portnum(p) (p->portIdentity.portNumber)
Expand Down
Loading

0 comments on commit 6359868

Please sign in to comment.