Post by Geoff SalmonHi
Can anyone shed some light on what values the physicalLayerProtocol
field in CLOCK_DESCRIPTION management messages can have? All I get from
the standard is Section 15.5.3.1.2.2 saying it "shall indicate the
physical layer protocol".
FWIW, my OTMC 100 answers this query with "IEEE 802.3".
If you have access to some other commerical PTP products, you might
just see how they answer the query. I patched the pmc, below, and then
watched for the reply in wireshark.
HTH,
Richard
---
diff --git a/pmc.c b/pmc.c
index 5e000bb..620ff1a 100644
--- a/pmc.c
+++ b/pmc.c
@@ -86,7 +86,7 @@ struct management_id idtab[] = {
{ "TIME_STATUS_NP", TIME_STATUS_NP, do_get_action },
/* Port management ID values */
{ "NULL_MANAGEMENT", NULL_MANAGEMENT, null_management },
- { "CLOCK_DESCRIPTION", CLOCK_DESCRIPTION, not_supported },
+ { "CLOCK_DESCRIPTION", CLOCK_DESCRIPTION, do_get_action },
{ "PORT_DATA_SET", PORT_DATA_SET, do_get_action },
{ "LOG_ANNOUNCE_INTERVAL", LOG_ANNOUNCE_INTERVAL, not_supported },
{ "ANNOUNCE_RECEIPT_TIMEOUT", ANNOUNCE_RECEIPT_TIMEOUT, not_supported },
@@ -248,6 +248,9 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
tsn->gmPresent ? "true" : "false",
cid2str(&tsn->gmIdentity));
break;
+ case CLOCK_DESCRIPTION:
+ fprintf(fp, "CLOCK_DESCRIPTION ");
+ break;
case PORT_DATA_SET:
p = (struct portDS *) mgt->data;
if (p->portState > PS_SLAVE) {