aboutsummaryrefslogtreecommitdiff
path: root/conn.go
diff options
context:
space:
mode:
authorFlorent Daigniere <nextgens@freenetproject.org>2019-02-23 21:50:04 +0100
committerFlorent Daigniere <nextgens@freenetproject.org>2019-02-25 18:20:23 +0100
commit0c2d06d8a5a6bb61b42857ac2c21c579b11a6f1c (patch)
treeabcd5992aaa3f02f0c0b5e14a4673317b6749fca /conn.go
parent9e686cd714a371ad5f35f356fe88f018fa5e92e6 (diff)
downloadwireguard-go-fd/propagate-DSCP-bits.tar.gz
wireguard-go-fd/propagate-DSCP-bits.zip
net: implement ECN handling, rfc6040 stylefd/propagate-DSCP-bits
To decide whether we should use the compatibility mode or the normal mode with a peer, we use the handshake messages as a signaling channel. If we receive the expected ECN bits, it most likely means they're running a compatible version. Signed-off-by: Florent Daigniere <nextgens@freenetproject.org>
Diffstat (limited to 'conn.go')
-rw-r--r--conn.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/conn.go b/conn.go
index b8970e7..e38160a 100644
--- a/conn.go
+++ b/conn.go
@@ -20,8 +20,8 @@ const (
*/
type Bind interface {
SetMark(value uint32) error
- ReceiveIPv6(buff []byte) (int, Endpoint, error)
- ReceiveIPv4(buff []byte) (int, Endpoint, error)
+ ReceiveIPv6(buff []byte) (int, Endpoint, byte, error)
+ ReceiveIPv4(buff []byte) (int, Endpoint, byte, error)
Send(buff []byte, end Endpoint, tos byte) error
Close() error
}