From 9b4b3e73d042149e5aa74a460df0ca19a9b193eb Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 12 Oct 2006 21:48:38 +0000 Subject: [PATCH] Add comments git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4669 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/lib.tcrules | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Shorewall/lib.tcrules b/Shorewall/lib.tcrules index bb60cac97..79e37d8ae 100644 --- a/Shorewall/lib.tcrules +++ b/Shorewall/lib.tcrules @@ -30,6 +30,19 @@ # Process a TC Rule - $MARKING_CHAIN is assumed to contain the name of the # default marking chain # +# The caller has established values for the following variables: +# +# mark - MARK column +# sources - SOURCE column +# dests - DEST column +# proto - PROTO column +# ports - PORT(S) column +# sports - CLIENT PORT(S) column +# user - USER column +# testval - TEST column +# length - LENGTH column +# tos - TOS column +# process_tc_rule() { local did_connmark= @@ -92,7 +105,6 @@ process_tc_rule() if [ "x$source" != "x-" ]; then case $source in $FW:*) - [ $chain = tcpost ] || chain=tcout r="$(source_ip_range ${source#*:}) " ;; *:*) @@ -107,7 +119,6 @@ process_tc_rule() r="$(mac_match $source) " ;; $FW) - [ $chain = tcpost ] || chain=tcout ;; *) verify_interface $source || fatal_error "Unknown interface $source in rule \"$rule\"" @@ -205,7 +216,9 @@ process_tc_rule() fi } - + # + # E x e c u t i o n B e g i n s H e r e + # case $sources in $FW|$FW:*) chain=tcout