TNS Packet Length [message #663506] |
Tue, 06 June 2017 10:28 |
|
kreem
Messages: 5 Registered: June 2017
|
Junior Member |
|
|
Hi experts,
I generated some captures with my database Oracle in version 12c and i am trying to get the value of the field "packet length" in the TNS header.
However, I observed that sometimes the packet length is stored in 4 bytes instead of 2 bytes.
Have you any idea how can i detect the size of the packet length ?
Thanks you in advance for your reply
|
|
|
|
|
|
|
|
|
Re: TNS Packet Length [message #663532 is a reply to message #663527] |
Wed, 07 June 2017 06:27 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
kreem wrote on Wed, 07 June 2017 03:51I already made a research in google but anyone notice my use case.
How does WireShark NOT meet your use case? As BlackSwan said, oracle tns just uses tcp/ip. There's no "secret sauce" in tns.
Perhaps you need to explain in further detail exactly what you are trying to achieve. It's not at all clear what "I generated some captures with my database" really means.
[Updated on: Wed, 07 June 2017 06:28] Report message to a moderator
|
|
|
|
|
|
|
|
Re: TNS Packet Length [message #663748 is a reply to message #663572] |
Thu, 15 June 2017 15:03 |
|
Caffeine+
Messages: 14 Registered: February 2017
|
Junior Member |
|
|
Can you post the header dump, just the portions showing the differences? I suspect that the 2-byte headers are for the fixed type messages but it should at least have an x00 or other field termination code.
FYI that if you are building a TNS packet parser/sniffer, many many thanks. Hopefully you will open-source it so it can be used new tools.
|
|
|