summaryrefslogtreecommitdiffstats
path: root/lib/sockunion.h
diff options
context:
space:
mode:
authorPaul Jakma <paul@quagga.net>2012-06-14 11:37:40 +0200
committerPaul Jakma <paul@quagga.net>2012-06-14 11:37:40 +0200
commit2fb2a455263c569119ca32be59b0337a3d8cd9b3 (patch)
tree79f895f78cd4adb43dde3ba3996e8a04a8deac42 /lib/sockunion.h
parentRevert "bgpd: Make socket init separate, so unit tests work again." (diff)
downloadfrr-2fb2a455263c569119ca32be59b0337a3d8cd9b3.tar.xz
frr-2fb2a455263c569119ca32be59b0337a3d8cd9b3.zip
lib: Add back sockunion_str2su
* sockunion.h: Add back sockunion_str2su, its removal breaks things needlessly (e.g. our own unit tests). * sockunion.c: (sockunion_str2su) implement on top of str2sockunion.
Diffstat (limited to 'lib/sockunion.h')
-rw-r--r--lib/sockunion.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h
index 1a0a3c95c..b9f351424 100644
--- a/lib/sockunion.h
+++ b/lib/sockunion.h
@@ -88,6 +88,7 @@ extern const char *sockunion2str (union sockunion *, char *, size_t);
extern int sockunion_cmp (union sockunion *, union sockunion *);
extern int sockunion_same (union sockunion *, union sockunion *);
+extern union sockunion *sockunion_str2su (const char *str);
extern int sockunion_accept (int sock, union sockunion *);
extern int sockunion_stream_socket (union sockunion *);
extern int sockopt_reuseaddr (int);