Oleg Bulyzhin
3995ad1768
Fix ipfw table creation when net.inet.ip.fw.tables_sets = 0 and non zero set
specified on table creation. This fixes following:
# sysctl net.inet.ip.fw.tables_sets
net.inet.ip.fw.tables_sets: 0
# ipfw table all info
# ipfw set 1 table 1 create type addr
# ipfw set 1 table 1 create type addr
# ipfw add 10 set 1 count ip from table\(1\) to any
00010 count ip from table(1) to any
# ipfw add 10 set 1 count ip from table\(1\) to any
00010 count ip from table(1) to any
# ipfw table all info
--- table(1), set(1) ---
kindex: 4, type: addr
references: 1, valtype: legacy
algorithm: addr:radix
items: 0, size: 296
--- table(1), set(1) ---
kindex: 3, type: addr
references: 1, valtype: legacy
algorithm: addr:radix
items: 0, size: 296
--- table(1), set(1) ---
kindex: 2, type: addr
references: 0, valtype: legacy
algorithm: addr:radix
items: 0, size: 296
--- table(1), set(1) ---
kindex: 1, type: addr
references: 0, valtype: legacy
algorithm: addr:radix
items: 0, size: 296
#
MFC after: 1 week
2018-04-11 11:12:20 +00:00
..
2017-09-20 22:00:06 +00:00
2017-09-20 22:00:06 +00:00
2017-06-29 19:06:43 +00:00
2017-11-27 15:23:17 +00:00
2017-04-13 17:47:44 +00:00
2017-05-19 08:38:03 +00:00
2017-03-18 23:00:13 +00:00
2018-01-11 15:29:29 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2018-01-12 22:48:23 +00:00
2018-01-11 15:29:29 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2018-03-12 09:40:46 +00:00
2016-08-13 15:41:04 +00:00
2018-02-07 19:12:05 +00:00
2017-04-03 02:44:40 +00:00
2017-04-03 13:35:04 +00:00
2018-01-19 12:50:03 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2018-02-07 18:59:54 +00:00
2018-02-07 18:59:54 +00:00
2018-01-22 02:08:10 +00:00
2017-04-03 13:35:04 +00:00
2018-04-11 11:12:20 +00:00