Project

General

Profile

Actions

Bug #8091

closed

Limiters with fractional bandwidth values are not loaded correctly

Added by Steve Wheeler about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Traffic Shaper (Limiters)
Target version:
Start date:
11/13/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.x
Affected Architecture:

Description

IPFW is not loading the /tmp/rules.limiter file correctly in 2.4.X if the specified bandwidth value is not a whole number. For example:

pipe 1 config  bw 5.5Mb

That file is loaded correctly in 2.3.X and results in a pipe:

00001:   5.500 Mbit/s    0 ms burst 0
q131073  50 sl. 0 flows (1 buckets) sched 65537 weight 0 lmax 0 pri 0 droptail
 sched 65537 type FIFO flags 0x0 0 buckets 0 active

But in 2.4 it results in:

00001:   5.000 bit/s     0 ms burst 0 
q131073  50 sl. 0 flows (1 buckets) sched 65537 weight 0 lmax 0 pri 0 droptail
 sched 65537 type FIFO flags 0x0 0 buckets 0 active

Bits per second, which looks like completely blocked.

In 2.3.X and 2.4.X fractional values are invalid in the webgui are cannot be created but in 2.2 and earlier they were valid and are not modified at upgrade.

Additionally if you have a fractional value bandwidth limiter that is working fine in 2.3.X it's not possible to update it to whole number in the gui before upgrading due to a problem with the validation. See screenshot.


Files

Selection_313.png (17.7 KB) Selection_313.png Steve Wheeler, 11/13/2017 12:44 PM
Actions #1

Updated by Steve Wheeler about 7 years ago

If you have Limiters configured like that you can edit the values in the config file directly and re-save them in the gui to get them back in 2.4.

Actions #2

Updated by Jim Pingle about 7 years ago

I fixed the backend of this on #8097 so the pipe bandwidths should be OK, but there is still that weird GUI issue where if you start with a previously-entered fractional value you can't move it to an integer.

Actions #3

Updated by Anonymous almost 7 years ago

  • Assignee set to Anonymous
Actions #4

Updated by Anonymous almost 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #5

Updated by Chris Linstruth almost 7 years ago

Tested. Looks like it is doing the right thing.

Actions #6

Updated by Jim Pingle almost 7 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF