Menu

#3 only refreshes when packet arrives

closed-later
None
5
2014-08-18
2004-08-30
No

The display is only refreshed when a refresh is due and
a packet arrives.

This appears to be a limitation of libpcap, which
cannot guarantee whether a read timeout will occur when
no packets arrive after a pcap_dispatch().

Discussion

  • Arnout Engelen

    Arnout Engelen - 2004-08-30
    • status: open --> closed-later
     
  • Arnout Engelen

    Arnout Engelen - 2004-08-30

    Logged In: YES
    user_id=392382

    This can be easily fixed by calling pcap_setnonblock on the
    libpcap handle.

    Unfortunately, this function is only present in newer
    versions of libpcap. I will add a call to pcap_setnonblock
    when i can decide which version of libpcap is available
    (automake/autoconf, maybe?), or when a newer version of
    libpcap is included in Debian stable.