|
|
|
|
||||||
| comp.protocols.tcp-ip TCP and IP network protocols. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Does anyone know of a C++ library that includes classes to
represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP segments? I'm not looking for a socket class library. I am capturing IP packets using a sniffer and I need to analyze these packets from within a C++ program. I did a quick search in Boost but did not find anything relevant. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Tue, 10 Apr 2007 16:16:11 -0400, barcaroller <barcaroller@music.net> wrote:
> Does anyone know of a C++ library that includes classes to > represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP > segments? I'm not looking for a socket class library. I am capturing IP > packets using a sniffer and I need to analyze these packets from within a > C++ program. > > I did a quick search in Boost but did not find anything relevant. Boost does a lot of things, but this is a bit specialized, don't you think? Any decent C library is also a C++ library, so I suggest checking out libnet: http://www.packetfactory.net/libnet/. I haven't used it, but it seems reasonably popular. Of course, you might want to wrap it in your own C++ interface, for type safety, RAII, <algorithm> compatibility or whatever. /Jorgen -- // Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu \X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn! |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Apr 10, 11:16 pm, "barcaroller" <barcarol...@music.net> wrote:
> Does anyone know of a C++ library that includes classes to > represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP > segments? I'm not looking for a socket class library. I am capturing IP > packets using a sniffer and I need to analyze these packets from within a > C++ program. > > I did a quick search in Boost but did not find anything relevant. try to use this: http://www.mozilla.org/projects/xpnet/ portable, simple and it Mozilla ![]() |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On Apr 10, 4:16 pm, "barcaroller" <barcarol...@music.net> wrote:
> Does anyone know of a C++ library that includes classes to > represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP > segments? I'm not looking for a socket class library. I am capturing IP > packets using a sniffer and I need to analyze these packets from within a > C++ program. > > I did a quick search in Boost but did not find anything relevant. Try libpcap. Another option would be to use Wireshark and then exporting the packets to PDML and post processing the PDML file. We have followed the same approach in our tool, Visual Ether. -- VisualEther 1.0 - http://www.EventHelix.com/VisualEther Generate sequence diagram from Wireshark (Ethereal) |
|
![]() |
| Outils de la discussion | |
|
|