noip.c: Factor out address-range handling functions.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 2 May 2016 22:05:07 +0000 (23:05 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 2 May 2016 23:14:26 +0000 (00:14 +0100)
commit006dd63ff8db254b115463150da95de33fd352fa
tree31547dda92bbaaabf1c1357e4f06af64fda8f71b
parent051fa2d8dbae6489ffd5405056ef17ad5986897a
noip.c: Factor out address-range handling functions.

  * Introduce `parse_addrrange' and `foreach_addrrange' for parsing.
    The former captures a representation of the range syntax, which can
    contain things like `local' that actually cover multiple ranges, and
    the latter iterates over the implied address ranges.

  * Introduce `dump_addrrange' to produce a readable description of a
    range in the debugging output.

No functional changes.
noip.c