summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-03-04version 0.1.22.1HEADmasterOlivier Crête1-1/+1
2024-03-04version 0.1.220.1.22latest-releaseOlivier Crête2-2/+11
2024-02-19tests: Reduce the printing a little to please libxmlOlivier Crête1-1/+1
The previous one produced XML so large that libxml choked on it.
2024-02-19Change padding to be rfc8489 conformAdnan Elezovic1-1/+1
2024-01-30meson: Generate nice-version.h in the right builddirNirbheek Chauhan5-12/+47
We want it in the `nice/` subdir so that it gets picked up correctly during uninstalled builds, such as in the gstreamer monorepo. The `NICE_CHECK_VERSION` macro was non-functional in the monorepo because of this.
2024-01-30interfaces: Avoid using strncpy to keep NULL terminationOlivier Crête1-3/+3
2024-01-10interfaces: Avoid overwriting the ifreq structOlivier Crête1-21/+30
2024-01-10interfaces: Don't iterate allocationOlivier Crête1-60/+24
The ioctl gives us the size directly, no need to iterate
2023-12-21Include TURN sockets in nice_agent_get_sockets()Emil Ljungdahl1-3/+3
nice_agent_get_sockets() is documented as "to retrieve them all". However, sockets related to TURN connections was not included as part of the list, but they are most probably just as important to modify from outside.
2023-11-21nicesink: Protect field access with object lockOlivier Crête1-18/+21
Error found by coverity.
2023-08-30ci: Update Windows image to latestOlivier Crête1-1/+1
2023-08-07nice: Export nice_address_is_linklocalOlivier Crête1-0/+1
Fixes: #178
2023-07-17gitlab-ci: Move Coverity build to Fedora 38Olivier Crête2-3/+24
2023-05-22agent/meson: Replace filename with basenameKhem Raj1-2/+2
This avoids emitting absolute paths into generated sourcecode, it improves reproducibility. See [1] [1] https://developer-old.gnome.org/gobject/stable/glib-mkenums.html
2023-05-16agent: set consent timeout to value specified in RFC 7675Mathieu Duponchelle1-1/+1
Using a value of 10 seconds instead of 30 as specified, along with the request interval of 4 to 6 seconds, meant the connection state could go to failed when a single response was missing or delayed.
2023-03-29meson: do not build gst test in static modeStéphane Cerveau2-1/+6
In the case of gstreamer test, the symbol gst_init_static_plugins needed by gstreamer will be available at the end of the build with gstreamer-full library.
2023-03-19ci: Remove keyring update for msys2Olivier Crête1-2/+0
2023-03-19ci: Update Windows image to 2022Olivier Crête1-2/+2
2023-01-09Use ifr_ifindex on LinuxKlemens Nanni2-2/+17
2023-01-09Use ifr_index to fix build on OpenBSDKlemens Nanni2-5/+5
`struct ifreq` from `<net/if.h>` has no `ifr_ifindex` on OpenBSD. The canonical member access macro in all BSDs is ``` #define ifr_index ifr_ifru.ifru_index /* interface index */ ``` The existing `g_critical()` message already uses the correct name, so rectify the rest. FreeBSD has `ifr_ifindex` in what appears to be linux-compat code. Found by updating libnice from 0.1.19 to 0.1.20 on OpenBSD/amd64 -current.
2023-01-09Fix build with clangChristoph Reiter1-1/+1
Building libnice with clang 15 fails with: interfaces.c:913:12: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'guint' (aka 'unsigned int') [-Wint-conversion] return NULL; Fix by returning 0 instead.
2023-01-07version 0.1.21.1Olivier Crête1-1/+1
2023-01-07version 0.1.210.1.21Olivier Crête2-3/+7
2023-01-06interfaces: Only use `ifr_ifindex` if OS supports itOle André Vadla Ravnås2-0/+10
This fixes compilation on e.g. macOS and FreeBSD, where it is missing.
2023-01-06version 0.1.20.1Olivier Crête1-1/+1
2023-01-06version 0.1.200.1.20Olivier Crête2-2/+16
2023-01-06version: When set nano 0 to be a stringOlivier Crête1-1/+1
Setting it as a int makes meson abort.
2023-01-06gst: Use gst-full compatible registration functionsOlivier Crête5-4/+20
2023-01-06gst: Remove GStreamer 0.10 supportPhilippe Normand4-78/+1
The meson build already required 1.x so this has been dead code for a while now.
2023-01-06test-consent: Don't try to set the consent prop after creationOlivier Crête1-4/+2
It was already set at creation time, so all we got was a warning.
2023-01-06address: Add introspection-friendly to_string_dupJames Westman4-1/+26
nice_address_to_string expects an already-allocated string, which is not great for introspection. Adds nice_address_to_string_dup, which does the same thing, but returns a newly allocated string.
2023-01-04test-turn: Make it work against coturnOlivier Crête1-6/+5
2023-01-04agent: Allow getting UDP candidates from a TURN server over TCPOlivier Crête1-7/+2
Even if the TCP candidates are disabled.
2023-01-04agent: Resolve TURN server IP addressesOlivier Crête5-28/+277
This should enable having servers that do both IPv4 and IPv6. And ideally should make life easier for app developers.
2023-01-04agent: Resolve STUN server IP addressOlivier Crête3-21/+168
This should enable having servers that do both IPv4 and IPv6. And ideally should make life easier for app developers.
2022-11-19candidate: fix assertions caused by API guards in new address APIMathieu Duponchelle1-2/+2
The checks were reversed, requiring for instance a non-relay candidate for calling nice_candidate_relay_address()
2022-11-06gitlab-ci: Fix typoOlivier Crête1-1/+1
2022-10-17ci: Expose full code coverage report to GitLabOlivier Crête3-3/+6
2022-10-17ci: Add code coverage to MRsOlivier Crête1-1/+3
2022-10-17Add configuration file for lcovPatrick Griffis1-0/+14
This is useful for accurately testing code coverage. You can use this with: meson configure -Db_coverage=true meson test ninja coverage
2022-10-17ci: Export JUnit reportOlivier Crête1-0/+8
2022-10-17ci: Use fdo templatesOlivier Crête3-16/+50
2022-10-17conncheck: Limit ichecks based on propertyOlivier Crête2-10/+18
Limit the number of stored incoming checks based on the property limiting the number of total connectivity checks instead of using the fixed limit on the number of remote candidates.
2022-07-29udp-bsd: Explicitly bind to the interface when creating a socketOlivier Crête1-0/+28
2022-07-25interfaces: Add API to find the interface index from a local addressOlivier Crête4-0/+168
This will find some interface that has the address and will not work correctly if multiple interfaces have the same address. But in any case, nothing in libnice expects that and we would need to break the API to make that work.
2022-06-01candidate: Copy stun_server with candidateOlivier Crête1-0/+2
Bug reported and fix suggested by Masato Takahashi Fixes #164
2022-05-26version: Add NICE_CHECK_VERSION to the documentationOlivier Crête3-1/+14
2022-05-26address: Add Boxed TypeOlivier Crête4-0/+11
This should make the library more easily usable for bindings
2022-05-26agent: Support adding optional headers to HTTP proxy clientJohan Sternerup4-17/+76
One use case for this is adding an ALPN header which is a MUST requirement when a HTTP proxy is used in WebRTC (see RFC8835, section 3.4).
2022-05-26Conncheck: renomination: set use_candidate for pending check on early ↵Andrey Skryabin1-15/+62
inbound STUN with NOMINATION attr