|
|||||||||||
|
1.1.1 RC5 build error on Linux/2.4.20
From: proletariat <prole(at)redgeek.net>
Date: Sun Jul 06 2003 - 17:03:03 EDT
offending section:
void *oneptr = &one;
BOOL one;
/* ... snip ... */
#if (__linux__)
if (setsockopt(l->fd, SOL_SOCKET, SO_BROADCAST, oneptr, sizeof(one)) == -1) {
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
"libnet_open_raw6(): set SO_BROADCAST failed: %s\n",
strerror(errno));
goto bad;
} #endif /* __linux__ */ This compiles for me (don't have ipv6 setup yet to test): ------>8 ---- snip ---- 8<------- --- libnet_raw.c.orig 2003-07-06 13:37:45.000000000 -0700 +++ libnet_raw.c 2003-07-06 13:55:14.000000000 -0700@@ -114,7 +114,10 @@ #if !(__WIN32__) #if (__svr4__)
void *oneptr = &one;
+#elif (__linux__)
+ int one = 1;
+ void *oneptr = &one;
+#endif /* __svr4__ / __linux__ */
#else
BOOL one;
#endif ------>8 ---- snip ---- 8<------- _p
--
prole(at)redgeek.net }-=-{
http://www.redgeek.net
---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
For additional commands, e-mail: libnet-help@securityfocus.com
Received on Sun Jul 6 17:27:59 2003This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT |
||||||||||
|
|||||||||||