> I am trying to use a POS card on Solaris 8 and having problem with
> pcap_open_live function.
ethereal-users is not the right mailing list for questions such as that.
The mailing list for libpcap and tcpdump is [EMAIL PROTECTED];
questions of that sort should be sent there.
> 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 ????
"Wrong", perhaps not.
The driver probably doesn't support the DLIOCRAW ioctl. Whether
that's a bug or not depends on whether the driver would provide the
link-layer headers even if you don't do a DLIOCRAW ioctl (although, if
it would, I think it'd be *better* for them to ignore the ioctl and just
return "success", rather than returning an error).
I don't know whether the driver would provide the link-layer headers.
What happens if you comment out the "#ifdef DLIOCRAW" code? (That's not
a long-term solution, as I assume you *do* need it when capturing on a
standard Sun Ethernet interface, for
What type of networking card is that? I.e., what type of network
(Ethernet, Token Ring, FDDI, ATM, serial WAN link of some sort, etc.) is
it? Is "POS" short for "Packet Over SONET"? (I can think offhand of two
other things it might stand for, but one of them, "Point Of Sale", is
unlikely to be what you mean, and the other, which begins with "Piece
Of", might express your opinion of the card, but doesn't indicate what
type of networking it does. :-))
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe