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
F102680102: D33254.id99423.diff
Fri, Nov 15, 6:54 PM
Unknown Object (File)
Sat, Nov 9, 10:38 PM
Unknown Object (File)
Sat, Nov 9, 10:23 PM
Unknown Object (File)
Sat, Nov 9, 4:05 PM
Unknown Object (File)
Fri, Nov 8, 6:41 AM
Unknown Object (File)
Thu, Nov 7, 9:31 PM
Unknown Object (File)
Wed, Nov 6, 10:08 PM
Unknown Object (File)
Tue, Nov 5, 8:00 AM

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