Andrew Routley wrote:
>>ok, I've had time to have a look at the source now, and there
>>are two problems making it impossible to create the final
>>binary (all the source comiples relatively cleanly):
>>
>>1. There is no code for sample_arp_cache for Solaris 8.
>> It neither compiles under the HAVE_PROC_NET_ARP nor the
>> CTL_NET define requirements. This function is called from
>> wackamole.c
>>
This means that you will need to explicitly specify which addresses to
arp spoof to. This is the way wackamole release version is anyway, but
here you can specify which interface and entire subnets. That code for
Solaris is unfinished. I will try to get to it soon.
>>2. The same kind of problem for serv_accept, Solaris defines
>> I_PUSH and under the apue.c defines this function doesn't
>> get created and control.c requires it.
>>
I have code for this... I just need an hour or so on a Solaris box to
clean that up.
>>This kind of programming is well beyond my admin knowledge so
>>although I could force it to compile relatively cleanly I can't
>>guarantee the resulting behaviour :-)
>>
Mine too apparently :-D
>>Changes required to get the source files compiled:
>>1. Require GNU Bison and flex
>>
Yup. The next release will not, but the CVS version will. flex and
bison will be run before the release source is packaged... So you won't
need them.
>>2. After running configure I edited the Makefile and removed the
>> -I/usr/include from CPPFLAGS (causes alarm.c not to compile)
>>
Can you mail be the compile error please?
>>3. Edited control.c and added #include <sys/filio.h> so that FIOBIN
>> was defined, otherwise control.c does not compile.
>>
Thanks.. I just added that to the autoconf stuff.
>>
>>Finally failed with:
>>gcc -o wackamole wackamole.o alarm.o lex.yy.o y.tab.o arpcache.o
>>spoofmanager.o abt.o control.o apue.o configuration.o ife-dlpi.o
>>-L/usr/local/lib -R/usr/local/lib -ltsp -ldl -lsocket -lnsl -lposix4
>>-lthread -lpthread
>>Undefined first referenced
>> symbol in file
>>serv_accept control.o
>>sample_arp_cache wackamole.o
>>
The first is a quick fix on my end. I need to put that code into CVS.
The second is a quick fix, if you do'nt want a real arp cache. Just
stub the function out :-) [.I just committed a tub to CVS -- I'll have
it do the right thing on Soalris as soon as I figure out how]
Sorry for all the trouble (you too Min). I am running this stuff on
FreeBSD actively, so that always gets the first bit of attention :-)
--
Theo Schlossnagle
Principal Consultant
OmniTI Computer Consulting, Inc. --
http://www.omniti.com/ Phone: +1 301 776 6376 Fax: +1 410 880 4879
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7