"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "epan/dissectors/packet-ptp.c" between
wireshark-3.4.5.tar.xz and wireshark-3.4.6.tar.xz

About: Wireshark is a network protocol analyzer. It lets you capture and interactively browse the traffic running on a computer network.

packet-ptp.c  (wireshark-3.4.5.tar.xz):packet-ptp.c  (wireshark-3.4.6.tar.xz)
skipping to change at line 2538 skipping to change at line 2538
col_add_str(pinfo->cinfo, COL_INFO, col_add_str(pinfo->cinfo, COL_INFO,
val_to_str_ext(ptp_v2_messageid, &ptp_v2_messageid_vals_ext, "Unknown PTP Message (%u)")); val_to_str_ext(ptp_v2_messageid, &ptp_v2_messageid_vals_ext, "Unknown PTP Message (%u)"));
break; break;
} }
} }
else else
{ {
col_add_str(pinfo->cinfo, COL_INFO, val_to_str_ext(ptp_v2_messageid, &pt p_v2_messageid_vals_ext, "Unknown PTP Message (%u)")); col_add_str(pinfo->cinfo, COL_INFO, val_to_str_ext(ptp_v2_messageid, &pt p_v2_messageid_vals_ext, "Unknown PTP Message (%u)"));
if (ptp_v2_messageid == PTP_V2_SIGNALLING_MESSAGE) if (ptp_v2_messageid == PTP_V2_SIGNALLING_MESSAGE)
{ {
guint proto_len;
guint32 tlv_offset; guint32 tlv_offset;
guint16 tlv_type; guint16 tlv_type;
guint32 org_id; guint32 org_id;
guint32 subtype; guint32 subtype;
guint16 tlv_length; guint16 tlv_length;
guint16 wr_messageId; guint16 wr_messageId;
proto_len = tvb_reported_length(tvb);
tlv_offset = PTP_V2_SIG_TLV_START; tlv_offset = PTP_V2_SIG_TLV_START;
while (tlv_offset < proto_len) while (tlv_offset + PTP_V2_SIG_TLV_LENGTH_LEN + PTP_V2_SIG_TLV_TYPE_ LEN <= msg_len)
{ {
tlv_length = tvb_get_ntohs(tvb, tlv_offset + PTP_V2_SIG_TLV_LE NGTH_OFFSET); tlv_length = tvb_get_ntohs(tvb, tlv_offset + PTP_V2_SIG_TLV_LE NGTH_OFFSET);
tlv_type = tvb_get_ntohs(tvb, tlv_offset + PTP_V2_SIG_TLV_TY PE_OFFSET); tlv_type = tvb_get_ntohs(tvb, tlv_offset + PTP_V2_SIG_TLV_TY PE_OFFSET);
if (tlv_type == PTP_V2_TLV_TYPE_ORGANIZATION_EXTENSION) if (tlv_type == PTP_V2_TLV_TYPE_ORGANIZATION_EXTENSION)
{ {
org_id = tvb_get_ntoh24(tvb, tlv_offset + PTP_V2_SIG_TLV _ORGANIZATIONID_OFFSET); org_id = tvb_get_ntoh24(tvb, tlv_offset + PTP_V2_SIG_TLV _ORGANIZATIONID_OFFSET);
subtype = tvb_get_ntoh24(tvb, tlv_offset + PTP_V2_SIG_TL V_ORGANIZATIONSUBTYPE_OFFSET); subtype = tvb_get_ntoh24(tvb, tlv_offset + PTP_V2_SIG_TL V_ORGANIZATIONSUBTYPE_OFFSET);
if (org_id == OUI_CERN && subtype == PTP_V2_OE_ORG_CERN_ SUBTYPE_WR_TLV) if (org_id == OUI_CERN && subtype == PTP_V2_OE_ORG_CERN_ SUBTYPE_WR_TLV)
 End of changes. 3 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)