[Winpcap-bugs] Problem about the rpcap on solaris 8

Tao Yang yangtao.mike at gmail.com
Tue Nov 8 02:48:41 GMT 2005


I try the rpcap on solaris 8, it can't work.
I just send you what I have changed to let the rpcap run on solaris 8 with
Sparc CPU.
This maybe useful for you.
I use the source code from
http://www.winpcap.org/install/bin/wpcapsrc_3_1.zip
There are two places, I just change the sequence of the include file.
If I don't change the sequence, It can't compile with gcc on solaris 8. I
don't know why.



diff winpcap/wpcap/libpcap/configure winpcap_solaris/wpcap/libpcap/configure
5230a5231,5233
> dlpi)
> V_REMOTE_FILES="pcap-new.c pcap-remote.c sockutils.c"
> V_HAVE_REMOTE="-DHAVE_REMOTE"
5231a5235,5242
> cat >>confdefs.h <<\_ACEOF
> #define HAVE_REMOTE 1
> _ACEOF
>
> have_remote=yes
> ;;
>
>




diff winpcap_linux/wpcap/libpcap/rpcapd/Makefile
winpcap_solaris/wpcap/libpcap/rpcapd/Makefile
6c6
< CFLAGS = -pthread -DHAVE_REMOTE -DHAVE_SNPRINTF
---
> CFLAGS = -threads -DHAVE_REMOTE -DHAVE_SNPRINTF
11c11
< LIB = -lpcap -lcrypt
---
> LIB = -lpcap -lcrypt -lsocket -lnsl




diff winpcap/wpcap/libpcap/rpcapd/daemon.c
winpcap_solaris/wpcap/libpcap/rpcapd/daemon.c
32a33
> #include <string.h> // for strlen(), ...
37d37
< #include <string.h> // for strlen(), ...
943a944
>
1092c1093,1096
< sscanf(portdata, "%d", (int *) &(startcapreply->portdata) );
---
> int tempport = 0;
> sscanf(portdata, "%d", &tempport);
> startcapreply->portdata = (uint16)tempport;
> //sscanf(portdata, "%d", (int *) &(startcapreply->portdata) );



diff winpcap/wpcap/libpcap/pcap-new.c winpcap_solaris/wpcap/libpcap/pcap-
new.c
32a33
> #include <sockutils.h>
35d35
< #include <sockutils.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20051108/ace1af71/attachment.htm


More information about the Winpcap-bugs mailing list