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
F97547465: D33254.diff
Mon, Sep 30, 12:31 AM
Unknown Object (File)
Sun, Sep 29, 11:05 AM
Unknown Object (File)
Fri, Sep 27, 6:35 PM
Unknown Object (File)
Thu, Sep 26, 8:46 AM
Unknown Object (File)
Wed, Sep 25, 9:32 AM
Unknown Object (File)
Tue, Sep 24, 4:11 PM
Unknown Object (File)
Tue, Sep 24, 1:01 AM
Unknown Object (File)
Sun, Sep 22, 3:36 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