wireguard-go/conn
Josh Bleecher Snyder 10533c3e73 all: make conn.Bind.Open return a slice of receive functions
Instead of hard-coding exactly two sources from which
to receive packets (an IPv4 source and an IPv6 source),
allow the conn.Bind to specify a set of sources.

Beneficial consequences:

* If there's no IPv6 support on a system,
  conn.Bind.Open can choose not to return a receive function for it,
  which is simpler than tracking that state in the bind.
  This simplification removes existing data races from both
  conn.StdNetBind and bindtest.ChannelBind.
* If there are more than two sources on a system,
  the conn.Bind no longer needs to add a separate muxing layer.

Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
2021-04-02 11:07:08 -06:00
..
bindtest all: make conn.Bind.Open return a slice of receive functions 2021-04-02 11:07:08 -06:00
winrio conn: winrio: pass key parameter into struct 2021-04-02 10:36:41 -06:00
bind_linux.go all: make conn.Bind.Open return a slice of receive functions 2021-04-02 11:07:08 -06:00
bind_std.go all: make conn.Bind.Open return a slice of receive functions 2021-04-02 11:07:08 -06:00
bind_windows.go all: make conn.Bind.Open return a slice of receive functions 2021-04-02 11:07:08 -06:00
boundif_android.go conn: make binds replacable 2021-02-23 20:00:57 +01:00
conn.go all: make conn.Bind.Open return a slice of receive functions 2021-04-02 11:07:08 -06:00
default.go conn: implement RIO for fast Windows UDP sockets 2021-02-25 15:08:08 +01:00
mark_default.go conn: make binds replacable 2021-02-23 20:00:57 +01:00
mark_unix.go conn: make binds replacable 2021-02-23 20:00:57 +01:00