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
parent
6dedf8bc24
commit
42b2173a4d
4
clock.c
4
clock.c
|
@ -792,10 +792,6 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
|
|||
*/
|
||||
switch (management_action(msg)) {
|
||||
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))
|
||||
return;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue