You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appear that the for loop that extracts the time stamp from the ptp messages are dependent on the source port. Example if int(pkt.udp.port) == PTP_PORT_1 and int(pkt.ptp.v2_messageid) == MSG_ID_SYNC_MSG:
The if statement evaluates to false if the UDP source port is not 319.
Sine this is a sync message should the if statement evaluate the destination port?
The text was updated successfully, but these errors were encountered:
I just opened IEEE 1588, and Annex E says:
E.2 UDP port numbers
"The UDP destination port value of an event message shall be 319." Will you propose a pull request?
Note, The PTP script is just a small demonstration. In a good implementation, one would like to a state machine to keep track of the PTP communication.
It appear that the for loop that extracts the time stamp from the ptp messages are dependent on the source port. Example if int(pkt.udp.port) == PTP_PORT_1 and int(pkt.ptp.v2_messageid) == MSG_ID_SYNC_MSG:
The if statement evaluates to false if the UDP source port is not 319.
Sine this is a sync message should the if statement evaluate the destination port?
The text was updated successfully, but these errors were encountered: