sticky_default.go 1.0 KB

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