|
Packit |
209cc3 |
TODO list for libpcap
|
|
Packit |
209cc3 |
=======================
|
|
Packit |
209cc3 |
|
|
Packit |
209cc3 |
Important stuff (to be done before the next release)
|
|
Packit |
209cc3 |
---------------
|
|
Packit |
209cc3 |
|
|
Packit |
209cc3 |
General
|
|
Packit |
209cc3 |
|
|
Packit |
209cc3 |
- configure should not be in Git. Most open source projects have an
|
|
Packit |
209cc3 |
autogen.sh script to run autoconf etc. after checkout. I think we
|
|
Packit |
209cc3 |
should stick to the standard.
|
|
Packit |
209cc3 |
|
|
Packit |
209cc3 |
- The source files should be better documented. There is no official
|
|
Packit |
209cc3 |
design guideline for what is done where. There should be a common coding
|
|
Packit |
209cc3 |
style (okay, you can guess that by looking at the code) and a guide for
|
|
Packit |
209cc3 |
what needs to be documented.
|
|
Packit |
209cc3 |
|
|
Packit |
209cc3 |
Less urgent items
|
|
Packit |
209cc3 |
-----------------
|
|
Packit |
209cc3 |
|
|
Packit |
209cc3 |
- Better documentation and cleanup of the interface. I am seeing a few
|
|
Packit |
209cc3 |
problems at the first glance which needs fixing:
|
|
Packit |
209cc3 |
+ pcap_lookupnet makes little to no sense with protocols != IPv4
|
|
Packit |
209cc3 |
+ not very well suited for interactive programs (think ethereal). There
|
|
Packit |
209cc3 |
should be a way for the application to get a file descriptor which it
|
|
Packit |
209cc3 |
has to monitor and a callback in pcap which has to be called on
|
|
Packit |
209cc3 |
activity (XXX - "pcap_fileno()" handles the first part, although
|
|
Packit |
209cc3 |
"select()" and "poll()" don't work on BPF devices on most BSDs, and
|
|
Packit |
209cc3 |
you can call "pcap_dispatch()" as the dispatch routine after putting
|
|
Packit |
209cc3 |
the descriptor into non-blocking mode)
|
|
Packit |
209cc3 |
+ too many functions. There are a lot of functions for everything which
|
|
Packit |
209cc3 |
violates the KISS principle. Why do we need pcap_strerror, pcap_perror
|
|
Packit |
209cc3 |
and pcap_geterr?
|
|
Packit |
209cc3 |
+ the manpage has a brief description of each function but where is the
|
|
Packit |
209cc3 |
big picture? Seems like you need to buy UNP for that...
|