svn commit: r327518 - stable/11/sbin/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Wed Jan 3 12:18:57 UTC 2018


Author: ae
Date: Wed Jan  3 12:18:55 2018
New Revision: 327518
URL: https://svnweb.freebsd.org/changeset/base/327518

Log:
  MFC r327140:
    Fix rule number truncation, use uint16_t type to specify rulenum.
    Also sort variable declartions by size.
  
    PR:		224555

Modified:
  stable/11/sbin/ipfw/ipfw2.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/ipfw/ipfw2.c
==============================================================================
--- stable/11/sbin/ipfw/ipfw2.c	Wed Jan  3 11:23:47 2018	(r327517)
+++ stable/11/sbin/ipfw/ipfw2.c	Wed Jan  3 12:18:55 2018	(r327518)
@@ -2250,12 +2250,13 @@ do_range_cmd(int cmd, ipfw_range_tlv *rt)
 void
 ipfw_sets_handler(char *av[])
 {
-	uint32_t masks[2];
-	int i;
-	uint8_t cmd, rulenum;
 	ipfw_range_tlv rt;
 	char *msg;
 	size_t size;
+	uint32_t masks[2];
+	int i;
+	uint16_t rulenum;
+	uint8_t cmd;
 
 	av++;
 	memset(&rt, 0, sizeof(rt));


More information about the svn-src-stable-11 mailing list