port: track interface info in port

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
master
Hangbin Liu 2017-10-09 22:31:40 +08:00 committed by Richard Cochran
parent 9e744d9e8a
commit 7e294a4d04
1 changed files with 2 additions and 0 deletions

2
port.c
View File

@ -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;