Commit Graph

292 Commits

Author SHA1 Message Date
Nils Ohlmeier [:drno]
cbc07da4e7 Bug 1466375: avoid NRREGGET NRREGSET redefinition. r=bwc
MozReview-Commit-ID: 6DdZS7bY2di

--HG--
extra : rebase_source : 8ee57ef14853a27189ef6146629be77b406f4103
2018-06-04 08:51:22 -07:00
Nils Ohlmeier [:drno]
7ba50abeee Bug 1466375: make nICEr and nrappkit compile as unified sources. r=bwc
MozReview-Commit-ID: 59MXxWYd5V0

--HG--
extra : rebase_source : 3778c7aeb8c92b785977d5a612d755dbe951c56d
2018-06-01 22:58:48 -07:00
Dan Minor
6a3494fbc0 Bug 1464069 - Check error code in stun_parser_libfuzz.cpp; r=drno
MozReview-Commit-ID: Lx32Mx8KmRm

--HG--
extra : rebase_source : 638b6d7498407c52b680ea72898c4dc155dcf3ec
2018-05-29 13:04:28 -04:00
Christian Holler
570031d38c Bug 1464202 - Improve and centralize libFuzzer flag management. r=froydnj
MozReview-Commit-ID: HFrQDAZWtpo

--HG--
extra : rebase_source : ab1da001d7e9280fbfb37858505f1d0d0caf7d54
2018-05-24 21:11:46 +02:00
Dan Minor
e6ea8ef7b6 Bug 1464069 - Check for null message in nr_stun_decode_message; r=drno
MozReview-Commit-ID: B1SHDte4miv

--HG--
extra : rebase_source : e60dc6b48319f3cfcff2b3411f7eb8cd8928408e
2018-05-25 11:57:18 -04:00
Sylvestre Ledru
4f43e5effe Bug 1461614 - Use _DEFAULT_SOURCE on top of _BSD_SOURCE to remove a warning caused by the glibc r=drno
MozReview-Commit-ID: 5Vso0zCzSBx

--HG--
extra : rebase_source : 06ab0c54b70647ab3befde9cf692d1030662be37
2018-05-15 11:54:22 +02:00
Michael Froman
79bc45e84a Bug 1374699 - make warnings errors on nICEr and nrappkit builds. r=ekr
MozReview-Commit-ID: 7nPOPzcC925

--HG--
extra : rebase_source : b1b4bd391a71dab2bb3409b68c8680e972ee0ae4
2017-09-21 10:29:16 -05:00
Michael Froman
a3a44bb8ab Bug 1374699 - fix .gyp file formatting by detabbing. r=ekr
MozReview-Commit-ID: CaUMCJgzhrQ

--HG--
extra : rebase_source : f371f42e26d6c8aa52338913a511015d9096e5dc
2017-09-21 16:56:07 -05:00
Michael Froman
d5fb082c26 Bug 1374699 - fixing compiler warnings for nrappkit. r=drno
MozReview-Commit-ID: CAQQvheP1Wg

--HG--
extra : rebase_source : a5c5857c84339587f6197be95534700d1aca7942
extra : source : ac789983242b806ceeeca4569ac1f5ddfcbaaba2
2017-09-21 08:56:34 -05:00
Michael Froman
dfb4c1b5bd Bug 1374699 - fixing compiler warnings for nICEr. r=drno
Cleaning up compiler warnings for nICEr.  Major highlights:
 - set _WINSOCK_DEPRECATED_NO_WARNINGS define in nicer.gyp for Windows
   builds of nICEr to avoid warnings about inet_addr use in ice_ctx.c:102,
   ice_ctx.c:297, ice_parser.c:465, and transport_addr_reg.c:143.
 - move nr_ice_accumulate_count from ice_ctx.{h|c} to stun_util.{h|c}
   as nr_accumulate_count to quiet warnings in turn_client_ctx.c and
   stun_client_ctx.c.
 - stun_msg.{h|c} - change nr_stun_attr_data_.length,
   nr_stun_message_attribute.encoding_length and nr_stun_message_.length
   from int to UINT2 (not size_t since other lengths in this header are
   UINT2).
 - stun_codec.{h|c} - lengths and offsets changed from int to UINT2 to
   match changes in stun_msg.{h|c}
 - r_data.{h|c} - change Data.len from int to size_t
 - nr_crypto.{h|c} - change nr_ice_crypto_vtbl_ lengths from int to size_t

MozReview-Commit-ID: EF5v79RpqbI

--HG--
extra : rebase_source : ead30e2359ea6a6aada4dd222137302ba86fb972
2017-07-17 11:49:49 -05:00
Michael Froman
dc47a5c53d Bug 1434531 - fix missing TCP relay candidates. r=drno
Because the nr_transport_addr_check_compatibility check also includes
protocol, it was failing checks that used to pass.  However, the actual
address used was created farther down in code by copying the current
address and setting the protocol to TCP.  Moving that address copy up
in the processing flow lets the more stringent check work.

MozReview-Commit-ID: 95SOQzxuxXB

--HG--
extra : rebase_source : 95f4cf6d9f10ee4f81c56d7bbe8027c46749cfb8
2018-02-02 16:03:51 -06:00
Michael Froman
1b1c4f9ab7 Bug 1414169 - pt 1 - add trickle field to nr_ice_candidate. r=drno
Adding trickle field that will allow us to flag trickled candidates
on about:webrtc.
Also added label field to NrIceCandidate to facilitate showing the
raw candidate info on about:webrtc.

MozReview-Commit-ID: HuP3IxYOOBJ

--HG--
extra : rebase_source : 975cb5b29b2aef233f856bfbdc8c325535d24272
2017-11-20 16:52:21 -06:00
Michael Froman
033ed8ae3a Bug 1415249 - remove unused variables introduced in Bug 1408218. r=drno
Two variables, contains_mac_based_ipv6 and contains_teredo_ipv6, were
added that are set but never used.  This will cause compiler warnings
issues in the future.

MozReview-Commit-ID: C5ZReH94RpM

--HG--
extra : rebase_source : 50e06da3c093a118151d840b7d25a979afce6321
2017-11-07 09:28:47 -06:00
Chris Manchester
c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Nils Ohlmeier [:drno]
75da806f11 Bug 1408218: ignore EUI 64 and Teredo addresses if not needed. r=bwc
MozReview-Commit-ID: 5QHi9iC2e7y

--HG--
extra : rebase_source : 0f4f4afa3edd4153418661d8ef6f3efa12bf6223
2017-10-13 08:32:16 -07:00
Byron Campen [:bwc]
4fda13fafa Bug 1406154: Ensure that we avoid truncating the interface description strings in a couple of corner cases. r+drno
MozReview-Commit-ID: KMTpbkvA4N

--HG--
extra : rebase_source : 377b9ae8c2664d186a496ef04a6e42b00d56883f
2017-10-12 12:12:40 -05:00
Michael Froman
6e07c1bbf9 Bug 1361894 - ignore STUN/TURN servers with mis-matched link local addr. r=bwc
MozReview-Commit-ID: FMRWMHCROUf

--HG--
extra : rebase_source : 98d3100010c50a21bd48c474aac140e8e1636271
2017-09-29 09:20:07 -05:00
Dan Minor
55f5ef6e16 Bug 1373843 - Add -fsanitize-coverage to cflags in nicer.gyp; r=posidron
I missed doing this in the original patch because my mozconfig defined the
CFLAGS globally to include -fsanitize-coverage.

MozReview-Commit-ID: 4QdiIgdfAm2

--HG--
extra : rebase_source : bfd1ef5097b91c23913c0349a04154f18f60eef5
2017-09-20 17:05:07 -04:00
Dan Minor
6e7bc1c221 Bug 1373843: Change assertion about message length to error in stun_codec.c; r=drno
MozReview-Commit-ID: 1oUEQk9vg1L

--HG--
extra : rebase_source : 8ca178eb1e356b06b09582e85a0e91a93648b29c
2017-09-19 15:29:22 -04:00
Henri Sivonen
1961f9269f Bug 860727 clean-up - Remove mbslen.c/h from the tree. r=bwc
MozReview-Commit-ID: 2sRjpNYX5eA

--HG--
extra : rebase_source : 23b0bf6a5ce470daa7ec5ee951d0cccf43402426
2017-09-06 10:24:54 +03:00
Henri Sivonen
2aa5a465d3 Bug 860727 - Implement UTF-8 code unit counting without setlocale(). r=bwc
Counting the code points in a UTF-8 string is simple enough that that it is
not worthwhile to use the locale-dependent parts of the C standard library
for the task.

MozReview-Commit-ID: 6Tzd5NHub3B

--HG--
extra : rebase_source : d452896317d354ee85c817533cba3116adf5277e
2017-09-05 09:12:02 +03:00
Michael Froman
5d1597b31f Bug 1391857 - fixing ctx flags for e10s stun addr gathering. r=drno
In the case of e10s, the ctx flags for default route only (and less
importantly in this case, proxy only) were not set on the ice ctx
when SetStunAddrs was called in PeerConnectionMedia.

MozReview-Commit-ID: CldUpJfaaH3

--HG--
extra : rebase_source : 6223722275d4741519890d4d2b8436b05ca43155
2017-08-22 10:13:06 -05:00
Eric Rahm
50513900c7 Bug 1389598 - Part 2: Remove gonk references from media/ r=jesup
--HG--
extra : rebase_source : d1af2d0987038e1c0b0b0c971d0d2e4e9f08364a
2017-08-11 17:46:15 -07:00
Mike Hommey
66d4d80b03 Bug 1388681 - Disable -Wformat-security where -Wformat is disabled. r=bwc
--HG--
extra : rebase_source : b303f70c2900b8dff538083a6b406545170356c2
2017-08-09 18:45:16 +09:00
Michael Froman
1b76f106fd Bug 1339906 - pt 4 - add last sent and received timestamps to RTCIceCandidatePairStats. r=drno,qdot
MozReview-Commit-ID: GE23lS7qs9n

--HG--
extra : rebase_source : 5b39e4232258eca1807d3c962a2ed40c2724822b
2017-06-06 17:36:40 -05:00
Michael Froman
69f85fff44 Bug 1339906 - pt 1 - Add bytesSent and bytesReceived to RTCIceCandidatePairStats. r=drno,qdot
MozReview-Commit-ID: BQGPTUzRCB3

--HG--
extra : rebase_source : cd2abb970a07479c8425a13d12fc0fbaa487b00e
2017-06-06 16:30:56 -05:00
Michael Froman
55d8a7bd34 Bug 1368159 - change log statement for pre-existing local addresses from error to warning in nr_ice_set_local_addresses. r=drno
When I added this check during the modifications for Bug 1345511 (Move
nICEr stun local address discovery to an IPC call to enable future
sandbox restrictions on content process) I originally thought this was
more of an error condition, but it really isn't.  It can happen each
time the following method(s) is called:
  PeerConnectionMedia::EnsureTransports() ->
    GatherIfReady() ->
      EnsureIceGathering_s()

MozReview-Commit-ID: Ct3teqXBxWd

--HG--
extra : rebase_source : a116a8423fd999c4746e9375b8f42a6d908a1ea7
2017-06-07 13:38:46 -05:00
Dan Minor
f17b41d15d Bug 1354353 - nICEr and nrappkit should not build with NVALGRIND under MOZ_VALGRIND builds; r=drno
This applies the fix used in Bug 1354207 for webrtc to nICEr and nrappkit.

--HG--
extra : rebase_source : d3f1370c9100ca66272611348c1b3462e65cdfaf
2017-05-30 12:37:29 -04:00
Dan Minor
429e0c1350 Bug 964133 - move nICEr and nrappkit to libxul; r=ted.mielczarek
Building these as part of the webkit lib adds unnecessary dependencies on Mozilla code for things that only case about the webrtc static lib.

MozReview-Commit-ID: 7ThU7hAwRX0

--HG--
extra : rebase_source : eef256711e205d023a647e6196dcc61e657f6e28
2017-01-13 09:28:43 -05:00
Michael Froman
032f9ca0bc Bug 1345511 - pt 1 - nICEr changes to support stun addr gathering from main process. r=bwc
Expose a tweaked version of nr_ice_get_local_addresses to allow callers to
provide pre-fetched stun addrs if they are available.  By default, the normal
call to nr_ice_gather calls this with no pre-fetched stun addrs (read
non-e10s).  In e10s, the stun addrs are discovered on the main process and
provided to nr_ice_get_local_addreses.  When nr_ice_gather is called from
the content process the local addresses have already been gathered.

In the past, nr_ice_get_local_addresses also applied policy (by removing
duplicate addrs, and, based on stun prefs, removing loopback and/or
link_local addrs.  This functionality has been moved to
nr_ice_set_local_addresses where other policy is being applied (like
default route only, forcing specific interfaces, and prioritization).

Because we're now serializing nr_local_addr (wrapped by NrIceStunAddr), we
can't assume that certain pointer references in the source nr_local_addr
are correct when calling nr_local_addr_copy.  New non-pointer-arithmetic
version of setting up the pointer on the copied nr_local_addr is used.  Also
easier to understand when walking up to it the first time.

MozReview-Commit-ID: KVRFl4dfr7J

--HG--
extra : rebase_source : c0437700ad77ee3b7f98947d3505551ca9ed43e9
2017-03-16 12:06:09 -05:00
Nils Ohlmeier [:drno]
62d88014e0 Bug 1335966: skip refreshing ICE cosent for streams with no consent context. r=bwc
MozReview-Commit-ID: 91aZIMdGBAQ

--HG--
extra : rebase_source : 4cf76f2344fe74ed026e1029753a45a3203f072a
2017-02-01 16:54:59 -08:00
Byron Campen [:bwc]
42465ae6db Bug 1342523 - Part 1: Clean up how controlling/offerer is specified. r=drno
MozReview-Commit-ID: D8qPAPUZC1J

--HG--
extra : rebase_source : dec5598ee2edd9168bd5c93be222cc409a7db096
2017-02-24 14:05:27 -06:00
Byron Campen [:bwc]
05f117a2ad Bug 1338696: Don't deref null when nr_stun_message_create2 fails. r=drno
MozReview-Commit-ID: 6yo1NtElboR

--HG--
extra : rebase_source : ea9ea0868e6d806db07ec0f3509f3588bd433395
2017-02-13 16:22:54 -06:00
Tom Tromey
b6eaee7842 Bug 1060419 - add -Werror=format to the warnings.configure, r=froydnj
MozReview-Commit-ID: 9pvECUzAjF1

--HG--
extra : rebase_source : 4a1e1d8b243128e62359c32b3d7c5ad01d3cefac
2016-12-15 09:57:59 -07:00
Nils Ohlmeier [:drno]
8d98a3e4de Bug 1338384: added STUN bandwidth attribute. r=bwc
MozReview-Commit-ID: DiW32Zdmen8

--HG--
extra : rebase_source : 6509d924bc44fdd7dc65fe80ff714f5231550150
2017-02-10 12:33:26 -08:00
Byron Campen [:bwc]
f55547b66e Bug 1336507 - Part 2: Move some TLS related stuff from |connect| to |create|, so it is better reflected in candidate labels/codeword. r=drno
MozReview-Commit-ID: GnaJa1EPw0j

--HG--
extra : rebase_source : 58b1b4e09e2ae61a9596ae94cf0a27dab3bfca31
2017-02-03 16:47:05 -06:00
Michael Froman
a7b3b8a6bb Bug 1325536 - ice telemetry. r=bsmedberg,chutten,drno
MozReview-Commit-ID: 8pZBXA8Pjea

--HG--
extra : rebase_source : 7ffca52f5eaccc0fad4b8cbc2104bbb57302190a
2017-01-11 19:57:03 -06:00
Nils Ohlmeier [:drno]
a38f5b69d4 Bug 1334682: start trickle timeout only after we have received at least on candidate. r=bwc
MozReview-Commit-ID: DZ1oytW6Jof

--HG--
extra : rebase_source : f4e4b5f795471188581f3949f0a0abc9ad22a4e7
2017-01-27 14:34:42 -08:00
Phil Ringnalda
ef758dcbf4 Backed out changeset 95d09880ddf6 (bug 1325536) for nsVariant::Release crashes 2017-01-20 22:05:26 -08:00
Michael Froman
007f4afe98 Bug 1325536 - ice telemetry. r=bsmedberg,chutten,drno
MozReview-Commit-ID: 8pZBXA8Pjea

--HG--
extra : rebase_source : 37efe5b463098ff1489d317b1f78206cac4963b3
2017-01-11 19:57:03 -06:00
Byron Campen [:bwc]
b35cd43e20 Bug 1056934 - Part 3: Make it possible to configure TURN TLS servers in nICEr. r=drno
MozReview-Commit-ID: 2FotueuPHKn

--HG--
extra : rebase_source : f79dc559b03b540343d15abd07651a09f124bb36
2017-01-03 12:29:59 -06:00
Byron Campen [:bwc]
f917fb4175 Bug 1056934 - Part 2: Test-case for TURN TLS. r=drno
MozReview-Commit-ID: AWJGwWE55Ct

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_basicAudioNATRelayTCP.html => dom/media/tests/mochitest/test_peerConnection_basicAudioNATRelayTLS.html
extra : rebase_source : d2687df6c52f13cabf3138c89c187175c59602a5
2017-01-03 12:28:13 -06:00
Nils Ohlmeier [:drno]
3694cbb29c Bug 1324995: null pointer after freeing. r=bwc
MozReview-Commit-ID: GJ6PQHU5nU

--HG--
extra : rebase_source : c1a121f85ea89ce9e1f86072715cbc4b7c30a0e6
2017-01-04 16:47:44 -08:00
Nils Ohlmeier [:drno]
2ca25c39f6 Bug 1318180: turn network offline events into ice disconnected event. r=bwc,jib
MozReview-Commit-ID: Kqbicl2goL2

--HG--
extra : rebase_source : 4ed7d1364af8bd1575e2ced1bd8512405e0dd669
2016-11-17 23:16:33 -08:00
Nils Ohlmeier [:drno]
bf8b1f5ab9 Bug 1324995: only free AdapterAddresses if needed. r=bwc,jesup
MozReview-Commit-ID: 8C4yPsGGPoV

--HG--
extra : rebase_source : 96364e7469b92f3ce1a2e8b56b886b4581287d89
2016-12-20 23:20:01 -08:00
Makoto Kato
3ee6f7badc Bug 1322546 - Cannot compile nrappkit with WINVER=0x0600 or later. r=drno
MozReview-Commit-ID: HBVVHafiRKQ
2016-12-15 16:37:51 +09:00
Nils Ohlmeier [:drno]
8e17410821 Bug 1320150: only fire consent when previously connected. r=mjf
MozReview-Commit-ID: 4cj5gta8uet

--HG--
extra : rebase_source : 984b7ba3d75f9a25d8644db84d22fa97aac950d5
2016-11-24 00:01:44 -08:00
Nils Ohlmeier [:drno]
d933579cce Bug 852665: add support for ICE disconnected state. r=bwc
MozReview-Commit-ID: 5ONTc2Wz72O

--HG--
extra : rebase_source : 4f99ebbd4fa0e566965f94dc7b5d999bbbfd7b85
2016-10-28 22:22:17 -07:00
Nils Ohlmeier [:drno]
9ddb815b69 Bug 1304920: remove fingerprint attribute from plain binding requests. r=bwc
MozReview-Commit-ID: KpqQfHzv7zn

--HG--
extra : rebase_source : 976af858b54a6ddda23b19310352359659260b71
2016-09-22 17:56:29 -07:00
Nils Ohlmeier [:drno]
32fa85e614 Bug 1309641: only store a single pre-answer request per 5 tuple. r=bwc
MozReview-Commit-ID: KzrGGRRU28J

--HG--
extra : rebase_source : 97136e8ef20a61130154af695ec09598e91078c5
2016-10-26 21:43:27 -07:00