Re: [wireshark] TODO features

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Niels for all the inputs sure it will help a lot for a good start.

Regards,
Vikhyat


From: "Niels de Vos" <ndevos@xxxxxxxxxx>
To: "Vikhyat Umrao" <vumrao@xxxxxxxxxx>
Cc: gluster-devel@xxxxxxxxxxx
Sent: Tuesday, April 29, 2014 11:16:20 PM
Subject: Re: [Gluster-devel] [wireshark] TODO features

On Tue, Apr 29, 2014 at 06:25:15AM -0400, Vikhyat Umrao wrote:
> Hi,
>
> I am interested in TODO wireshark features for GlusterFS :
> I can start from below given feature for one procedure:
> => display the filename or filehandle on the summary for common procedures

Things to get you and others prepared:

1. go to https://forge.gluster.org/wireshark/pages/Todo
2. login and edit the wiki page, add your name to the topic
3. clone the wireshark repository:
   $ git clone git@xxxxxxxxxxxxxxxxx:wireshark/wireshark.git
   (you have been added to the 'wireshark' group, so you should have
   push access over ssh)
4. create a new branch for your testing
   $ git checkout -t -b wip/master/visible-filenames upstream/master
5. make sure you have all the dependencies for compiling Wireshark
   (quite a lot are needed)
   $ ./autogen.sh
   $ ./configure --disable-wireshark
   (I tend to build only the commandline tools like 'tshark')
   $ make
6. you should now have a ./tshark executable that you can use for
   testing


The changes you want to make are in epan/dissectors/packet-glusterfs.c.  
For example, start with adding the name of the file/dir that is passed
to LOOKUP. The work to dissect the data in the network packet is done in
glusterfs_gfs3_3_op_lookup_call(). It does not really matter on how that
function gets executed, that is more a thing for an other task (add
support for new procedures).

In the NFS-dissector, you can see how this is done. Check the
implementation of the dissect_nfs3_lookup_call() function in
epan/dissectors/packet-nfs.c. The col_append_fstr() function achieves
what you want to do.

Of course, you really should share your changes! Now, 'git commit' your
change with a suitable commit message and do

    $ git push origin wip/master/visible-filenames

Your branch should now be visible under
https://forge.gluster.org/wireshark/wireshark. Let me know, and I'll
give it a whirl.

Now you've done the filename for LOOKUP, I'm sure you can think of other
things that make sense to get displayed.

Do ask questions and send corrections if something is missing, or not
working as explained here. This email should probably get included in
the projects wiki https://forge.gluster.org/wireshark/pages/Home some
where.

Good luck,
Niels

_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux