gso_default.go raw

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