- 25 Apr, 2014 17 commits
-
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
Change the SocketSource handling to make it possible to remove a source, not only to add one.
-
-
Olivier Crête authored
It can now take it from the agent.
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
Skips one iterator over g_slist_foreach() + g_slist_free(). It is also easier to read.
-
Olivier Crête authored
It is never used outside of this file.
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
- 24 Apr, 2014 5 commits
-
-
Olivier Crête authored
-
Olivier Crête authored
-
-
-
If doing a recv on UDP-TURN, the 'from' address was kept set to the turn server which causes connchecks to fail with "mismatched address" error. This fixes it
-
- 23 Apr, 2014 1 commit
-
-
Guillaume Desmottes authored
Nice to make debug logs more friendly to read.
-
- 17 Apr, 2014 3 commits
-
-
If an incoming ACK acknowledges part of a pending SSegment, correctly increment the base offset of that SSegment before attempting to transmit it. Otherwise, the wrong data will be transmitted and the offset passed to packet() will be incorrect.
-
If a packet has an invalid tsecr field, invalid (e.g. negative) RTTs may be calculated from it. If so, discard the packet as invalid.
-
As documented at the top of the file, this creates two PseudoTcpSockets in a loopback configuration, and mutates the raw packets which are sent between them, hoping to cause assertion failures and illegal memory accesses in the pseudotcp code. Best run under Valgrind or GDB.
-
- 16 Apr, 2014 2 commits
-
-
Philip Withnall authored
If the error handling block in the middle of the recv() loop is hit, various things were previously leaked (context, cancellable_source) and the return values were potentially incorrect. Fix the break out of the error handling block to clean up correctly.
-
Olivier Crête authored
-
- 15 Apr, 2014 3 commits
-
-
Philip Withnall authored
-
Philip Withnall authored
At this point in the code, neither the username nor password are nul-terminated, so printing them in the debug output as nul-terminated strings can easily result in rubbish being printed after them. Fix this by specifying the string length in the printf() format string. Finally my terminal will no longer ask me to install N’Ko fonts when running the libnice tests.
-
Philip Withnall authored
If @cancellable is NULL in a call to nice_output_stream_write(), the WriteData struct is created with a reference count of 4, but only two operations are scheduled which will result in its reference count being decremented. The third operation is only scheduled if @cancellable is non-NULL (and the final reference is dropped unconditionally at the end of the function). Fix this by properly implementing reference counting for WriteData, rather than hard-coding the expected number of references in a fragile and unmaintainable way.
-
- 09 Apr, 2014 4 commits
-
-
Olivier Crête authored
-
Olivier Crête authored
-
-
Olivier Crête authored
The GOutputStream based systems can sometimes call this, decide the stream is not writable and then poll for it. We have to make sure that poll is woken up.
-
- 04 Apr, 2014 3 commits
-
-
- 03 Apr, 2014 2 commits
-
-
Philip Withnall authored
MinGW defines size_t and ssize_t for us, so we should not unconditionally redefine them in stun/win32_common.h. Add an AC_CHECK_TYPES configure check to avoid this.
-
Philip Withnall authored
Older versions of MinGW don’t define IN6_ARE_ADDR_EQUAL, as normally defined in netinet/in.h. Conditionally define it in address.c to fix the build on MinGW. MinGW has added support for the macro here: https://github.com/mirror/mingw-w64/commit/0f4899473c4ba2e34fa447b1931a04e38c1f105e Based on a patch originally by Luciana Fujii Pontello <luciana@fujii.eti.br>.
-