0
0
Fork 0
mirror of https://github.com/slackhq/nebula.git synced 2025-02-11 16:28:50 +00:00
Commit graph

10 commits

Author SHA1 Message Date
Wade Simmons
0736cfa562
udp: fix endianness for port ()
If the host OS is already big endian, we were swapping bytes when we
shouldn't have. Use the Go helper to make sure we do the endianness
correctly

Fixes: 
2024-08-14 12:53:00 -04:00
Nate Brown
e264a0ff88
Switch most everything to netip in prep for ipv6 in the overlay () 2024-07-31 10:18:56 -05:00
Wade Simmons
97e9834f82
cleanup SK_MEMINFO vars ()
We had to manually define these types before, but the latest release of
`golang.org/x/sys` adds these definitions:

- 6dfb94eaa3

Since we just updated with this PR, we can clean this up now:

- https://github.com/slackhq/nebula/pull/1161
2024-06-24 14:47:14 -04:00
mrx
0f0534d739
Fix UDP listener on IPv4-only Linux ()
On some systems, IPv6 is disabled (for example, CIS benchmark recommends to disable it when not used), but currently all UDP connections are using AF_INET6 sockets.
When we are binding AF_INET6 socket to an address like ::ffff:1.2.3.4 (IPv4 addresses are parsed by net.ParseIP this way), we can't send or receive IPv6 packets anyway, so this will not break any scenarios.

---------

Co-authored-by: Wade Simmons <wsimmons@slack-corp.com>
2024-01-30 15:08:14 -05:00
Nate Brown
a3e59a38ef
Use registered io on Windows when possible () 2023-07-10 12:43:48 -05:00
Nate Brown
3bbf5f4e67
Use an interface for udp conns () 2023-06-14 10:48:52 -05:00
brad-defined
9b03053191
update EncReader and EncWriter interface function args to have concrete types ()
* Update LightHouseHandlerFunc to remove EncWriter param.
* Move EncWriter to interface
* EncReader, too
2023-04-07 14:28:37 -04:00
Nate Brown
3cb4e0ef57
Allow listen.host to contain names () 2023-04-05 11:29:26 -05:00
brad-defined
1a7c575011
Relay ()
Co-authored-by: Wade Simmons <wsimmons@slack-corp.com>
2022-06-21 13:35:23 -05:00
Nate Brown
bcabcfdaca
Rework some things into packages () 2021-11-03 20:54:04 -05:00
Renamed from udp_linux.go (Browse further)