zoreide/types.go

34 lines
754 B
Go
Raw Normal View History

package main
import "net"
type AbstractBridge struct {
ExistingInterface string
BridgeIpCIDR string
2023-08-14 12:51:04 -05:00
hIerarchyNumber string
GArp *Gratuitous
}
type AbstractMulticast struct {
MIpAddr string
MPort string
MaxDatagramSize int
MWaddr *net.UDPAddr
MRaddr *net.UDPAddr
Wconn *net.UDPConn
Rconn *net.UDPConn
2023-08-14 12:51:04 -05:00
HierarchyArray []string
}
type AbstractConfig struct {
MulticastConfig struct {
2023-08-17 12:59:55 -05:00
MIPAddr string `json:"MIpAddr"`
MPort string `json:"MPort"`
} `json:"MulticastConfig"`
InterfaceConfig struct {
ExistingInterface string `json:"ExistingInterface"`
BridgeIPCIDR string `json:"BridgeIpCIDR"`
} `json:"InterfaceConfig"`
Debug bool `json:"debug"`
}