"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "go/pkg/pass1/check-redundant.go" between
Netspoc-6.032.tar.gz and Netspoc-6.033.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.

check-redundant.go  (Netspoc-6.032):check-redundant.go  (Netspoc-6.033)
skipping to change at line 208 skipping to change at line 208
// Link only from small to large service, because services are // Link only from small to large service, because services are
// processed ordered by sorted names later. // processed ordered by sorted names later.
link := func(s, o *service) { link := func(s, o *service) {
m := ri.hasSameDupl[s] m := ri.hasSameDupl[s]
if m == nil { if m == nil {
m = make(map[*service]bool) m = make(map[*service]bool)
ri.hasSameDupl[s] = m ri.hasSameDupl[s] = m
} }
m[o] = true m[o] = true
} }
if svc.name < osvc.name { if svc.name > osvc.name {
link(svc, osvc)
} else if svc.name > osvc.name {
link(osvc, svc) link(osvc, svc)
} else if svc.name < osvc.name {
// This can't occur, because rules are created from sorted
// services earlier.
link(svc, osvc)
} }
// Return early, so overlapsUsed isn't set below. // Return early, so overlapsUsed isn't set below.
if rule.overlaps && other.overlaps { if rule.overlaps && other.overlaps {
return return
} }
if c.checkAttrOverlaps(svc, osvc, rule, ri) || if c.checkAttrOverlaps(svc, osvc, rule, ri) ||
c.checkAttrOverlaps(osvc, svc, rule, ri) { c.checkAttrOverlaps(osvc, svc, rule, ri) {
return return
 End of changes. 2 change blocks. 
3 lines changed or deleted 5 lines changed or added

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