Hi everybody
I want to convert an ASCII file to Pcap file, without using Text2pcap, for 
example using Perl or another tool. I am open to any proposal
Best regards  




-----Message d'origine-----
De : wireshark-dev-boun...@wireshark.org 
[mailto:wireshark-dev-boun...@wireshark.org] De la part de 
wireshark-dev-requ...@wireshark.org
Envoyé : mardi 17 mars 2009 00:30
À : wireshark-dev@wireshark.org
Objet : Wireshark-dev Digest, Vol 34, Issue 31

Send Wireshark-dev mailing list submissions to
        wireshark-dev@wireshark.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://wireshark.org/mailman/listinfo/wireshark-dev
or, via email, send a message with subject or body 'help' to
        wireshark-dev-requ...@wireshark.org

You can reach the person managing the list at
        wireshark-dev-ow...@wireshark.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Wireshark-dev digest..."


Today's Topics:

   1. buildbot failure in Wireshark (development) on    OSX-10.5-ppc
      (buildbot-no-re...@wireshark.org)
   2. Re: Using Wireshark packet parsers and pretty     printers
      (Ulisses Ara?jo Costa)
   3. Re: Hello to the list and a nested dissector (Gaetano Vocca)
   4. buildbot failure in Wireshark (development) on
      Solaris-10-SPARC (buildbot-no-re...@wireshark.org)
   5. buildbot failure in Wireshark (development) on
      Ubuntu-7.10-x86-64 (buildbot-no-re...@wireshark.org)
   6. buildbot failure in Wireshark (development) on    OSX-10.5-x86
      (buildbot-no-re...@wireshark.org)
   7. Re: [Wireshark-commits] rev 27748:        /trunk/plugins/profinet/
      /trunk/plugins/profinet/: Makefile.common crc16.c crc16.h
      moduleinfo.h moduleinfo.nmake     packet-dcerpc-pn-io.c
      packet-pn-rt.c (Joerg Mayer)
   8. Re: [Wireshark-commits] rev       27748:/trunk/plugins/profinet/
      /trunk/plugins/profinet/:Makefile.common crc16.c crc16.h
      moduleinfo.h moduleinfo.nmakepacket-dcerpc-pn-io.c packet-pn-rt.c
      (Anders Broman)
   9. buildbot failure in Wireshark (development) on    OSX-10.5-ppc
      (buildbot-no-re...@wireshark.org)
  10. Re: [Wireshark-commits] rev 27748:        /trunk/plugins/profinet/
      /trunk/plugins/profinet/: Makefile.common crc16.c crc16.h
      moduleinfo.h moduleinfo.nmake     packet-dcerpc-pn-io.c
      packet-pn-rt.c (Guy Harris)
  11. Re: [Wireshark-commits] rev 27748:        /trunk/plugins/profinet/
      /trunk/plugins/profinet/: Makefile.common crc16.c crc16.h
      moduleinfo.h moduleinfo.nmake packet-dcerpc-pn-io.c
      packet-pn-rt.c (Ulf Lamping)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Mar 2009 12:05:57 -0700
From: buildbot-no-re...@wireshark.org
Subject: [Wireshark-dev] buildbot failure in Wireshark (development)
        on      OSX-10.5-ppc
To: wireshark-dev@wireshark.org
Message-ID: <20090316190557.78821a8...@mail.wireshark.org>

The Buildbot has detected a new failure of OSX-10.5-ppc on Wireshark 
(development).
Full details are available at:
 http://buildbot.wireshark.org/trunk/builders/OSX-10.5-ppc/builds/709

Buildbot URL: http://buildbot.wireshark.org/trunk/

Buildslave for this Build: osx-10.5-ppc

Build Reason: 
Build Source Stamp: HEAD
Blamelist: etxrab

BUILD FAILED: failed compile

sincerely,
 -The Buildbot



------------------------------

Message: 2
Date: Mon, 16 Mar 2009 19:44:00 +0000
From: Ulisses Ara?jo Costa <ulissesaraujoco...@gmail.com>
Subject: Re: [Wireshark-dev] Using Wireshark packet parsers and pretty
        printers
To: Developer support list for Wireshark <wireshark-dev@wireshark.org>
Message-ID:
        <f14391bc0903161244n6b708395rb6cad199d71b...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Thank you for your answers. For now I will start to use the PDML file.
Later on I will try to do it using the Wireshark API.

On Tue, Mar 10, 2009 at 01:27, Guy Harris <g...@alum.mit.edu> wrote:
>
> On Mar 9, 2009, at 5:27 PM, Richard Sharpe wrote:
>
>> At each layer it extracts the fields it needs and puts them into the
>> protocol tree or the columns, however, there is no library that allows
>> you to parse a packet and then say:
>>
>> ? give me the value of the field tcp.flags or smb.fid or so forth
>>
>> Ethereal is not organized that way.
>
> Well, not *entirely* true, but it's not as if there's some library
> that lets you do that *conveniently*.
>
> In reasonably recent versions of Ethereal - and thus in all versions
> of Wireshark, as the "epan" library was created before the program was
> renamed from Ethereal to Wireshark - the library (called "libethereal"
> in Ethereal, and "libwireshark" in Wireshark) has routines:
>
> ? ? ? ?epan_init() - initializes the library;
>
> ? ? ? ?epan_dissect_new() - allocates an epan_dissect_t structure to hold
> the context of a dissection, and returns a pointer to it;
>
> ? ? ? ?epan_dissect_prime_dfilter() - tells the library which fields you'll
> need to look at (although the API is *really* oriented towards
> "display filters" so you can't just do it by giving it the names of
> the fields);
>
> ? ? ? ?epan_dissect_run() - hand it an epan_dissect_t, the pseudo-header for
> the packet as returned by *another* Wireshark library (libwiretap),
> the raw packet data for the packet (as returned by libwiretap), and
> some other information;
>
> ? ? ? ?epan_dissect_free() - releases the epan_dissect_t when you're done
> with the dissection and have extracted the information you want from
> the result.
>
> The values of the fields can be found by looking in the protocol tree
> pointed to by the "tree" member of the epan_dissect_t; you'd have to
> walk through the tree looking for instances of the fields.
>
> As one can tell from the number of places where I just waved my hands
> rather than giving details, this is rather complicated. ?The library
> was *not* designed to be used by arbitrary applications, so the API is
> somewhat oriented towards its use in Wireshark and TShark.
>
> And, just to add to the complication, I didn't mention that Wireshark
> dissector maintain state between packets, which they might require in
> order to properly dissect packets, so somebody would want to use
> libwiretap to read an entire capture file, calling epan_dissect_new()/
> epan_dissect_prime_dfilter()/epan_dissect_run()/epan_dissect_free() on
> each of the packets.
>
> So I'm not sure it's possible to have a "simple" program that uses
> it. ?It might be easier to have TShark read the capture file and
> produce a version of the protocol tree as PDML, and have the program
> read the PDML file, as Stephen Donnelly suggested.
> ___________________________________________________________________________
> Sent via: ? ?Wireshark-dev mailing list <wireshark-dev@wireshark.org>
> Archives: ? ?http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
> ? ? ? ? ? ? mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
>



-- 
Ulisses Costa - http://caos.di.uminho.pt/~ulisses/


------------------------------

Message: 3
Date: Mon, 16 Mar 2009 20:50:25 +0100
From: Gaetano Vocca <yagvoc-...@yahoo.it>
Subject: Re: [Wireshark-dev] Hello to the list and a nested dissector
To: wireshark-dev@wireshark.org
Message-ID: <dd95d8ea-efd1-4bc4-b56e-8cb46ba2c...@yahoo.it>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Thank you Anders for your answer.
I have already parsed the asn by means of asn2wrs, I have also  
developed the dissection of the header, afterwards I use the  
call_tcap_dissector function from the asn1/tcap dissector to have the  
TCAP layer decoded and, in the end, I need to decode the TCAP  
component by means of my ASN1 protocol.
Now what I don't know is how to retrieve the Component content from  
the parsed TCAP and pass it to the dissection of the inner protocol.

Thanks again
Gaetano



------------------------------

Message: 4
Date: Mon, 16 Mar 2009 13:33:26 -0700
From: buildbot-no-re...@wireshark.org
Subject: [Wireshark-dev] buildbot failure in Wireshark (development)
        on      Solaris-10-SPARC
To: wireshark-dev@wireshark.org
Message-ID: <20090316203326.52b8392...@mail.wireshark.org>

The Buildbot has detected a new failure of Solaris-10-SPARC on Wireshark 
(development).
Full details are available at:
 http://buildbot.wireshark.org/trunk/builders/Solaris-10-SPARC/builds/1289

Buildbot URL: http://buildbot.wireshark.org/trunk/

Buildslave for this Build: solaris-10-sparc

Build Reason: 
Build Source Stamp: HEAD
Blamelist: etxrab,guy,tuexen

BUILD FAILED: failed compile

sincerely,
 -The Buildbot



------------------------------

Message: 5
Date: Mon, 16 Mar 2009 15:19:58 -0700
From: buildbot-no-re...@wireshark.org
Subject: [Wireshark-dev] buildbot failure in Wireshark (development)
        on      Ubuntu-7.10-x86-64
To: wireshark-dev@wireshark.org
Message-ID: <20090316221958.3c5c38b...@mail.wireshark.org>

The Buildbot has detected a new failure of Ubuntu-7.10-x86-64 on Wireshark 
(development).
Full details are available at:
 http://buildbot.wireshark.org/trunk/builders/Ubuntu-7.10-x86-64/builds/789

Buildbot URL: http://buildbot.wireshark.org/trunk/

Buildslave for this Build: ubuntu-7.10-x86

Build Reason: 
Build Source Stamp: HEAD
Blamelist: etxrab,guy,martinm,tuexen,ulfl,wmeier

BUILD FAILED: failed compile

sincerely,
 -The Buildbot



------------------------------

Message: 6
Date: Mon, 16 Mar 2009 15:32:03 -0700
From: buildbot-no-re...@wireshark.org
Subject: [Wireshark-dev] buildbot failure in Wireshark (development)
        on      OSX-10.5-x86
To: wireshark-dev@wireshark.org
Message-ID: <20090316223203.b586ede...@mail.wireshark.org>

The Buildbot has detected a new failure of OSX-10.5-x86 on Wireshark 
(development).
Full details are available at:
 http://buildbot.wireshark.org/trunk/builders/OSX-10.5-x86/builds/1948

Buildbot URL: http://buildbot.wireshark.org/trunk/

Buildslave for this Build: osx-10.5-x86

Build Reason: 
Build Source Stamp: HEAD
Blamelist: ulfl

BUILD FAILED: failed compile

sincerely,
 -The Buildbot



------------------------------

Message: 7
Date: Mon, 16 Mar 2009 23:45:40 +0100
From: Joerg Mayer <jma...@loplof.de>
Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 27748:
        /trunk/plugins/profinet/ /trunk/plugins/profinet/:      Makefile.common
        crc16.c crc16.h moduleinfo.h moduleinfo.nmake   packet-dcerpc-pn-io.c
        packet-pn-rt.c
To: wireshark-dev@wireshark.org
Message-ID: <20090316224540.gf17...@thot.informatik.uni-kl.de>
Content-Type: text/plain; charset=us-ascii

On Mon, Mar 16, 2009 at 09:40:03PM +0000, u...@wireshark.org wrote:
> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=27748
>  crc16 algorithm copied from Linux sources (GPL V2 only!)

So far the wireshark sources are v2 or later - so adding a gplv2 only file
is not something that should be done without asking *first*, because it
has effects for all of Wireshark. Or maybe there already were files that
are v2 only and I missed that?

Ciao
     Joerg
-- 
Joerg Mayer                                           <jma...@loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.


------------------------------

Message: 8
Date: Mon, 16 Mar 2009 23:56:37 +0100
From: "Anders Broman" <a.bro...@telia.com>
Subject: Re: [Wireshark-dev] [Wireshark-commits] rev
        27748:/trunk/plugins/profinet/
        /trunk/plugins/profinet/:Makefile.common crc16.c crc16.h        
moduleinfo.h
        moduleinfo.nmakepacket-dcerpc-pn-io.c packet-pn-rt.c
To: "'Developer support list for Wireshark'"
        <wireshark-dev@wireshark.org>
Message-ID: <4688c2f8058b4a229fda886d1f4e4...@dittcb7aa3551c>
Content-Type: text/plain;       charset="iso-8859-1"

Hi,
Isn't there a couple of crc versions in epan?
/Anders

-----Ursprungligt meddelande-----
Fr?n: wireshark-dev-boun...@wireshark.org
[mailto:wireshark-dev-boun...@wireshark.org] F?r Joerg Mayer
Skickat: den 16 mars 2009 23:46
Till: wireshark-dev@wireshark.org
?mne: Re: [Wireshark-dev] [Wireshark-commits] rev
27748:/trunk/plugins/profinet/ /trunk/plugins/profinet/:Makefile.common
crc16.c crc16.h moduleinfo.h moduleinfo.nmakepacket-dcerpc-pn-io.c
packet-pn-rt.c

On Mon, Mar 16, 2009 at 09:40:03PM +0000, u...@wireshark.org wrote:
> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=27748
>  crc16 algorithm copied from Linux sources (GPL V2 only!)

So far the wireshark sources are v2 or later - so adding a gplv2 only file
is not something that should be done without asking *first*, because it
has effects for all of Wireshark. Or maybe there already were files that
are v2 only and I missed that?

Ciao
     Joerg
-- 
Joerg Mayer                                           <jma...@loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe



------------------------------

Message: 9
Date: Mon, 16 Mar 2009 16:12:08 -0700
From: buildbot-no-re...@wireshark.org
Subject: [Wireshark-dev] buildbot failure in Wireshark (development)
        on      OSX-10.5-ppc
To: wireshark-dev@wireshark.org
Message-ID: <20090316231208.aac96b0...@mail.wireshark.org>

The Buildbot has detected a new failure of OSX-10.5-ppc on Wireshark 
(development).
Full details are available at:
 http://buildbot.wireshark.org/trunk/builders/OSX-10.5-ppc/builds/713

Buildbot URL: http://buildbot.wireshark.org/trunk/

Buildslave for this Build: osx-10.5-ppc

Build Reason: 
Build Source Stamp: HEAD
Blamelist: ulfl

BUILD FAILED: failed compile

sincerely,
 -The Buildbot



------------------------------

Message: 10
Date: Mon, 16 Mar 2009 16:18:06 -0700
From: Guy Harris <g...@alum.mit.edu>
Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 27748:
        /trunk/plugins/profinet/        /trunk/plugins/profinet/:       
Makefile.common
        crc16.c crc16.h moduleinfo.h moduleinfo.nmake   packet-dcerpc-pn-io.c
        packet-pn-rt.c
To: Developer support list for Wireshark <wireshark-dev@wireshark.org>
Message-ID: <5eba2cb6-3c8a-419c-a922-0f42cc0b4...@alum.mit.edu>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


On Mar 16, 2009, at 3:45 PM, Joerg Mayer wrote:

> On Mon, Mar 16, 2009 at 09:40:03PM +0000, u...@wireshark.org wrote:
>> http://anonsvn.wireshark.org/viewvc/viewvc.cgi? 
>> view=rev&revision=27748
>> crc16 algorithm copied from Linux sources (GPL V2 only!)
>
> So far the wireshark sources are v2 or later - so adding a gplv2  
> only file
> is not something that should be done without asking *first*, because  
> it
> has effects for all of Wireshark. Or maybe there already were files  
> that
> are v2 only and I missed that?

Is the only difference between the CRC16 in PROFINET and the ITU-T  
CRC16 implemented in epan/crc16.c the polynomial?  It looks as if the  
algorithm is the same in the PROFINET CRC16 and the "reflected" ITU-T  
CRC16:

        crc = initial value;
        for (all bytes in the buffer)
                crc = (crc >> 8) ^ table[(crc ^ byte from buffer) & 0xff];
        return crc;

so it might just be the table.  If so, could we just generate the  
appropriate table for the PROFINET polynomial, have epan/crc16.c  
export crc16_reflected(), and have the PROFINET CRC16 routine use  
crc16_reflected() and the appropriate table?


------------------------------

Message: 11
Date: Tue, 17 Mar 2009 00:29:13 +0100
From: Ulf Lamping <ulf.lamp...@web.de>
Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 27748:
        /trunk/plugins/profinet/ /trunk/plugins/profinet/:      Makefile.common
        crc16.c crc16.h moduleinfo.h moduleinfo.nmake packet-dcerpc-pn-io.c
        packet-pn-rt.c
To: Developer support list for Wireshark <wireshark-dev@wireshark.org>
Message-ID: <49bee0c9.1020...@web.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Joerg Mayer schrieb:
> On Mon, Mar 16, 2009 at 09:40:03PM +0000, u...@wireshark.org wrote:
>> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=27748
>>  crc16 algorithm copied from Linux sources (GPL V2 only!)
> 
> So far the wireshark sources are v2 or later - so adding a gplv2 only file
> is not something that should be done without asking *first*, because it
> has effects for all of Wireshark. Or maybe there already were files that
> are v2 only and I missed that?

I had in mind that we already have GPL V2 only files in Wireshark 
before, but I may be wrong here.


I can remove the two "GPL V2 only" files, as this is "only" a CRC16 
expert check here. That is the CCITT implementation of CRC16 which is 
not already existing in Wireshark AFAIK. Having the CCITT CRC16 in 
Wireshark would be probably a good idea anyway.

Some time ago when I actually implemented the stuff I couldn't find a 
GPL V2 or later implementation.

Question is: How to continue?

Regards, ULFL


------------------------------

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@wireshark.org
https://wireshark.org/mailman/listinfo/wireshark-dev


End of Wireshark-dev Digest, Vol 34, Issue 31
*********************************************
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to