summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-24 03:54:00 +0000
committerBill Marquette <billm@pfsense.org>2005-07-24 03:54:00 +0000
commite325b48469e421c5a0223527ef8fefb87831b182 (patch)
treee419b9e977ccd0d51b9bfb874d304c716a66f200 /etc
parenta03e3c1f6449f9a2748ec1212adde41b1652e119 (diff)
downloadpfsense-e325b48469e421c5a0223527ef8fefb87831b182.zip
pfsense-e325b48469e421c5a0223527ef8fefb87831b182.tar.gz
Ticket #122: add tcp flags to backend shaper code
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc15
1 files changed, 3 insertions, 12 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 3cd488e..12609dc 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -530,7 +530,7 @@ function generate_optcfg_array(& $optcfg) {
function filter_generate_pf_altq_rules() {
/* I don't think we're in IPFW anymore Toto */
- global $config, $g;
+ global $config, $g, $tcpflags;
$wancfg = $config['interfaces']['wan'];
$lancfg = $config['interfaces']['lan'];
@@ -764,24 +764,15 @@ function filter_generate_pf_altq_rules() {
if ($rule['iptos'])
$line .= "tos {$rule['iptos']} ";
- /*
$inflags = explode(",", $rule['tcpflags']);
$flags = " flags ";
foreach ($tcpflags as $tcpflag) {
if (array_search($tcpflag, $inflags) !== false) {
- if($tcpflag == "SYN")
- $flags .= "S/";
- else if($tcpflag == "CWR")
- $flags .= "W";
- else
- $flags .= substr($tcpflag, 1, 1);
- } else {
-
+ $flags .= strtoupper(substr($tcpflag, 0, 1));
}
}
if($flags <> " flags ")
- $line .= "{$flags} ";
- */
+ $line .= "{$flags}/SAFRPU ";
$qtag = "{$direction}queue";
$line .= " keep state tag {$rule[$qtag]} ";
OpenPOWER on IntegriCloud