hi all query on gtp_handler and decode function
prashanth joshi <[email protected]> Tue, 5 Sep 2006 02:56:09 -0700 (PDT)
| Newsgroups | gmane.network.ethereal.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1157184298== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------- The Ethereal project is being continued at a new site. Please go to http://www.wireshark.org and subscribe to [email protected]. Don't forget to unsubscribe from this list at http://www.ethereal.com/mailman/listinfo/ethereal-dev ------------------- --===============1157184298== Content-Type: multipart/alternative; boundary="0-685618842-1157450169=:95152" Content-Transfer-Encoding: 7bit --0-685618842-1157450169=:95152 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, I'm adding a decoder for the gtp. My query is : 1 ) So gtp_handle will do the dissection. It refers to the file packet_= gtp.c . Finds the hex value for example in the following statement : #define GTP_EXT_XXX 0x8f and then if its value in the header matches 0x8f, refers to the (val, = decode_fun) pair and then calls decode_fun to handle the decoding. Now my question is : will the pointer tvb ( which is tvb_buff * tvb) be= incremented automatically when it enters the function decode_fun ? Or we= have to explicitly increment the pointer tvb to account for the byte con= taining 0x8f value? =20 =20 My other questions are : 2) I'm trying to locate the file containing the definition for the func= tion gtp_handle. But I'm not able to find it. Kindly can one please tell = me where its definition is? =20 3) Before actually starting the decoding in our decode function what is= the code that we have to write and what that is for? =20 regards, Prashanth. =20 =20 =09 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. --0-685618842-1157450169=:95152 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <div>Hi all,</div> <div>I'm adding a decoder for the gtp. My query = is :</div> <div>1 ) So gtp_handle will do the dissection. It refers to t= he file packet_gtp.c .</div> <div>Finds the hex value for example in the= following statement :</div> <div>#define = GTP_EXT_XXX 0x8f</div> <div> and then= if its value in the header matches 0x8f, refers to the (val, decode_fun)= pair and then calls decode_fun to handle the decoding.</div> <div= >Now my question is : will the pointer tvb ( which is tvb_buff * tvb) be = incremented automatically when it enters the function decode_fun ? Or we = have to explicitly increment the pointer tvb to account for the byte cont= aining 0x8f value?</div> <div> </div> <div> </div> <div>My o= ther questions are :</div> <div>2) I'm trying to locate the file contain= ing the definition for the function gtp_handle. But I'm not able to find = it. Kindly can one please tell me where its definition is?</div> <div> </div> <div>3) Before actually sta= rting the decoding in our decode function what is the code that we have t= o write and what that is for?</div> <div> </div> <div>regards,</di= v> <div>Prashanth.</div> <div> </div> <div> </div><p>  <hr size=3D1>Do you Yahoo!?<br> Everyone is raving about the <a href=3D= "http://us.rd.yahoo.com/evt=3D42297/*http://advision.webevents.yahoo.com/= mailbeta"> all-new Yahoo! Mail.</a> --0-685618842-1157450169=:95152-- --===============1157184298== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ethereal-dev mailing list [email protected] http://www.ethereal.com/mailman/listinfo/ethereal-dev --===============1157184298==--