github.com/koomox/wireguard-go@v0.0.0-20230722134753-17a50b2f22a3/conn/sticky_default.go (about)

     1  //go:build !linux || android
     2  
     3  /* SPDX-License-Identifier: MIT
     4   *
     5   * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
     6   */
     7  
     8  package conn
     9  
    10  import "net/netip"
    11  
    12  func (e *StdNetEndpoint) SrcIP() netip.Addr {
    13  	return netip.Addr{}
    14  }
    15  
    16  func (e *StdNetEndpoint) SrcIfidx() int32 {
    17  	return 0
    18  }
    19  
    20  func (e *StdNetEndpoint) SrcToString() string {
    21  	return ""
    22  }
    23  
    24  // TODO: macOS, FreeBSD and other BSDs likely do support this feature set, but
    25  // use alternatively named flags and need ports and require testing.
    26  
    27  // getSrcFromControl parses the control for PKTINFO and if found updates ep with
    28  // the source information found.
    29  func getSrcFromControl(control []byte, ep *StdNetEndpoint) {
    30  }
    31  
    32  // setSrcControl parses the control for PKTINFO and if found updates ep with
    33  // the source information found.
    34  func setSrcControl(control *[]byte, ep *StdNetEndpoint) {
    35  }
    36  
    37  // srcControlSize returns the recommended buffer size for pooling sticky control
    38  // data.
    39  const srcControlSize = 0
    40  
    41  const StdNetSupportsStickySockets = false