2023-08-10 15:15:08 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "net"
|
|
|
|
|
|
|
|
type AbstractBridge struct {
|
|
|
|
ExistingInterface string
|
|
|
|
BridgeIpCIDR string
|
2023-08-14 12:51:04 -05:00
|
|
|
hIerarchyNumber string
|
2023-08-10 15:15:08 -05:00
|
|
|
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
|
2023-08-10 15:15:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type AbstractConfig struct {
|
|
|
|
MulticastConfig struct {
|
2023-08-17 12:59:55 -05:00
|
|
|
MIPAddr string `json:"MIpAddr"`
|
|
|
|
MPort string `json:"MPort"`
|
2023-08-10 15:15:08 -05:00
|
|
|
} `json:"MulticastConfig"`
|
|
|
|
InterfaceConfig struct {
|
|
|
|
ExistingInterface string `json:"ExistingInterface"`
|
|
|
|
BridgeIPCIDR string `json:"BridgeIpCIDR"`
|
|
|
|
} `json:"InterfaceConfig"`
|
|
|
|
Debug bool `json:"debug"`
|
|
|
|
}
|