tcpdump mailing list archives
Re: Buffer size question
From: "Ed Maste" <emaste () sandvine com>
Date: Fri, 15 Oct 2004 17:32:50 -0400
shouldn't we have upper/lower boundary checks for such a buffer ? i.e. minbuffer 1.5K maxbuffer 128K
So would you propose just returning an error from pcap_open_live if the obtained buffer size is less than minbuffer? Something like if PCAP_MAXBUFFER environment var is set and > 0, start with that value else if ioctl(BIOCGBLEN) is > 32K, use that else start at 32K do divide-by-two loop to find a workable size if PCAP_MINBUFFER environment var is set, return error if ioctl(BIOCGBLEN) returns less than the environment var What do you think of this? Ed Maste Sandvine Inc. - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- Buffer size question Ed Maste (Oct 13)
- Re: Buffer size question Guy Harris (Oct 13)
- Re: Buffer size question Gianluca Varenni (Oct 14)
- Re: Buffer size question Guy Harris (Oct 14)
- Re: Buffer size question Gianluca Varenni (Oct 14)
- <Possible follow-ups>
- Re: Buffer size question Ed Maste (Oct 14)
- Re: Buffer size question Ed Maste (Oct 14)
- Re: Buffer size question Hannes Gredler (Oct 15)
- Re: Buffer size question Pekka Savola (Oct 15)
- Re: Buffer size question Guy Harris (Oct 15)
- Re: Buffer size question Hannes Gredler (Oct 15)
- Re: Buffer size question Ed Maste (Oct 15)
- Buffer size question Alexander Dupuy (Oct 18)
- Re: Buffer size question Guy Harris (Oct 18)
- Re: Buffer size question Ed Maste (Oct 18)
- Re: Buffer size question Guy Harris (Oct 18)
- Re: Buffer size question Guy Harris (Oct 13)