Closed
Bug 1189961
Opened 11 years ago
Closed 11 years ago
AAAA resolution of STUN servers fails
Categories
(Core :: WebRTC: Networking, defect, P1)
Core
WebRTC: Networking
Tracking
()
RESOLVED
FIXED
mozilla42
| backlog | webrtc/webaudio+ |
People
(Reporter: drno, Assigned: drno)
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•11 years ago
|
||
Bug 1189961: added DNS AAAA convertion to nICEr transport addr
Attachment #8641972 -
Flags: review?(docfaraday)
Comment 2•11 years ago
|
||
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 3•11 years ago
|
||
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 4•11 years ago
|
||
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+
Comment 5•11 years ago
|
||
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.
| Assignee | ||
Comment 6•11 years ago
|
||
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?
| Assignee | ||
Comment 7•11 years ago
|
||
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
| Assignee | ||
Comment 9•11 years ago
|
||
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.
Comment 11•11 years ago
|
||
Keywords: checkin-needed
Comment 12•11 years ago
|
||
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.
Description
•