ioctl cmd arguments are u_long, not int. Pointed out by

Fred L. Templin <templin@nas.nasa.gov>
This commit is contained in:
thorpej 1997-01-29 02:16:23 +00:00
parent 3d14bc1b12
commit b21c166228
2 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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));