~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logging: Provide lg_perror and lg_vperror
[secnet]
/
util.h
diff --git
a/util.h
b/util.h
index
725f233
..
33b2b2b
100644
(file)
--- a/
util.h
+++ b/
util.h
@@
-81,6
+81,12
@@
extern void send_nak(const struct comm_addr *dest, uint32_t our_index,
extern int consttime_memeq(const void *s1, const void *s2, size_t n);
extern int consttime_memeq(const void *s1, const void *s2, size_t n);
+const char *iaddr_to_string(const union iaddr *ia);
+int iaddr_socklen(const union iaddr *ia);
+
+void string_item_to_iaddr(const item_t *item, uint16_t port, union iaddr *ia,
+ const char *desc);
+
#define MINMAX(ae,be,op) ({ \
typeof((ae)) a=(ae); \
typeof((be)) b=(be); \
#define MINMAX(ae,be,op) ({ \
typeof((ae)) a=(ae); \
typeof((be)) b=(be); \