"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "go/pkg/pass1/reverse-rules.go" between
Netspoc-6.026.tar.gz and Netspoc-6.027.tar.gz

About: NetSPoC is a network security policy compiler (using its own description language) to manage all the packet filter devices inside your network topology.

reverse-rules.go  (Netspoc-6.026):reverse-rules.go  (Netspoc-6.027)
skipping to change at line 130 skipping to change at line 130
srcRangeList = append(srcRangeList, newSrcRange) srcRangeList = append(srcRangeList, newSrcRange)
} }
srcRange2prtList[newSrcRange] = append(prev, newPrt) srcRange2prtList[newSrcRange] = append(prev, newPrt)
} }
for _, srcRange := range srcRangeList { for _, srcRange := range srcRangeList {
prtList := srcRange2prtList[srcRange] prtList := srcRange2prtList[srcRange]
newRule := &groupedRule{ newRule := &groupedRule{
serviceRule: &serviceRule{ serviceRule: &serviceRule{
// This rule must only be applied to stat eless routers. // This rule must only be applied to stat eless routers.
stateless: true, modifiers: modifiers{stateless: true},
deny: rule.deny, deny: rule.deny,
prt: prtList, prt: prtList,
}, },
src: rule.dst, src: rule.dst,
dst: rule.src, dst: rule.src,
srcPath: dstPath, srcPath: dstPath,
dstPath: srcPath, dstPath: srcPath,
} }
if srcRange != c.prt.IP { if srcRange != c.prt.IP {
newRule.srcRange = srcRange newRule.srcRange = srcRange
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)