diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-20 14:18:05 +0000 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-20 14:18:05 +0000 |
commit | c204b3f4299cc3c3f61ebbc5c2223fa913ce5424 (patch) | |
tree | 0881913bb63e9b798af12b338d54bccf543edcd0 /lib/sockunion.h | |
parent | 13fad04d09978db15317d3d3fb71ab87ea52c110 (diff) | |
download | quagga-c204b3f4299cc3c3f61ebbc5c2223fa913ce5424.tar.bz2 quagga-c204b3f4299cc3c3f61ebbc5c2223fa913ce5424.tar.xz |
Adding verify debug code for qtimers and tidied up.
modified: bgpd/bgp_connection.c -- using _unset functions
-- added bgp_connection_close_file
modified: bgpd/bgp_connection.h
modified: bgpd/bgp_fsm.c -- checked notification handling
-- uses bgp_connection_close_file
modified: bgpd/bgp_notification.c -- added _unset function
modified: bgpd/bgp_notification.h
modified: bgpd/bgp_open_state.c -- added _unset function
modified: bgpd/bgp_open_state.h
modified: lib/qtimers.c -- added debug _verify function
modified: lib/qtimers.h
modified: lib/sockunion.c -- added _unset function
modified: lib/sockunion.h
Diffstat (limited to 'lib/sockunion.h')
-rw-r--r-- | lib/sockunion.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h index 8fcaded4..c00c02e4 100644 --- a/lib/sockunion.h +++ b/lib/sockunion.h @@ -41,6 +41,7 @@ union sockunion { #define su_port su_si.si_port #endif /* 0 */ +typedef union sockunion* sockunion ; union sockunion { struct sockaddr sa; @@ -118,7 +119,11 @@ extern int sockunion_getsockname (int, union sockunion*); extern int sockunion_getpeername (int, union sockunion*); extern union sockunion *sockunion_dup (union sockunion *); extern void sockunion_free (union sockunion *); -extern void sockunion_clear(union sockunion*); + +extern void sockunion_unset(sockunion* p_su) ; +extern void sockunion_set(sockunion* p_dst, sockunion su) ; +extern void sockunion_set_dup(sockunion* p_dst, sockunion su) ; +extern void sockunion_set_mov(sockunion* p_dst, sockunion* p_src) ; #ifndef HAVE_INET_NTOP extern const char * inet_ntop (int family, const void *addrptr, |