]> git.proxmox.com Git - mirror_frr.git/commit
lib: make prefix2str simpler to use, and use it in zclient
authorTimo Teräs <timo.teras@iki.fi>
Sat, 23 May 2015 08:08:39 +0000 (11:08 +0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 9 Jun 2016 12:28:38 +0000 (08:28 -0400)
commit855110bb0b6f762ebaffa0be64a1422d8d007510
treee31269cc43fc596ccd609c50afa16617f1b9b01f
parent40ee54a7404cc3c3779f6d7bed57f5c7a06aecf5
lib: make prefix2str simpler to use, and use it in zclient

Returning the buffer allows using it in the logging functions
in easier way. This also makes the API consistent with sockunion.

Add also PREFIX_STRLEN to be the generic buffer length required
for any prefix string representation.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 41eb9a4305fbcb206c900a18af7df7115d857d60)
lib/prefix.h
lib/zclient.c