X-Git-Url: http://git.onelab.eu/?p=ipfw.git;a=blobdiff_plain;f=glue.h;fp=glue.h;h=ff7ef07b4353367f6cf2113bf7898f3ba3ad6c60;hp=d3571a4b8aafca0953b44a172f63b3074da9b393;hb=5f337135c613b2ee3cb24ade7617ecaae0a74681;hpb=fdf658c9570c886fc226e2bab84da86922f59319 diff --git a/glue.h b/glue.h index d3571a4..ff7ef07 100644 --- a/glue.h +++ b/glue.h @@ -86,7 +86,7 @@ enum sopt_dir { SOPT_GET, SOPT_SET }; * so early include this file (to be solved) */ #include #include /* struct in_addr */ -#include /* struct in_addr */ +#include /* struct in6_addr */ #include /* * LIST_HEAD in queue.h conflict with linux/list.h @@ -206,10 +206,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. */ +void +qsort_r(void *a, size_t n, size_t es, void *thunk, + int cmp_t(void *, const void *, const void *)); #define heapsort(_a, _b, _c, _d) qsort(_a, _b, _c, _d) #define setprogname(x) /* not present in linux */ @@ -260,6 +263,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,