Bug 764688 (GLUSTER-2956)

Summary: Invalid typecating for ipv4 and ipv6 in rpcsvc_get_listener_port.
Product: [Community] GlusterFS Reporter: Gaurav <ggangalw>
Component: transportAssignee: Gaurav <ggangalw>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.3CC: gluster-bugs, rahulcs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: 3.3.0.qa11 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gaurav 2011-05-30 06:44:37 UTC
case AF_INET:
                listener_port = ((struct sockaddr_in6 *)&listener->trans->myinfo.sockaddr)->sin6_port;
                break;

        case AF_INET6:
                listener_port = ((struct sockaddr_in *)&listener->trans->myinfo.sockaddr)->sin_port; 
                break;

Comment 1 Anand Avati 2011-05-31 09:11:11 UTC
PATCH: http://patches.gluster.com/patch/7303 in master (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.)

Comment 2 Anand Avati 2011-05-31 13:12:05 UTC
PATCH: http://patches.gluster.com/patch/7302 in release-3.1 (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.)

Comment 3 Anand Avati 2011-05-31 13:13:23 UTC
PATCH: http://patches.gluster.com/patch/7338 in release-3.2 (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.)

Comment 4 Rahul C S 2011-06-09 07:53:38 UTC
Code change committed.