Hi all,
I've noticed that pcap_fileno() returns -1 when libpcap is reading from
a file (no live capture). Please find enclosed the patch to this
problem.
Regards, Luca.
int
pcap_fileno(pcap_t *p)
{
if (p->sf.rfile != NULL)
return(fileno(p->sf.rfile));
else
return (p->fd);
}
--
Luca Deri Finsiel S.p.A.
Via Matteucci 34/B 56124 Pisa, Italy.
Ph. +39/050/968.639 Fax. +39/050/968.626
Email: [EMAIL PROTECTED] WWW: http://www.tlcpi.finsiel.it/~deri/
ICQ: 68183632
Software is about stuff, about getting hands dirty - Jim Coplien