"Fossies" - the Fresh Open Source Software Archive  

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

spoc2.go  (Netspoc-6.032):spoc2.go  (Netspoc-6.033)
skipping to change at line 294 skipping to change at line 294
filterOnlyGroup *ipNet filterOnlyGroup *ipNet
doObjectgroup bool doObjectgroup bool
objGroupsMap map[groupKey][]*objGroup objGroupsMap map[groupKey][]*objGroup
objGroupCounter int objGroupCounter int
chainCounter int chainCounter int
chains []*lChain chains []*lChain
} }
func readJSON(path string) *routerData { func readJSON(path string) *routerData {
jData := new(jcode.RouterData) jData := new(jcode.RouterData)
data, e := os.ReadFile(path) fd, err := os.Open(path)
if e != nil { if err != nil {
panic(e) panic(err)
} }
e = json.Unmarshal(data, &jData) dec := json.NewDecoder(fd)
if e != nil { if err := dec.Decode(&jData); err != nil {
panic(e) panic(err)
} }
rData := new(routerData) rData := new(routerData)
if i := strings.Index(path, "/ipv6/"); i != -1 { if i := strings.Index(path, "/ipv6/"); i != -1 {
rData.ipv6 = true rData.ipv6 = true
} }
rData.model = jData.Model rData.model = jData.Model
rData.logDeny = jData.LogDeny rData.logDeny = jData.LogDeny
rData.doObjectgroup = jData.DoObjectgroup rData.doObjectgroup = jData.DoObjectgroup
acls := make([]*aclInfo, len(jData.ACLs)) acls := make([]*aclInfo, len(jData.ACLs))
for i, jACL := range jData.ACLs { for i, jACL := range jData.ACLs {
 End of changes. 2 change blocks. 
6 lines changed or deleted 6 lines changed or added

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