summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-09-28 22:56:37 +0000
committeralex <alex@FreeBSD.org>1998-09-28 22:56:37 +0000
commitb7f776d8de4a0d0bcd1f5aabea85c04e28377484 (patch)
treea2f6c0fc877ba047cc8a0fcb63d4fe64005df65d /sbin/ipfw
parent501805c399c47f2dcb492b7b1068f73ed911b52d (diff)
downloadFreeBSD-src-b7f776d8de4a0d0bcd1f5aabea85c04e28377484.zip
FreeBSD-src-b7f776d8de4a0d0bcd1f5aabea85c04e28377484.tar.gz
The flags type was recently changed from u_short to u_int, breaking
icmptypes. PR: 8067 Submitted by: Jonathan Hanna <jh@cr1003333-a.crdva1.bc.wave.home.com> While I'm here, staticize functions.
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/ipfw.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c
index b5d91a2..3f6807b 100644
--- a/sbin/ipfw/ipfw.c
+++ b/sbin/ipfw/ipfw.c
@@ -16,7 +16,7 @@
*
* NEW command line interface for IP firewall facility
*
- * $Id: ipfw.c,v 1.58 1998/07/06 03:20:10 julian Exp $
+ * $Id: ipfw.c,v 1.59 1998/08/04 14:41:37 thepish Exp $
*
*/
@@ -104,7 +104,7 @@ mask_bits(struct in_addr m_ad)
return h_num;
}
-void
+static void
print_port(prot, port, comma)
u_char prot;
u_short port;
@@ -404,7 +404,7 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth)
endservent();
}
-void
+static void
list(ac, av)
int ac;
char **av;
@@ -534,7 +534,7 @@ lookup_host (host, ipaddr)
return(0);
}
-void
+static void
fill_ip(ipno, mask, acp, avp)
struct in_addr *ipno, *mask;
int *acp;
@@ -645,7 +645,7 @@ lookup_port(const char *arg, int test, int nodash)
return(val);
}
-int
+static int
fill_port(cnt, ptr, off, arg)
u_short *cnt, *ptr, off;
char *arg;
@@ -677,7 +677,7 @@ fill_port(cnt, ptr, off, arg)
return initial_range;
}
-void
+static void
fill_tcpflag(set, reset, vp)
u_char *set, *reset;
char **vp;
@@ -743,11 +743,11 @@ fill_ipopt(u_char *set, u_char *reset, char **vp)
}
}
-void
+static void
fill_icmptypes(types, vp, fw_flg)
u_long *types;
char **vp;
- u_short *fw_flg;
+ u_int *fw_flg;
{
char *c = *vp;
@@ -772,7 +772,7 @@ fill_icmptypes(types, vp, fw_flg)
}
}
-void
+static void
delete(ac,av)
int ac;
char **av;
@@ -1192,7 +1192,7 @@ zero (ac, av)
}
}
-int
+static int
ipfw_main(ac,av)
int ac;
char **av;
OpenPOWER on IntegriCloud