Allow received GET management messages to have bodies

You'd probably expect the body of GET messages to be empty, but
interpretation #29 in
http://standards.ieee.org/findstds/interps/1588-2008.html implies
otherwise. With this change, ptp4l will respond to GETs containing
either an empty dataField or a dataField whose length matches the
managementId. If present, the contents of the dataField are ignored.

Signed-off-by: Geoff Salmon <gsalmon@se-instruments.com>
master
Geoff Salmon 2013-06-28 00:58:08 -04:00 committed by Richard Cochran
parent 6dedf8bc24
commit 42b2173a4d
1 changed files with 0 additions and 4 deletions

View File

@ -792,10 +792,6 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
*/ */
switch (management_action(msg)) { switch (management_action(msg)) {
case GET: case GET:
if (mgt->length != 2) {
clock_management_send_error(p, msg, WRONG_LENGTH);
return;
}
if (clock_management_get_response(c, p, mgt->id, msg)) if (clock_management_get_response(c, p, mgt->id, msg))
return; return;
break; break;