Signed-off-by: Hangbin Liu <liuhang...@gmail.com>
---
 port.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/port.c b/port.c
index 34837cc..849a7c1 100644
--- a/port.c
+++ b/port.c
@@ -68,6 +68,7 @@ struct nrate_estimator {
 struct port {
        LIST_ENTRY(port) list;
        char *name;
+       struct interface *iface;
        struct clock *clock;
        struct transport *trp;
        enum timestamp_type timestamping;
@@ -2619,6 +2620,7 @@ struct port *port_open(int phc_index,
        }
 
        p->name = interface->name;
+       p->iface = interface;
        p->asymmetry = config_get_int(cfg, p->name, "delayAsymmetry");
        p->asymmetry <<= 16;
        p->announce_span = transport == TRANS_UDS ? 0 : ANNOUNCE_SPAN;
-- 
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

Reply via email to