enable GSO on Linux, if available

This commit is contained in:
Marten Seemann 2023-04-19 10:48:32 +02:00
parent 7d8db149b6
commit 39ae200972
9 changed files with 87 additions and 10 deletions

View file

@ -19,6 +19,8 @@ type connCapabilities struct {
// This connection has the Don't Fragment (DF) bit set.
// This means it makes to run DPLPMTUD.
DF bool
// GSO (Generic Segmentation Offload) supported
GSO bool
}
// rawConn is a connection that allow reading of a receivedPackeh.