Make the IP loopback check faster
Decapsulate currently allocates a lot and this appears to have been causing some issues (hard to tell, pprof is misbehaving). Note: I removed the TODO as this function now *only* checks if we're dealing with a loopback address. Not sure what `OverIPLoopback` was supposed to mean. Note 2: Decapsulate actually checked if the IP6 loopback addresses appeared *anywhere* in the multiadder. However, as we weren't doing this for IP4, I decided to simplify this and only check prefixes.
Showing
Please register or sign in to comment