Ethereal-dev: Re: Re: [Ethereal-dev] Ethereal crashes & gives an error message from capture_sy
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
Thank you, Ulf
Lamping for the reply & for sending the links to the capture mechanism.
I meant dissectors when I said plugins. My plugin /
dissector on the client side sends the packets that it receives, over TCP to
the server. The plugin / dissector collects the packets & puts it back into
the ethereal stack for it to sniff. I spawn off a server thread in proto_register_server,
which creates a socket, binds a port to it & listens on it. It spawns off a
thread for every connection it accepts. Hence each data / packets from each
client is received in a different thread. And then I use call_dissector() in
dissector_server to send the packet to IP. I am able to view the packets if I
write it to a file (tethereal –w result) & then open it in ethereal.
But if I hit the capture button, ethereal quits.
I think its because the child process that forks off
during ethereal kills my threads, but I am not too sure if this is the reason.
Please let me know what you think.
Thanks,
Jay.
|