erezgeva / libptpmgmt

Library to communicate with linuxptp using IEEE 1558 management messages over Unix network. The library provide functionality that is provided by the pmc tool of the linuxptp project.
Other
24 stars 5 forks source link

Update m_actionField on message parse() call #9

Closed comio closed 1 year ago

comio commented 1 year ago

Hi Erez,

I noticed that calling parse() the m_actionField is not update. I don't know if this is a your choice or just a missing line of code.

Kindly, can you check this? ciao

luigi

erezgeva commented 1 year ago

Hi Erez,

I noticed that calling parse() the m_actionField is not update. I don't know if this is a your choice or just a missing line of code.

Kindly, can you check this? ciao

luigi

Hi Luigi,

Thanks you for the feedback.

The parsed message action field is saved in m_replyAction. The user/developer can fetch the value with the getReplyAction() method.

We try to separate parsed values from parameters set by user/developer. The m_sendAction parameter is used during build. And the user/developer can set it with the setAction(...) method.

Please do not hesitate to challenge, find bugs and suggest changes.

Thank you Erez Geva