-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure on missing protocol version #4
Comments
I’m not sure that field is mandatory or optional, as it’s been so long since I worked on that implementation. Could you show the document to refer for that? |
@wmnsk Thanks |
OK I’ll check but give me some time to find it. |
No problem, I haven't had time to even pull up the spec files. If you let me know which ones you used to write this I don't mind poking around as it seems like there might be something similar going on in |
The documents I refer are ITU-T's Q.771 - Q.775. I think it's described in Q.773, which defines the format of messages. |
That would be fantastic, I'm not extremely familiar with the tcap protocol
so I'm just stumbling my way through it.
But I have also noticed that the `parseber` function doesn't seem to work
with `continue` segments. I can open another issue with that.
…On Sun., Nov. 29, 2020, 02:24 Yoshiyuki Kurauchi ***@***.***> wrote:
The documents I refer are ITU-T's Q.771 - Q.775. I think it's described in
Q.773, which defines the format of messages.
By the way, I saw some samples that have no Protocol Version field. So,
I'll fix the codes to check the presence of fields and accepts them even if
some are absent, as I make it as kind to real-world users as possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBIMNZZANRGMTWOSY5YKSTSSIANXANCNFSM4TY6IAEQ>
.
|
I might have misunderstood your case... I did not see any packets without Protocol Version, and I can't make it work without it easily. It'd be very helpful if you could provide the exact PCAP that caused the issue. Could you help with that? |
I will see what i can do to grab a clean one , But here are a couple screen shots of a pcap i have open right now. |
The problem with decoding Continue with |
@wmnsk I just tried the latest version and it seems like it still fails to parse it correctly
as for the pcap you are on the money about private info, I was thinking about a hex dump with a mask. I will find time today or tomorrow morning to do that. Sorry it's taking me a bit |
This should work for a hex dump, most things should be setup with dummy values where they matter (except the sizes). This is the tcap portion of the packet so it should just be able to get pushed through parseBER. Just let me know when you grab it so i can wipe it. Thanks
|
@wmnsk I'm guessing I pulled it off there before you grabbed it, I'll out it back today. I just didn't like the idea of leaving it up even if it did have altered hex values . |
I think I can find it in my email box, but unfortunately I don’t have time to work on this project these days. Give me some more time. |
It looks like if no protocol version is defined this function will fail to correctly process the rest of the bytes
go-tcap/dialogue-pdu.go
Lines 438 to 445 in 08bd257
The text was updated successfully, but these errors were encountered: