Skip to content

Commit

Permalink
Do not qualify announce messages with stepsRemoved >= 255
Browse files Browse the repository at this point in the history
See IEEE1588-2008 section 9.3.2.5 (d)

Signed-off-by: Delio Brignoli <[email protected]>
  • Loading branch information
dbrignoli authored and richardcochran committed Aug 23, 2013
1 parent ad1b14e commit b268cf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions port.c
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,13 @@ struct dataset *port_best_foreign(struct port *port)
static int process_announce(struct port *p, struct ptp_message *m)
{
int result = 0;

/* Do not qualify announce messages with stepsRemoved >= 255, see
* IEEE1588-2008 section 9.3.2.5 (d)
*/
if (m->announce.stepsRemoved >= 255)
return result;

switch (p->state) {
case PS_INITIALIZING:
case PS_FAULTY:
Expand Down

0 comments on commit b268cf0

Please sign in to comment.