From b21c16622806c56e7a1cd709436012684af7de0e Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 29 Jan 1997 02:16:23 +0000 Subject: [PATCH] ioctl cmd arguments are u_long, not int. Pointed out by Fred L. Templin --- sys/netinet/ip_nat.c | 5 +++-- sys/netinet/ip_nat.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/netinet/ip_nat.c b/sys/netinet/ip_nat.c index e8d00d3e16ba..249e5fe0fe52 100644 --- a/sys/netinet/ip_nat.c +++ b/sys/netinet/ip_nat.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip_nat.c,v 1.2 1997/01/05 21:32:22 veego Exp $ */ +/* $NetBSD: ip_nat.c,v 1.3 1997/01/29 02:16:23 thorpej Exp $ */ /* * (C)opyright 1995 by Darren Reed. @@ -119,7 +119,8 @@ static int clear_natlist __P((void)); */ int nat_ioctl(data, cmd, mode) caddr_t data; -int cmd, mode; +u_long cmd; +int mode; { register ipnat_t *nat, *n = NULL, **np = NULL; ipnat_t natd; diff --git a/sys/netinet/ip_nat.h b/sys/netinet/ip_nat.h index 8c75c961f432..c55014b8508a 100644 --- a/sys/netinet/ip_nat.h +++ b/sys/netinet/ip_nat.h @@ -1,4 +1,4 @@ -/* $NetBSD: ip_nat.h,v 1.2 1997/01/05 21:32:24 veego Exp $ */ +/* $NetBSD: ip_nat.h,v 1.3 1997/01/29 02:16:26 thorpej Exp $ */ /* * (C)opyright 1995 by Darren Reed. @@ -102,7 +102,7 @@ typedef struct natstat { #define IPN_UDP 2 #define IPN_TCPUDP 3 -extern int nat_ioctl __P((caddr_t data, int cmd, int mode)); +extern int nat_ioctl __P((caddr_t data, u_long cmd, int mode)); extern nat_t *nat_lookupoutip __P((register ipnat_t *np, ip_t *ip, tcphdr_t *tcp)); extern nat_t *nat_lookupinip __P((struct in_addr ipaddr, u_short sport)); extern nat_t *nat_lookupredir __P((natlookup_t *np));