"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "go/pkg/printer/printer.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.

printer.go  (Netspoc-6.026):printer.go  (Netspoc-6.027)
skipping to change at line 88 skipping to change at line 88
net = "[" + ext + "]" net = "[" + ext + "]"
ext = "" ext = ""
} else if ext != "" { } else if ext != "" {
ext = "." + ext ext = "." + ext
} }
p.print(pre + x.Type + ":" + x.Router + "." + net + ext + post) p.print(pre + x.Type + ":" + x.Router + "." + net + ext + post)
case *ast.SimpleAuto: case *ast.SimpleAuto:
p.subElements(pre, x.Type+":[", x.Elements, "]"+post) p.subElements(pre, x.Type+":[", x.Elements, "]"+post)
case *ast.AggAuto: case *ast.AggAuto:
p2 := x.Type + ":[" p2 := x.Type + ":["
if n := x.Net; n != nil { if x.Net != "" {
p2 += "ip = " + n.String() + " &" p2 += "ip = " + x.Net + " &"
} }
p.subElements(pre, p2, x.Elements, "]"+post) p.subElements(pre, p2, x.Elements, "]"+post)
case *ast.IntfAuto: case *ast.IntfAuto:
p2 := x.Type + ":[" p2 := x.Type + ":["
stop := "].[" + x.Selector + "]" + post stop := "].[" + x.Selector + "]" + post
if x.Managed { if x.Managed {
p2 += "managed &" p2 += "managed &"
} }
p.subElements(pre, p2, x.Elements, stop) p.subElements(pre, p2, x.Elements, stop)
case *ast.Intersection: case *ast.Intersection:
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

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