From 7e294a4d047654f746c3fcdff7bce512be149e37 Mon Sep 17 00:00:00 2001 From: Hangbin Liu Date: Mon, 9 Oct 2017 22:31:40 +0800 Subject: [PATCH] port: track interface info in port Signed-off-by: Hangbin Liu --- 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;