1 //go:build !linux || android
2 3 /* SPDX-License-Identifier: MIT
4 *
5 * Copyright (C) 2017-2025 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 the sticky sockets
25 // {get,set}srcControl feature set, but use alternatively named flags and need
26 // ports and require testing.
27 28 // getSrcFromControl parses the control for PKTINFO and if found updates ep with
29 // the source information found.
30 func getSrcFromControl(control []byte, ep *StdNetEndpoint) {
31 }
32 33 // setSrcControl parses the control for PKTINFO and if found updates ep with
34 // the source information found.
35 func setSrcControl(control *[]byte, ep *StdNetEndpoint) {
36 }
37 38 // stickyControlSize returns the recommended buffer size for pooling sticky
39 // offloading control data.
40 const stickyControlSize = 0
41 42 const StdNetSupportsStickySockets = false
43