chiark
/
gitweb
/
~mdw
/
firewall
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bookends.m4: Better check for bridging.
[firewall]
/
functions.m4
diff --git
a/functions.m4
b/functions.m4
index d7b42b2eefa657138656a4c64db4ddad08deee24..f75d16edf41be7f1453afb8095e74858ecd44ba6 100644
(file)
--- a/
functions.m4
+++ b/
functions.m4
@@
-427,9
+427,9
@@
defnetclass () {
from=$(( $from + $bit ))
done
to=$(( ($netclassindex << $BIT_TO) ))
from=$(( $from + $bit ))
done
to=$(( ($netclassindex << $BIT_TO) ))
- tomask=$(( $MASK_MASK ^ (1 << ($netclassindex + $BIT_MASK)) ))
+ tomask=$(( $MASK_
TO | $MASK_
MASK ^ (1 << ($netclassindex + $BIT_MASK)) ))
trace "from $name --> set $(printf %08x/%08x $from $frommask)"
trace "from $name --> set $(printf %08x/%08x $from $frommask)"
- trace " to $name -->
and
$(printf %08x/%08x $to $tomask)"
+ trace " to $name -->
set
$(printf %08x/%08x $to $tomask)"
## Now establish the mark-from-NAME and mark-to-NAME chains.
clearchain mangle:mark-from-$name mangle:mark-to-$name
## Now establish the mark-from-NAME and mark-to-NAME chains.
clearchain mangle:mark-from-$name mangle:mark-to-$name