Bug 198351

Summary: Package amanda lacks IPv6 support
Product: [Fedora] Fedora Reporter: Peter Vrabec <pvrabec>
Component: amandaAssignee: Radek Brich <rbrich>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mbacovsk
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-03 10:20:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 195271    

Description Peter Vrabec 2006-07-11 10:13:40 UTC
This bug was reported automaticaly in connection with IPv6 project.
Our aim is to support IPv6 in all Fedora Core packages so FC6 and RHEL5 will be ready for IPv6.
			
This package seems to lack IPv6 support as is illustrated in attached log.
	
Here follows part of scanning log (grep -r F_INET *)/up to 30 lines: 

/amanda-2.5.0p2/server-src/amindexd.c:984:	assert(his_name->h_addrtype == AF_INET);
/amanda-2.5.0p2/server-src/amindexd.c:995:    if (his_addr.sin_family != AF_INET || ntohs(his_addr.sin_port) == 20)
/amanda-2.5.0p2/server-src/amindexd.c:1003:				  AF_INET)) == NULL) {
/amanda-2.5.0p2/restore-src/amidxtaped.c:185:     if (addr.sin_family != AF_INET || ntohs(addr.sin_port) == 20) {
/amanda-2.5.0p2/restore-src/amidxtaped.c:310:    if (addr.sin_family != AF_INET || ntohs(addr.sin_port) == 20) {
/amanda-2.5.0p2/client-src/amandad.c:271:	    in = out = socket(AF_INET, SOCK_DGRAM, 0);
/amanda-2.5.0p2/client-src/amandad.c:274:	    sin.sin_family = AF_INET;
/amanda-2.5.0p2/client-src/amandad.c:289:	    sock = socket(AF_INET, SOCK_STREAM, 0);
/amanda-2.5.0p2/client-src/amandad.c:294:	    sin.sin_family = AF_INET;
/amanda-2.5.0p2/common-src/krb4-security.c:447:    kh->peer.sin_family = AF_INET;
/amanda-2.5.0p2/common-src/krb4-security.c:970:    he = gethostbyaddr((void *)&peer.sin_addr, sizeof(peer.sin_addr), AF_INET);
/amanda-2.5.0p2/common-src/stream.c:54:    if((server_socket = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
/amanda-2.5.0p2/common-src/stream.c:73:    server.sin_family = AF_INET;
/amanda-2.5.0p2/common-src/stream.c:184:    svaddr.sin_family = AF_INET;
/amanda-2.5.0p2/common-src/stream.c:188:    if((client_socket = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
/amanda-2.5.0p2/common-src/stream.c:219:    claddr.sin_family = AF_INET;
/amanda-2.5.0p2/common-src/stream.c:424:	if(addr.sin_family == AF_INET && ntohs(addr.sin_port) != 20) {
/amanda-2.5.0p2/common-src/stream.c:427:	if(addr.sin_family != AF_INET) {
/amanda-2.5.0p2/common-src/stream.c:428:	    dbprintf(("%s: family is %d instead of %d(AF_INET): ignored\n",
/amanda-2.5.0p2/common-src/stream.c:431:		      AF_INET));

Comment 1 Peter Vrabec 2007-03-20 11:54:47 UTC
Hi Lukas, could u test if current amanda support IPv6.


Comment 2 Lukas Vrabel 2007-03-30 09:58:47 UTC
ipv6 is not supported in current version (2.5.0), but will be supported in 
2.5.2 (will be resolved after the upgrade of amanda)

Comment 3 Radek Brich 2007-07-03 10:20:19 UTC
version 2.5.2p1 is now in rawhide and supports IPv6