X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=glue.h;h=86b229a755a30c5538f54a6d88f2fc9788895463;hb=6c2e192c3237bd46db6ad4230fed71d28f362331;hp=8a6a014f4271439230d86790fefb71e855f34c9b;hpb=1c3dc9f45532c25adc21f297422f0f5a7420b8ca;p=ipfw.git diff --git a/glue.h b/glue.h index 8a6a014..86b229a 100644 --- a/glue.h +++ b/glue.h @@ -23,7 +23,6 @@ * SUCH DAMAGE. */ /* - * * $Id$ * * glue code to adapt the FreeBSD version to linux and windows, @@ -86,6 +85,7 @@ enum sopt_dir { SOPT_GET, SOPT_SET }; * so early include this file (to be solved) */ #include #include /* struct in_addr */ +#include /* struct in6_addr */ #include /* * LIST_HEAD in queue.h conflict with linux/list.h @@ -205,11 +205,13 @@ struct clockinfo { int profhz; /* profiling clock frequency */ }; - -/* - * linux does not have heapsort +/* + * linux does not have a reentrant version of qsort, + * so we the FreeBSD stdlib version. */ -#define heapsort(_a, _b, _c, _d) qsort(_a, _b, _c, _d) +void +qsort_r(void *a, size_t n, size_t es, void *thunk, + int cmp_t(void *, const void *, const void *)); #define setprogname(x) /* not present in linux */ @@ -259,6 +261,7 @@ enum ipfw_msg_type { IP_FW_FLUSH, IP_FW_ZERO, IP_FW_GET, + IP_FW_DYN_GET, IP_FW_RESETLOG, IP_FW_NAT_CFG,