diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-11 11:17:37 +0100 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-04-11 11:17:37 +0100 |
commit | b878aa88eb8bb7ab74e24314e87c88586f15598d (patch) | |
tree | b51690eff9070c419dbe99602b9a974d82f8aaed /lib/sockunion.h | |
parent | 83447a051fbcc88b33fcea6670520687668d3ba1 (diff) | |
download | quagga-b878aa88eb8bb7ab74e24314e87c88586f15598d.tar.bz2 quagga-b878aa88eb8bb7ab74e24314e87c88586f15598d.tar.xz |
Support gai_strerror() and tidy bgp_listener code.
Added support for EAI_XXX error names and gai_strerror() error
messages.
Tidied up bgp_listener set up to remove #if skips around the
"old" way -- so that the older code doesn't simply rot away.
Diffstat (limited to 'lib/sockunion.h')
-rw-r--r-- | lib/sockunion.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h index 3823c522..0b23ae63 100644 --- a/lib/sockunion.h +++ b/lib/sockunion.h @@ -101,6 +101,7 @@ struct sockunion_string /* Prototypes. */ extern sockunion sockunion_init_new(sockunion su, sa_family_t family) ; +extern int sockunion_set_port(sockunion su, in_port_t port) ; extern int str2sockunion (const char *, union sockunion *); extern const char *sockunion2str (union sockunion *, char *, size_t); extern sockunion_string_t sutoa(sockunion su) ; @@ -128,6 +129,7 @@ extern void sockunion_unmap_ipv4 (union sockunion *su) ; extern void sockunion_map_ipv4 (union sockunion *su) ; extern union sockunion *sockunion_dup (union sockunion *); +extern void sockunion_copy (sockunion dst, sockunion src) ; extern void sockunion_free (union sockunion *); extern sockunion sockunion_new_prefix(sockunion su, prefix p) ; |