iplib: Refactor announce9(), add clone9()
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 16 Dec 2016 16:05:23 +0000 (11:05 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
commit43b2b2f2dbc48f98d16b6e1c4bf68fba1478d968
tree87f11a8057cf9673fcd154944f2c3896ecb90acb
parentd146b97e673bce9d69bc4d59ecc8399d16ef7943
iplib: Refactor announce9(), add clone9()

The guts of announce9() is basically just a clone, with writing 'announce'
at the end.

This extracts those guts into their own helper, and uses it for a clone9()
function.  This is just a convenient way to clone a conversation for a
given dialstring.  Note that clone does nothing with the port.  announce9()
and other functions can do something with that.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/iplib/announce.c
user/iplib/include/iplib/iplib.h