chiark / gitweb /
svc/conntrack.in: Fix netmask parsing.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 28 Sep 2017 18:10:34 +0000 (19:10 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 28 Jun 2018 23:29:23 +0000 (00:29 +0100)
commit508294eabafbbf8d898ac2a94fa05262ad244dcf
tree6a24903b5ef5724128a62a1f3572d515ae7654c0
parentf53935552469894ef696b6f01fc19a70845bea91
svc/conntrack.in: Fix netmask parsing.

  * Improve the checking for a prefix length: see if the thing is
    entirely made of digits, rather than searching for a `.'.

  * More importantly, if we have a general netmask, then parse the
    correct part of the network spec as the mask.
svc/conntrack.in