Be tolerant of wrong a OUI in the follow up information.

Certain AVB bridges send their own OUI instead of the offical one.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-31 15:24:53 +02:00
parent 8a4b2ab9b8
commit 5ca99377b6
1 changed files with 1 additions and 1 deletions

2
port.c
View File

@ -295,7 +295,7 @@ static struct follow_up_info_tlv *follow_up_info_extract(struct ptp_message *m)
if (m->tlv_count != 1 || if (m->tlv_count != 1 ||
f->type != TLV_ORGANIZATION_EXTENSION || f->type != TLV_ORGANIZATION_EXTENSION ||
f->length != sizeof(*f) - sizeof(f->type) - sizeof(f->length) || f->length != sizeof(*f) - sizeof(f->type) - sizeof(f->length) ||
memcmp(f->id, ieee8021_id, sizeof(ieee8021_id)) || // memcmp(f->id, ieee8021_id, sizeof(ieee8021_id)) ||
f->subtype[0] || f->subtype[1] || f->subtype[2] != 1) { f->subtype[0] || f->subtype[1] || f->subtype[2] != 1) {
return NULL; return NULL;
} }