[PD] Pd network sniffer

Jordi Sala poperbu at gmail.com
Sun Dec 13 22:49:43 CET 2015


Hi,
I've been looking the object again. I didn't remember, but there is a
default option that sets the num. of bytes of data to 0. So that is the
cause that there is no data in outlet 10. If you send a message [data x]
where x is the max number of bytes of data to output. (you can see it in
help files)

By default is 0 so the payload out is off, if data > 0 the payload out is
on, BUT it can lock pd. The solution is to increase the delay between
captures (default is 100ms). To increase the delay time: message [timeout
ms] where ms is the num. of miliseconds between captures.

I hope it will solve your problem!!

2015-12-13 18:11 GMT+01:00 Benjamin ~ b01 <benjah at free.fr>:

> Le 13/12/2015 13:11, Olivier Baudu a écrit :
> >
> > Le 13/12/2015 11:39, Jordi Sala a écrit :
> >> Hi,
> >>
> >> I've compiled it again. I can see the problem with outlet 10 (Data).
> >> I'll check it during next days!
> great if you can solve it,
> ++thanks for your work/time
>
> b
> >>
> >> Thanks a lot!!
> >>
> > Thanks a lot to you ! :-D
> >
> > °1
> >
> >> 2015-12-13 4:07 GMT+01:00 Olivier Baudu <01ivier at labomedia.net
> >> <mailto:01ivier at labomedia.net>>:
> >>
> >>
> >>     Le 13/12/2015 03:23, Jordi Sala a écrit :
> >>     > Hi,
> >>     >
> >>     > I did pdpcap. It is based on libpcap (so it's like tcpdump). What
> is the
> >>     > problem of packet content? The data format? I can try to modify
> it to
> >>     > get the content of packet correctly. (I'm not have a lot of time,
> but
> >>     > I'll try it).
> >>     >
> >>
> >>     Hi Jordi,
> >>
> >>     First of all, thank you for your work. :-)
> >>
> >>     Then, the problem with the packet content is that there is no
> >>     content... :-/
> >>     Every outlets are working fine except the 10th : "Data bytes in
> >>     hexadecimal (symbol)"
> >>
> >>     I'm on an Ubuntu 14.04 with Pd 0.45.4
> >>
> >>     I'm quite a noob in compilation and I didn't know exactly which
> packet I
> >>     need to install so I did this :
> >>     sudo apt-get install libpcap-dev libpcap0.8 libpcap0.8-dev
> >>
> >>     and
> >>
> >>     make
> >>
> >>     Did I miss something ?
> >>
> >>     Thanks for your help.
> >>
> >>     °1ivier
> >>
> >>
> >>     >
> >>     >
> >>     > 2015-12-13 2:56 GMT+01:00 Olivier Baudu <01ivier at labomedia.net
> <mailto:01ivier at labomedia.net>
> >>     > <mailto:01ivier at labomedia.net <mailto:01ivier at labomedia.net>>>:
> >>     >
> >>     >     @IOhannes: :-D You're right... I should be more specific...
> sorry...
> >>     >     A tcpdump-like tool is what I'm looking for...
> >>     >
> >>     >     Le 12/12/2015 14:17, Benjamin ~ b01 a écrit :
> >>     >     > hello,
> >>     >     >
> >>     >     > the files are still available on this page :
> >>     >     >
> http://musa.poperbu.net/index.php/puredata-mainmenu-50#pdpcap
> >>     >     > or directly http://musa.poperbu.net/files/pcap0.0.5.tar.gz
> >>     >     > I tired to compile it several times mainly on ubuntu &
> debian, it works
> >>     >     > but I never managed to get the content of the packets in
> hex or ascii
> >>     >     > format whereas I have the other infos
> >>     >     > so I switched to shell and tcpdump
> >>     >     >
> http://wiki.labomedia.org/index.php/Scripts_bash_linux_audiovisuel#Network_sonification
> >>     >     > let me know if it works for you
> >>     >     >
> >>     >
> >>     >     Thanks a lot Benjamin.
> >>     >     Your wiki looks full of resources... :-p
> >>     >
> >>     >     Well, as you said, the compilation was easy (for Ubuntu), and
> it works
> >>     >     fine...
> >>     >     ... except for the data. :-/
> >>     >
> >>     >     So I tried tcpdump with [shell] as root...
> >>     >     And it works too... (until it freezes)
> >>     >     Now, I have to find a way to use the data... (before it
> freezes) :-p
> >>     >
> >>     >     Thanks, again...
> >>     >
> >>     >     (have you already ask Poperbu about the [tcpcap_device] issue
> ?
> >>     >     @Nicolas Montgermont : If you're in the corner, does the OSX
> version
> >>     >     give the data as expected ? Thank you.
> >>     >     )
> >>     >
> >>     >     °1ivier
> >>     >
> >>     >     > ++
> >>     >     > b
> >>     >     >
> >>     >     > Le 10/12/2015 14:45, IOhannes m zmoelnig a écrit :
> >>     >     >> On 2015-12-10 14:41, Olivier Baudu wrote:
> >>     >     >>> Does anyone have a version of the project somewhere ?
> >>     >     >>> Or, an other "pd native" way to sniff network ?
> >>     >     >> i don't.
> >>     >     >>
> >>     >     >> but you might be more specific on which level/layer you
> want to sniff.
> >>     >     >> (in a way a trivial [netreceive -b -u 7000] is a network
> sniffer that
> >>     >     >> will sniff for all UDP/broadcast traffic on port 7000 ;-))
> >>     >     >>
> >>     >     >> fgmasdr
> >>     >     >> IOhannes
> >>     >     >>
> >>     >     >>
> >>     >     >>
> >>     >     >> _______________________________________________
> >>     >     >> Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>
> >>     <mailto:Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>>
> mailing list
> >>     >     >> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >>     >     >
> >>     >     >
> >>     >     > _______________________________________________
> >>     >     > Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>
> >>     <mailto:Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>>
> mailing list
> >>     >     > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >>     >     >
> >>     >
> >>     >     --
> >>     >     "On ne peut pas vivre dans un monde où l'on croit que
> l'élégance exquise
> >>     >     du plumage de la pintade est inutile. Ceci est tout à fait à
> part. J'ai
> >>     >     eu envie de le dire, je l'ai dit." Jean Giono, Un roi sans
> >>     >     divertissement.
> >>     >
> >>     >     _______________________________________________
> >>     >     Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>
> >>     <mailto:Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>>
> mailing list
> >>     >     UNSUBSCRIBE and account-management ->
> >>     >     http://lists.puredata.info/listinfo/pd-list
> >>     >
> >>     >
> >>     >
> >>     >
> >>     > --
> >>     > Jordi Sala
> >>     > http://musa.poperbu.net
> >>     >
> >>     >
> >>     > _______________________________________________
> >>     > Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at> mailing list
> >>     > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >>     >
> >>
> >>     --
> >>     "On ne peut pas vivre dans un monde où l'on croit que l'élégance
> exquise
> >>     du plumage de la pintade est inutile. Ceci est tout à fait à part.
> J'ai
> >>     eu envie de le dire, je l'ai dit." Jean Giono, Un roi sans
> >>     divertissement.
> >>
> >>     _______________________________________________
> >>     Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at> mailing list
> >>     UNSUBSCRIBE and account-management ->
> >>     http://lists.puredata.info/listinfo/pd-list
> >>
> >>
> >>
> >>
> >> --
> >> Jordi Sala
> >> http://musa.poperbu.net
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>



-- 
Jordi Sala
http://musa.poperbu.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151213/b8c49006/attachment-0001.html>


More information about the Pd-list mailing list