Brad Fitzpatrick
024257ef5a
net/stun: unmap IPv4 addresses in 16 byte STUN replies
...
Updates #5602
Change-Id: I2276ad2bfb415b9ff52f37444f2a1d74b38543b1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
4 years ago
Kris Brandow
8f38afbf8e
net/stun: convert to use net/netip.AddrPort
...
Convert ParseResponse and Response to use netip.AddrPort instead of
net.IP and separate port.
Fixes #5281
Signed-off-by: Kris Brandow <kris.brandow@gmail.com>
4 years ago
renthraysk
10cad39abd
net/stun: Fix STUN attribute padding ( #710 )
...
net/stun: fix STUN attribute padding
Signed-off-by: RenThraysk <renthraysk@gmail.com>
6 years ago
Quoc-Viet Nguyen
15a23ce65f
net/stun: Remove unreachable code
...
- Reuse IP length constants from net package.
- Remove beu16 to make endianness functions consistent.
Signed-off-by: Quoc-Viet Nguyen <afelion@gmail.com>
6 years ago
Brad Fitzpatrick
b0c10fa610
stun, netcheck: move under net
6 years ago
Brad Fitzpatrick
d348b94505
stun, stunner: clarify an error log message more
...
But two earlier changes mean this doesn't show up anymore anyway.
But if it does, it'll be a nice message.
6 years ago
Brad Fitzpatrick
0e128f8f22
stun: add server support
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 years ago
Brad Fitzpatrick
14abc82033
stun: check high bits in Is, add tests
...
Also use new stun.TxID type in stunner.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 years ago
Brad Fitzpatrick
2489ea4268
stun: fix IPv6 bug, refactor a bit
...
Fixes #104
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 years ago
Earl Lee
a8d8b8719a
Move Linux client & common packages into a public repo.
6 years ago