ok, here i go again...

the doc says:

        pcap_next() returns a u_char pointer to the next packet.

When i read that, i thought it meant that it would `peek' into
the next packet.  but what it really does is dispatch the
packet, and then hand it back...

so some words like:


        pcap_next() is intended to be used as an iterator for
        the next packet.  it reads (via pcap_dispatch) that next
        packet and return a u_char pointer for that packet.

would be better, since the description seems to imply that
you could peek at the next packet, then later dispatch that
same packet if it seems like a good idea to do that based on
its value...

mts.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to