chiark / gitweb /
linux.c: Detect hall-of-mirrors effect in `nf_conntrack'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 4 Jun 2018 00:49:24 +0000 (01:49 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 4 Jun 2018 00:49:24 +0000 (01:49 +0100)
commitd817f2c3f8bbfcacd2a9cb255b66bf7d9d5dedfa
tree94b6657c133e4ee8291e51a827f72fafb9fbca33
parentdd5e35da5f74e9ed3bbfb639c2bab927a12c634f
linux.c: Detect hall-of-mirrors effect in `nf_conntrack'.

As well as NAT entries, this file contains entries for ordinary
connections, where both address pairs are equal and swapped.  If we find
one of these -- because we failed to find the connection in the main
`tcp' table for some reason -- then we'll pick the other remote address
as an ident daemon to talk to.  The problem is that that other daemon is
us, and we'll end up talking to another instance of ourselves, which
will fall into the same trap.  Until there aren't any file descriptors
left.
linux.c