By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,316 Members | 617 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,316 IT Pros & Developers. It's quick & easy.

Jpcap , How to extract data from OLSR?

P: 3
I am using jpcap to capture OLSR topology control (udp) packets.

Does anyone know how to extract data (the way ethereal does it) from the olsr packet?

There are methods to extract data from udp and IP packets in jpcap but the issue is that olsr packets have their own header-data and since jpcap can not dig that far, I get nonsense as packet data.

1. Am I right to assume that jpcap can not dig to the data part of the packet content when olsr is the routing protocol?
2. Is there anyway to extract actual packet data from the olsr packet?
3. Is this true that if ethereal can do it, I should be able to do it with Jpcap too?

Much thanks.
Dec 7 '06 #1
Share this Question
Share on Google+
2 Replies

P: 3
Ok, I figured it out. In order to read a packet you should learn what each byte means. To do so, you need to first get the packet header and data in binray form, then convert then to readable characters. Then by try and error or a comparison with ethereal output, you'll eventually learn what each byte means, hence you'll know how to interpret each packet.

Please feel free to contact me if you need specifics and/or example.

Dec 8 '06 #2

P: 1
I have a question. That is, how can i convert the into readable ASCII?
why when i use new String(, "UTF-8");

the content of the package data always be the garbled character?

I hope you can give me the answer...

Thanks a lot,
Mar 26 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.