Yendor
12-31-2001, 12:57 PM
I posted a patch in the patch area to fix packet.cpp to spit out a friendlier more informative error than a core dump when it tries to open the network interface with insufficient permissions for promiscuous mode. I print the returned error string as well as a little help as to what is probably wrong. (should probably check what the error was before printing the longer message to be sure it applies.... but hell, its better than it was).
The problem was that pcap_perror was called with a NULL pointer which was invalid. It can't the last error message associated with a handle it was never able to get in the first place. So we just print ebuf ourselves.
A minor patch, but there was one post earlier to the message boards that was caused by it.
The problem was that pcap_perror was called with a NULL pointer which was invalid. It can't the last error message associated with a handle it was never able to get in the first place. So we just print ebuf ourselves.
A minor patch, but there was one post earlier to the message boards that was caused by it.