From: Rusty Russell Date: Mon, 4 Sep 2000 05:56:10 +0000 (+0000) Subject: More sparc64 fixes X-Git-Tag: v1.2.1~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803f33c0e9cb458cf7989f3826e9baba8da19e2f;p=thirdparty%2Fiptables.git More sparc64 fixes --- 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 +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)