Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Applications
Reload this Page how to extract field value from tethereal using edt
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Applications I cant get "X" app to work... also discussion about linux programs.

Reply
 
Thread Tools Display Modes
Old 01-24-2007   #1 (permalink)
himanshu_nayak1974
Just Joined!
 
Join Date: Dec 2006
Posts: 14
how to extract field value from tethereal using edt

<proto name="frame">
<field name="frame.marked" size="0"/>
<field name="frame.time"/>
<field name="frame.time_delta"/>
<field name="frame.time_relative"/>
<field name="frame.number"/>
<field name="frame.pkt_len"/>
<field name="frame.cap_len"/>
<field name="frame.protocols"/>
</proto>
<proto name="mtp2">
<field name="mtp2.bsn" value="51" unmaskedvalue="d1"/>
<field name="mtp2.bib" value="1" unmaskedvalue="d1"/>
<field name="mtp2.fsn" value="5A" unmaskedvalue="da"/>
<field name="mtp2.fib" value="1" unmaskedvalue="da"/>
<field name="mtp2.li" value="1B" unmaskedvalue="1b"/>
<field name="mtp2.spare" value="0" unmaskedvalue="1b"/>
</proto>
<proto name="mtp3">
<field show="Service information octet" size="1" value="85">
<field name="mtp3.spare" value="0" unmaskedvalue="85"/>
<field name="mtp3.service_indicator" value="5" unmaskedvalue="85"/>
</field>
<field show="Routing label" size="4" value="76429d10">
<field name="mtp3.pc" size="4" value="76429d10"/>
<field name="mtp3.pc" size="4" value="76429d10"/>
<field name="mtp3.dpc" value="276" unmaskedvalue="76429d10"/>
<field name="mtp3.opc" value="275" unmaskedvalue="76429d10"/>
<field name="mtp3.sls" value="1" unmaskedvalue="76429d10"/>
</field>
</proto>


Q.my question:
The above shows the output of pdml generated by tethereal.
how can i find out the value=85(red line) from the above using edt. i am able to find out show="Service information octet" using edt as follows:
edt->tree->first_child->next->next->firsrt_child->finfo->rep->representation
and also size:
edt->tree->first_child->next->next->firsrt_child->finfo->length
similarly how can i find out value="85" using edt and finfo field.
himanshu_nayak1974 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 12:06 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0