Hi ;
I am trying to use a POS card on Solaris 8 and having problem with
pcap_open_live function. Same thing with Libnet's libnet_open_link_interface
function.
Actually I want to use RAW mode and error occurs while
enabling it ... in following code
#ifdef DLIOCRAW
/*
** This is a non standard SunOS hack to get the ethernet header.
*/
if (strioctl(p->fd, DLIOCRAW, 0, NULL) < 0) {
snprintf(ebuf, PCAP_ERRBUF_SIZE, "DLIOCRAW: %s",
pcap_strerror(errno));
goto bad;
}
#endif
The ioctl function returns with error #22 ;
Fatal: strioctl Call failed, errorno = 22
Fatal: libnet_open_link_interface: DLIOCRAW: Invalid argument
Can Any one please give a pointer as where the problem could be... Is something
wrong with the POS card drivers ????
Thanks in advance
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Powered by MHonArc 2.6.10