net.lisp: Factor out family-switch form parsing, and fix it.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 13 Jul 2013 15:34:40 +0000 (16:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 19 Apr 2014 14:55:40 +0000 (15:55 +0100)
commit8d531634cda3f8c98ab9dca285565e29025e0379
tree371aaf84c857cfdfdaea40010873fbac94d08710
parent7c34d08c2897bc22dcc3350a49f3794bb0134d3b
net.lisp: Factor out family-switch form parsing, and fix it.

Both `host-parse' and `net-parse-to-ipnets' had common code for
handling ((:FAMILY . ITEM)*) forms, but they (a) handled them
differently if an explicit family was provided, and (b) both
implementations were wrong.

Split out the necessary functionality, and implement it correctly.
net.lisp