Skip to content

Commit

Permalink
port: Make the sync and announce transmit functions public.
Browse files Browse the repository at this point in the history
These functions will be needed by the new unicast mode.

Signed-off-by: Richard Cochran <[email protected]>
  • Loading branch information
richardcochran committed Jul 1, 2018
1 parent 05dce31 commit f94df4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions port.c
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ int port_delay_request(struct port *p)
return -1;
}

static int port_tx_announce(struct port *p, struct address *dst)
int port_tx_announce(struct port *p, struct address *dst)
{
struct timePropertiesDS *tp = clock_time_properties(p->clock);
struct parent_ds *dad = clock_parent_ds(p->clock);
Expand Down Expand Up @@ -1363,7 +1363,7 @@ static int port_tx_announce(struct port *p, struct address *dst)
return err;
}

static int port_tx_sync(struct port *p, struct address *dst)
int port_tx_sync(struct port *p, struct address *dst)
{
struct ptp_message *msg, *fup;
int err, event;
Expand Down
2 changes: 2 additions & 0 deletions port_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ int port_set_delay_tmo(struct port *p);
int port_set_qualification_tmo(struct port *p);
void port_show_transition(struct port *p, enum port_state next,
enum fsm_event event);
int port_tx_announce(struct port *p, struct address *dst);
int port_tx_sync(struct port *p, struct address *dst);
int process_announce(struct port *p, struct ptp_message *m);
void process_delay_resp(struct port *p, struct ptp_message *m);
void process_follow_up(struct port *p, struct ptp_message *m);
Expand Down

0 comments on commit f94df4f

Please sign in to comment.