(part of TCP partitioning commit 0497150)