chiark / gitweb /
pathmtu/pathmtu.c: Fix search algorithm.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 17 Sep 2012 13:31:08 +0000 (14:31 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 17 Sep 2012 13:43:43 +0000 (14:43 +0100)
commitd245350adb5c3c687159409dcecc24fd1e7098d0
tree399c3b88a47b79c9dd760122092b9e0389614e9f
parent01c2190311b3eab8e861014d57ddca6160998e69
pathmtu/pathmtu.c: Fix search algorithm.

Turns out I can't write a binary search algorithm.  Fiddle with it so
that it doesn't get stuck sometimes.  Some of the bounds management is a
little tricky, so add some documentation and assertions to make sure
that everything is as expected.
pathmtu/pathmtu.c