[Syslog-ng-commit] syslog-ng--mainline: added IPv6 support
Balazs Scheidler
bazsi at balabit.hu
Sun Apr 23 11:23:27 CEST 2006
Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-42>
Revision: syslog-ng--mainline--2.0--patch-42
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Sun Apr 23 11:23:19 CEST 2006
Standard-date: 2006-04-23 09:23:19 GMT
Modified-files: ChangeLog configure.in src/afinet.c
src/afinet.h src/cfg-grammar.y src/cfg-lex.l
src/gsockaddr.c src/gsockaddr.h
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-42
Summary: added IPv6 support
Keywords:
* configure.in: added --enable-ipv6 option, defaults to "yes",
added checks for getaddrinfo()
* src/afinet.c (afinet_set_port): added ipv6 support,
(afinet_resolve_name): renamed from afinet_set_ip, use getaddrinfo()
to resolve names where available,
(afinet_sd_new): added af argument, use afinet_resolve_name instead
of the removed g_sockaddr_inet_new_resolve() function, use a default
"bind address" value if the host argument is NULL,
(afinet_dd_new): added af argument, use afinet_resolve_name instead
of the removed g_sockaddr_inet_new_resolve() function
* src/cfg-grammar.y: added KW_UDP6 and KW_TCP6 keywords,
(source_afsocket, dest_afsocket): added rules for KW_UDP6 & KW_TCP6,
(dest_afinet_udp_params, dest_afinet_tcp_params): added ipv6
support, adapted to the latest changes in afinet
(source_afinet_udp_params, source_afinet_tcp_params): -"-
* src/cfg-lex.l: added "udp6" and "tcp6" keywords
* src/gsockaddr.c (g_sockaddr_inet_new_resolve): removed this
function as it is an address family independent operation now
implemented in afinet.c,
(g_sockaddr_inet6_check): new function to check whether a GSockAddr
contains an ipv6 socket name,
* src/gsockaddr.h (g_sockaddr_get_sa, g_sockaddr_inet_get_sa,
g_sockaddr_inet_get_address, g_sockaddr_inet_set_address,
g_sockaddr_inet_get_port, g_sockaddr_inet_set_port): new inline
functions, ported from the Zorp sockaddr code,
(g_sockaddr_inet6_get_sa, g_sockaddr_inet6_get_address,
g_sockaddr_inet6_set_address, g_sockaddr_inet6_get_port,
g_sockaddr_inet6_set_port): new functions, similar to IPv6 counterparts
Diff stats:
ChangeLog | 48 ++++++++++++++++++
configure.in | 6 +-
src/afinet.c | 104 +++++++++++++++++++++++++++++++++++-----
src/afinet.h | 4 -
src/cfg-grammar.y | 31 +++++++-----
src/cfg-lex.l | 2
src/gsockaddr.c | 41 ++--------------
src/gsockaddr.h | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 files changed, 310 insertions(+), 63 deletions(-)
More information about the Syslog-ng-commit
mailing list