mirror of
https://github.com/soypat/lneto.git
synced 2026-07-26 10:38:47 +00:00
refactor max tcp port config values to uint16 to better represent their valid space
This commit is contained in:
@@ -121,11 +121,11 @@ func run() (err error) {
|
||||
var stack xnet.StackAsync
|
||||
|
||||
err = stack.Reset(xnet.StackConfig{
|
||||
Hostname: "xnet-test",
|
||||
RandSeed: softRand,
|
||||
HardwareAddress: brHW,
|
||||
MTU: uint16(mtu),
|
||||
MaxTCPConns: 1,
|
||||
Hostname: "xnet-test",
|
||||
RandSeed: softRand,
|
||||
HardwareAddress: brHW,
|
||||
MTU: uint16(mtu),
|
||||
MaxActiveTCPPorts: 1,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user