Take the line rate as a constant so nothing has to be plugged in, and drop the config box

This commit is contained in:
flamingcow
2026-08-04 21:58:52 -07:00
parent 01d673dc83
commit 4c7062d600
3 changed files with 16 additions and 43 deletions
-8
View File
@@ -22,14 +22,6 @@ func setBufForce(fd, forceOpt, opt, size int) error {
return unix.SetsockoptInt(fd, unix.SOL_SOCKET, opt, size)
}
func sockBufSize(fd, opt int) int {
v, err := unix.GetsockoptInt(fd, unix.SOL_SOCKET, opt)
if err != nil {
panic(fmt.Sprintf("reading socket buffer size: %v", err))
}
return v
}
const (
sndbufBytes = 8 << 20
rcvbufBytes = 64 << 20