xref: /aosp_15_r20/external/libpcap/TODO (revision 8b26181f966a6af5cf6981a6f474313de533bb28)
1*8b26181fSAndroid Build Coastguard Worker TODO list for libpcap
2*8b26181fSAndroid Build Coastguard Worker=======================
3*8b26181fSAndroid Build Coastguard Worker
4*8b26181fSAndroid Build Coastguard WorkerImportant stuff (to be done before the next release)
5*8b26181fSAndroid Build Coastguard Worker---------------
6*8b26181fSAndroid Build Coastguard Worker
7*8b26181fSAndroid Build Coastguard WorkerGeneral
8*8b26181fSAndroid Build Coastguard Worker
9*8b26181fSAndroid Build Coastguard Worker- configure should not be in Git. Most open source projects have an
10*8b26181fSAndroid Build Coastguard Worker  autogen.sh script to run autoconf etc. after checkout. I think we
11*8b26181fSAndroid Build Coastguard Worker  should stick to the standard.
12*8b26181fSAndroid Build Coastguard Worker
13*8b26181fSAndroid Build Coastguard Worker- The source files should be better documented. There is no official
14*8b26181fSAndroid Build Coastguard Worker  design guideline for what is done where. There should be a common coding
15*8b26181fSAndroid Build Coastguard Worker  style (okay, you can guess that by looking at the code) and a guide for
16*8b26181fSAndroid Build Coastguard Worker  what needs to be documented.
17*8b26181fSAndroid Build Coastguard Worker
18*8b26181fSAndroid Build Coastguard WorkerLess urgent items
19*8b26181fSAndroid Build Coastguard Worker-----------------
20*8b26181fSAndroid Build Coastguard Worker
21*8b26181fSAndroid Build Coastguard Worker- Better documentation and cleanup of the interface. I am seeing a few
22*8b26181fSAndroid Build Coastguard Worker  problems at the first glance which needs fixing:
23*8b26181fSAndroid Build Coastguard Worker  + pcap_lookupnet makes little to no sense with protocols != IPv4
24*8b26181fSAndroid Build Coastguard Worker  + not very well suited for interactive programs (think ethereal). There
25*8b26181fSAndroid Build Coastguard Worker    should be a way for the application to get a file descriptor which it
26*8b26181fSAndroid Build Coastguard Worker    has to monitor and a callback in pcap which has to be called on
27*8b26181fSAndroid Build Coastguard Worker    activity (XXX - "pcap_fileno()" handles the first part, although
28*8b26181fSAndroid Build Coastguard Worker    "select()" and "poll()" don't work on BPF devices on most BSDs, and
29*8b26181fSAndroid Build Coastguard Worker    you can call "pcap_dispatch()" as the dispatch routine after putting
30*8b26181fSAndroid Build Coastguard Worker    the descriptor into non-blocking mode)
31*8b26181fSAndroid Build Coastguard Worker  + too many functions. There are a lot of functions for everything which
32*8b26181fSAndroid Build Coastguard Worker    violates the KISS principle. Why do we need pcap_strerror, pcap_perror
33*8b26181fSAndroid Build Coastguard Worker    and pcap_geterr?
34