git://git.onelab.eu
/
ipfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work on the radix code, added support to compile on OpenWRT,
[ipfw.git]
/
glue.h
diff --git
a/glue.h
b/glue.h
index
bf7043d
..
1f8aa62
100644
(file)
--- a/
glue.h
+++ b/
glue.h
@@
-23,7
+23,7
@@
* SUCH DAMAGE.
*/
/*
* SUCH DAMAGE.
*/
/*
- * $Id: glue.h 4
363 2009-12-08 16:06:54Z marta
$
+ * $Id: glue.h 4
436 2009-12-10 18:31:49Z luigi
$
*
* glue code to adapt the FreeBSD version to linux and windows,
* userland and kernel.
*
* glue code to adapt the FreeBSD version to linux and windows,
* userland and kernel.
@@
-260,6
+260,11
@@
struct route_in6 { };
#define INET_ADDRSTRLEN 16
#define INET_ADDRSTRLEN 16
+#ifdef linux
+/* linux does not have sin_len in sockaddr */
+#define sin_len sin_zero[0]
+#endif /* linux */
+
/*
* List of values used for set/getsockopt options.
* The base value on FreeBSD is defined as a macro,
/*
* List of values used for set/getsockopt options.
* The base value on FreeBSD is defined as a macro,