forked from pool/iproute2
36 lines
692 B
Plaintext
36 lines
692 B
Plaintext
--- include/iptables.h
|
|
+++ include/iptables.h 2007/02/08 12:49:21
|
|
@@ -18,7 +18,7 @@
|
|
|
|
struct ipt_get_revision
|
|
{
|
|
- char name[IPT_FUNCTION_MAXNAMELEN-1];
|
|
+ char name[IPT_FUNCTION_MAXNAMELEN];
|
|
|
|
u_int8_t revision;
|
|
};
|
|
--- lib/utils.c
|
|
+++ lib/utils.c 2007/02/08 12:52:41
|
|
@@ -33,6 +33,10 @@
|
|
|
|
#include "utils.h"
|
|
|
|
+#ifndef HZ
|
|
+#define HZ sysconf(_SC_CLK_TCK)
|
|
+#endif
|
|
+
|
|
int get_integer(int *val, const char *arg, int base)
|
|
{
|
|
long res;
|
|
@@ -330,8 +334,8 @@
|
|
|
|
int inet_addr_match(const inet_prefix *a, const inet_prefix *b, int bits)
|
|
{
|
|
- __u32 *a1 = a->data;
|
|
- __u32 *a2 = b->data;
|
|
+ __u32 *a1 = (__u32*)a->data;
|
|
+ __u32 *a2 = (__u32*)b->data;
|
|
int words = bits >> 0x05;
|
|
|
|
bits &= 0x1f;
|