[Javanetsim-cvs] IceScan csubtarget.h,1.41,1.42
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2006-12-17 14:23:19
|
Update of /cvsroot/javanetsim/IceScan In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv21646 Modified Files: csubtarget.h Log Message: Index: csubtarget.h =================================================================== RCS file: /cvsroot/javanetsim/IceScan/csubtarget.h,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** csubtarget.h 17 Dec 2006 11:24:13 -0000 1.41 --- csubtarget.h 17 Dec 2006 14:23:15 -0000 1.42 *************** *** 399,404 **** int one = 1; ! const int *val = &one; ! if (rawsend.setsockopt (IPPROTO_IP, IP_HDRINCL, (sockbuf_type *) val, sizeof (one)) < 0) perror("Setsockopt HDRINCL:"); --- 399,404 ---- int one = 1; ! const BOOL val = TRUE; ! if (setsockopt (rawsend.get_socketid(), IPPROTO_IP, IP_HDRINCL, (char *) &val, sizeof (one)) != 0) perror("Setsockopt HDRINCL:"); |