Page MenuHomeFreeBSD

in_pcb: use jenkins hash over the entire IPv6 (or IPv4) address
ClosedPublic

Authored by glebius on Dec 3 2021, 8:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 3:16 AM
Unknown Object (File)
Fri, Apr 12, 8:46 AM
Unknown Object (File)
Fri, Apr 5, 3:49 AM
Unknown Object (File)
Mar 18 2024, 12:45 PM
Unknown Object (File)
Jan 28 2024, 7:53 AM
Unknown Object (File)
Dec 20 2023, 7:10 AM
Unknown Object (File)
Dec 10 2023, 12:13 PM
Unknown Object (File)
Nov 23 2023, 10:25 PM

Details

Summary

The intent is to provide more entropy than can be provided
by just the 32-bits of the IPv6 address which overlaps with
6to4 tunnels. This is needed to mitigate potential algorithmic
complexity attacks from attackers who can control large
numbers of IPv6 addresses.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This has been running at Netflix for a while. Written by @gallatin and myself after a test case instrumented by @jtl .

David dropped me an email saying he'll look at this but earliest the weekend. Would be good to hold it off to give him some time.

This looks good to me - including a random hashseed seems like a great idea. I guess someday it might be neat to hash the fport and lport values, rather than xor them, but that should wait for another day if this has already been running in Netfilx.

This revision is now accepted and ready to land.Dec 12 2021, 8:03 PM