Wireshark mailing list archives
Is that a bug in packet-gsm_sms.c ?
From: "damker" <damker () sina com>
Date: Sun, 3 Apr 2011 20:52:02 +0800
Begin with line 2945 , it said that : /* * there does not seem to be a way to determine that this * deliver report is from an RP-ERROR or RP-ACK other * than to look at the next octet * * FCS values are 0x80 and higher * PI uses bit 7 as an extension indicator * * will assume that if bit 7 is set then this octet * is an FCS otherwise PI */ offset++; oct = tvb_get_guint8(tvb, offset); if (oct & 0x80) { dis_field_fcs(tvb, tree, offset, oct); offset++; } pi = tvb_get_guint8(tvb, offset); dis_field_pi(tvb, tree, offset, pi); .. "will assume that if bit 7 is set then this octet is an FCS otherwise PI" means that the octet is a FCS or a PI , if it is a FCS ,it is not a PI ; If it is a PI , it is not a FCS . if (oct & 0x80) { dis_field_fcs(tvb, tree, offset, oct); offset++; } pi = tvb_get_guint8(tvb, offset); dis_field_pi(tvb, tree, offset, pi); means that it can be a FCS with PI?
___________________________________________________________________________ Sent via: Wireshark-users mailing list <wireshark-users () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-users Unsubscribe: https://wireshark.org/mailman/options/wireshark-users mailto:wireshark-users-request () wireshark org?subject=unsubscribe
Current thread:
- Wireshark : checking a new protocol ankit sambyal (Apr 02)
- Is that a bug in packet-gsm_sms.c ? damker (Apr 03)
- Re: Is that a bug in packet-gsm_sms.c ? Guy Harris (Apr 03)
- 答复: Is that a bug in packet-gsm_sms.c ? damker (Apr 03)
- Re: 答复: Is that a bug in packet-gsm_sms.c ? Guy Harris (Apr 03)
- 答复: 答复: Is that a bug in packet-gsm_sms.c ? damker (Apr 03)
- Re: Is that a bug in packet-gsm_sms.c ? Guy Harris (Apr 03)
- Is that a bug in packet-gsm_sms.c ? damker (Apr 03)