Hi,

> Hi All,
>
> currently i'm developing little packet filter program
> using Managed C++ (Dot net version of Visual C++).
> This application'll listening to ethernet card
> enterface only.
>
> I want to extract packet headers from the packet (IP
> source, destination, port, etc).
> Is there an 'easy' way to do this without copying all
> libraries included in windump program (print-iv6,
> print-lcp, etc) instead of searching and copying
> possible libraries will be used from it.
>
> I don't know,
> maybe in form of parser, or component, or something ??
>


It depends on what you need to do. print-iv6, print-lcp, etc perform full
dissection of the headers, so they are quite complex. Moreover, they are not
organized in a library, so including them in other programs can be a
demanding task.
If you simply need to extract packet headers (for example for logging
purpose), you don't probably need all this complexity, and a simple parsing
to retriveve the length of the headers can be enough.

For the component: I don't know of any available at the moment. I know that
somebody at tcpdump.org was working on a "dissection library" to use in
conjunction with tcpdump, but I don't know the state of the project.

Loris

>
> TIA
>
> -toto-
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
>


Reply via email to