Do not qualify announce messages with stepsRemoved >= 255

See IEEE1588-2008 section 9.3.2.5 (d)

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
master
Delio Brignoli 2013-08-21 14:09:51 +02:00 committed by Richard Cochran
parent ad1b14e126
commit b268cf048b
1 changed files with 7 additions and 0 deletions

7
port.c
View File

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