Skip to content

Commit

Permalink
Removed attribute isLayer3 of type network
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Feb 27, 2024
1 parent d3210fa commit c4e3fed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion go/pkg/pass1/find-subnets.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func (c *spoc) findSubnetsInNatDomain0(domains []*natDomain, networks netList) {
subnet := origNet[natSubnet]
bignet := origNet[natBignet]

if !natSubnet.isLayer3 {
if l := natSubnet.interfaces; !(len(l) == 1 && l[0].isLayer3) {
subnet.subnetOfUsed = true
if printType := c.conf.CheckSubnets; printType != "" &&
// Take original bignet, because currently
Expand Down
1 change: 0 additions & 1 deletion go/pkg/pass1/setup-objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,6 @@ func (c *spoc) setupInterface(v *ast.Attribute,
// Mark as automatically created.
n.loopback = true
n.subnetOf = subnetOf
n.isLayer3 = intf.isLayer3
n.ipV6 = v6

// Move NAT definition to loopback network.
Expand Down
1 change: 0 additions & 1 deletion go/pkg/pass1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ type network struct {
ipp netip.Prefix
ipType int
isAggregate bool
isLayer3 bool
link *network
loopback bool
maxRoutingNet *network
Expand Down

0 comments on commit c4e3fed

Please sign in to comment.