kdhcp/server/config.go

20 lines
297 B
Go
Raw Normal View History

2023-05-01 14:37:52 +00:00
package server
const (
DefaultPort = 67
DefaultMaxPacketSize = 512
DefaultNetwork = "udp4"
)
type Config struct {
Port int
MaxPacketSize int
}
func DefaultConfig() *Config {
return &Config{
Port: DefaultPort,
MaxPacketSize: DefaultMaxPacketSize,
}
}