If you really wanted this TLV, all you would need to do is:

On Mon, Oct 08, 2018 at 12:54:46PM +0000, Anders Selhammer wrote:
> +     case TLV_UNICAST_NEGOTIATION_ENABLE:
> +             mtd = (struct management_tlv_datum *)tlv->data;
> +             if (mtd->val) {

        re-set the unicast_state;
        start the timer;

> +             } else {

        cancel subscriptions;
        stop the timer;

> +             }
> +             break;

You don't need to muck with the unicast_fsm for that.

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to