Closed Bug 1189961 Opened 11 years ago Closed 11 years ago

AAAA resolution of STUN servers fails

Categories

(Core :: WebRTC: Networking, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox39 --- wontfix
firefox40 --- wontfix
firefox41 --- wontfix
firefox42 --- fixed

People

(Reporter: drno, Assigned: drno)

Details

Attachments

(1 file)

Bug 1189961: added DNS AAAA convertion to nICEr transport addr
Attachment #8641972 - Flags: review?(docfaraday)
https://reviewboard.mozilla.org/r/14671/#review13233 This seems like it needs a test. ::: media/mtransport/nr_socket_prsock.cpp:418 (Diff revision 1) > - ABORT(R_BAD_ARGS); > + memcpy(&ip6.s6_addr, &netaddr->inet6.ip, sizeof(ip6.s6_addr)); > + if ((r = nr_ip6_port_to_transport_addr(&ip6, > + ntohs(netaddr->inet6.port), > + protocol, addr))) > + ABORT(r); > + break; Is there a reason you don't cast this? Also, I think I would be happier if you addressed the interior of the union rather than the union.
Comment on attachment 8641972 [details] MozReview Request: Bug 1189961: added DNS AAAA convertion to nICEr transport addr. r?bwc https://reviewboard.mozilla.org/r/14671/#review13281
Attachment #8641972 - Flags: review?(docfaraday)
Comment on attachment 8641972 [details] MozReview Request: Bug 1189961: added DNS AAAA convertion to nICEr transport addr. r?bwc https://reviewboard.mozilla.org/r/14671/#review13287 r+ with the fix to the copy.
Attachment #8641972 - Flags: review+
https://reviewboard.mozilla.org/r/14671/#review13233 > Is there a reason you don't cast this? > > Also, I think I would be happier if you addressed the interior of the union rather than the union. Yeah, if we're copying to s6_addr, we probably also want to copy from inet6.ip.u8 to be consistent.
https://reviewboard.mozilla.org/r/14671/#review13233 Not sure how a test would look like. I think we only have the ICE unit tests "TestGatherDNSStunServerHostname*" which essentially test end-to-end from DNS name for a STUN server to generating SRV RFLX candidates. To test this code the same way we would need a STUN server with an AAAA name only entry somewhere. Or does someone how another/better idea how to test this?
Comment on attachment 8641972 [details] MozReview Request: Bug 1189961: added DNS AAAA convertion to nICEr transport addr. r?bwc Bug 1189961: added DNS AAAA convertion to nICEr transport addr. r?bwc
Attachment #8641972 - Attachment description: MozReview Request: Bug 1189961: added DNS AAAA convertion to nICEr transport addr → MozReview Request: Bug 1189961: added DNS AAAA convertion to nICEr transport addr. r?bwc
Does this affect anything before 42?
backlog: --- → webRTC+
Rank: 15
Yes this has an ABORT() in all previous releases. But as IPv6 support for nICEr only landed in 42 it only makes sense to fix this in 42.
Green try run.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: