From: Izunna Otiji <izunna.otiji...@renesas.com> Signed-off-by: Izunna Otiji <izunna.otiji...@renesas.com> --- port.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/port.c b/port.c index 871ad68..28eb486 100644 --- a/port.c +++ b/port.c @@ -831,6 +831,8 @@ static void port_management_send_error(struct port *p, struct port *ingress, static const Octet profile_id_drr[] = {0x00, 0x1B, 0x19, 0x00, 0x01, 0x00}; static const Octet profile_id_p2p[] = {0x00, 0x1B, 0x19, 0x00, 0x02, 0x00}; +static const Octet profile_id_8275_1[] = {0x00, 0x19, 0xA7, 0x01, 0x02, 0x03}; +static const Octet profile_id_8275_2[] = {0x00, 0x19, 0xA7, 0x02, 0x01, 0x02}; static int port_management_fill_response(struct port *target, struct ptp_message *rsp, int id) @@ -926,7 +928,17 @@ static int port_management_fill_response(struct port *target, if (target->delayMechanism == DM_P2P) { memcpy(buf, profile_id_p2p, PROFILE_ID_LEN); } else { - memcpy(buf, profile_id_drr, PROFILE_ID_LEN); + struct config *cfg = clock_config(target->clock); + if (config_get_int(cfg, NULL, "dataset_comparison") == + DS_CMP_G8275) { + if (transport_type(target->trp) == TRANS_IEEE_802_3) { + memcpy(buf, profile_id_8275_1, PROFILE_ID_LEN); + } else { + memcpy(buf, profile_id_8275_2, PROFILE_ID_LEN); + } + } else { + memcpy(buf, profile_id_drr, PROFILE_ID_LEN); + } } buf += PROFILE_ID_LEN; datalen = buf - tlv->data; -- 2.37.2 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel