diff options
author | Rusty Russell <rusty@linuxcare.com.au> | 2000-09-04 05:56:10 +0000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2000-09-04 05:56:10 +0000 |
commit | 803f33c0e9cb458cf7989f3826e9baba8da19e2f (patch) | |
tree | d8d1ad2a09ae7f15d20b565b4f58c8f859351dd0 | |
parent | 0afdf9e6cef052475d48bc4ec10508c15e52d384 (diff) |
More sparc64 fixes
-rw-r--r-- | include/libipq/libipq.h | 4 | ||||
-rw-r--r-- | libipq/libipq.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/libipq/libipq.h b/include/libipq/libipq.h index f4c4ab70..919d2153 100644 --- a/include/libipq/libipq.h +++ b/include/libipq/libipq.h @@ -28,8 +28,10 @@ #ifdef KERNEL_64_USERSPACE_32 #include "ip_queue_64.h" +typedef u_int64_t ipq_id_t; #else #include <linux/netfilter_ipv4/ip_queue.h> +typedef u_int32_t ipq_id_t; #endif #ifdef DEBUG_LIBIPQ @@ -68,7 +70,7 @@ int ipq_message_type(const unsigned char *buf); int ipq_get_msgerr(const unsigned char *buf); int ipq_set_verdict(const struct ipq_handle *h, - unsigned long id, + ipq_id_t id, unsigned int verdict, size_t data_len, unsigned char *buf); diff --git a/libipq/libipq.c b/libipq/libipq.c index c017f3ab..93d76f14 100644 --- a/libipq/libipq.c +++ b/libipq/libipq.c @@ -247,7 +247,7 @@ ipq_packet_msg_t *ipq_get_packet(const unsigned char *buf) } int ipq_set_verdict(const struct ipq_handle *h, - unsigned long id, + ipq_id_t id, unsigned int verdict, size_t data_len, unsigned char *buf) |