Signed-off-by: Hangbin Liu <liuhang...@gmail.com> --- port.c | 5 +++++ port.h | 7 +++++++ 2 files changed, 12 insertions(+)
diff --git a/port.c b/port.c index b28849f..d919c3e 100644 --- a/port.c +++ b/port.c @@ -2384,6 +2384,11 @@ struct interface *port_interface_get(struct port *p) return p->iface; } +void port_set_phc(struct port *p, int phc_index) +{ + p->phc_index = phc_index; +} + int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg) { struct management_tlv *mgt; diff --git a/port.h b/port.h index 7f9be42..b0d5db3 100644 --- a/port.h +++ b/port.h @@ -146,6 +146,13 @@ void port_link_status_set(struct port *p, int up); struct interface *port_interface_get(struct port *p); /** + * Sets the phc index for a port. + * @param p A port instance. + * @param phc_index the new phc index. + */ +void port_set_phc(struct port *p, int phc_index); + +/** * Manage a port according to a given message. * @param p A pointer previously obtained via port_open(). * @param ingress The port on which 'msg' was received. -- 2.5.5 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel