* small changes to support the new destination port & protocol options in the feed editor and in the reporting engine
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit
85c0429651b09a75195bb583506decf07fa9b7bf)
}
o = s.option(form.Value, 'flag', _('Flag'));
}
o = s.option(form.Value, 'flag', _('Flag'));
- o.datatype = 'and(minlength(2),maxlength(2))';
o.validate = function (section_id, value) {
if (!value) {
return true;
}
o.validate = function (section_id, value) {
if (!value) {
return true;
}
- if (!value.match(/^gz$/)) {
+ if (!value.match(/^(\bgz\b|\btcp\b|\budp\b|\b[0-9\-]+\b| )*$/)) {
return _('Flag not supported');
}
return true;
return _('Flag not supported');
}
return true;
E('th', { 'class': 'th right', 'style': 'padding-right: 20px' }, _('Elements')),
E('th', { 'class': 'th' }, _('WAN-Input (packets)')),
E('th', { 'class': 'th' }, _('WAN-Forward (packets)')),
E('th', { 'class': 'th right', 'style': 'padding-right: 20px' }, _('Elements')),
E('th', { 'class': 'th' }, _('WAN-Input (packets)')),
E('th', { 'class': 'th' }, _('WAN-Forward (packets)')),
- E('th', { 'class': 'th' }, _('LAN-Forward (packets)'))
+ E('th', { 'class': 'th' }, _('LAN-Forward (packets)')),
+ E('th', { 'class': 'th' }, _('Port/Protocol Limit'))
E('em', { 'style': 'padding-right: 20px' }, content.sets[key].cnt_elements),
E('em', content.sets[key].input + cnt1),
E('em', content.sets[key].wan_forward + cnt2),
E('em', { 'style': 'padding-right: 20px' }, content.sets[key].cnt_elements),
E('em', content.sets[key].input + cnt1),
E('em', content.sets[key].wan_forward + cnt2),
- E('em', content.sets[key].lan_forward + cnt3)
+ E('em', content.sets[key].lan_forward + cnt3),
+ E('em', content.sets[key].port)