gso_default.go 532 B

123456789101112131415161718192021
  1. //go:build !linux
  2. /* SPDX-License-Identifier: MIT
  3. *
  4. * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
  5. */
  6. package conn
  7. // getGSOSize parses control for UDP_GRO and if found returns its GSO size data.
  8. func getGSOSize(control []byte) (int, error) {
  9. return 0, nil
  10. }
  11. // setGSOSize sets a UDP_SEGMENT in control based on gsoSize.
  12. func setGSOSize(control *[]byte, gsoSize uint16) {
  13. }
  14. // gsoControlSize returns the recommended buffer size for pooling sticky and UDP
  15. // offloading control data.
  16. const gsoControlSize = 0