read packets is "p->bufsize" bytes long, not MAXDLBUF bytes long
("p->bufsize" is set to (MAXDLBUF * sizeof sizeof(bpf_u_int32))), so
supply that as the "maxlen" value in the "data" argument to "getmsg()".
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.75 2002-02-22 11:49:13 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.76 2002-03-05 04:05:56 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
cc = p->cc;
if (cc == 0) {
data.buf = (char *)p->buffer + p->offset;
- data.maxlen = MAXDLBUF;
+ data.maxlen = p->bufsize;
data.len = 0;
do {
if (getmsg(p->fd, &ctl, &data, &flags) < 0) {