summaryrefslogtreecommitdiff
path: root/stun/tools/stund.c
Commit message (Collapse)AuthorAgeFilesLines
* stund: Add win32 supportOlivier Crête2019-08-021-11/+19
|
* stun: tools: drop getopt for arg parsing for better windows compatibilityTim-Philipp Müller2018-12-141-17/+25
| | | | | | | | Just implement argument parsing ourselves here. It's not really more lines of code than the getopt.h variant and makes things build on Windows with MSVC without having to ship a separate getopt implementation.
* stund: Pass sockaddr_storage size for both familiesOlivier Crête2018-05-041-7/+2
|
* stund: Pass the right length for ipv6Olivier Crête2018-05-041-1/+5
|
* stunmessage: Revert another function to use sockaddrOlivier Crête2014-05-021-1/+1
| | | | The farstream unit tests were using it.
* stun: Use struct sockaddr_storage * for any pointer that we write toOlivier Crête2014-03-311-2/+2
| | | | | | Some platforms have a larger alignment requirement for struct sockaddr_* than for plain struct sockaddr, in that case, we need to make sure that the incoming pointer has the right alignement before taking it in.
* stun: Add missing switch casesPhilip Withnall2014-01-311-0/+8
| | | | | | | | This appeases GCC’s -Wswitch-enum warning, and makes it more obvious that those enum cases have been explicitly considered, rather than just forgotten about. This introduces no functional changes.
* Fix strict aliasing of sockaddr structuresPhilip Withnall2013-12-181-9/+9
| | | | | | | | | | | | Casting from one struct sockaddr type to another breaks C’s strict aliasing rules (variables of different types cannot alias). Fix this cleanly by using unions of struct sockaddrs to convert between the types (i.e. type-punning). I wish sockaddr didn’t have to be this painful. See: http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Optimize-Options.html#Type_002dpunning
* Add missing ‘default’ cases to switchesPhilip Withnall2013-12-181-0/+8
| | | | | | | This shuts GCC’s -Wswitch-default warning, and makes the code flow a little more explicit. This introduces no functional changes.
* Use len instead of buf_len to check whether or not data was received properlyRohan Garg2012-03-231-1/+1
|
* stund: Use recvfrom/sendto instead of recvmsg/sendmsgYouness Alaoui2012-02-091-67/+15
|
* stund: Set message length (fixes infinite loop) when receiving unknown ↵John Selbie2012-02-091-1/+1
| | | | attributes
* Add support for windows's compilation through MinGWNader Morshed2011-11-301-1/+1
|
* Fix support for solarisApostolos Syropoulos2011-09-071-0/+4
|
* define SOL_IPV6 to IPPROTO_IPV6 if not definedYouness Alaoui2011-01-171-0/+4
|
* Fix various gtk-doc warnings/errors and typosYouness Alaoui2010-02-161-1/+1
|
* Fix copyright headers for all filesYouness Alaoui2010-02-161-1/+4
|
* use sizeof struct sockaddr_in instead of sizeof struct sockaddr to hopefully ↵Youness Alaoui2009-12-041-1/+1
| | | | fix the bug with sendmsg on BSD systems
* always check return value of stun_agent_init_errorYouness Alaoui2009-11-131-2/+3
|
* avoid warning by using fd argument when MSG_ERRQUEUE is undefinedYouness Alaoui2009-11-131-0/+1
|
* use sizeof struct sockaddr instead of sizeof sockadddr_storage for doing the ↵Youness Alaoui2009-09-101-2/+2
| | | | bind.. this fixes stund on BSD systems. Thanks to Tom Murphy for the fix
* if MSG_ERRQUEUE is not defined, then make recv_err return something since ↵Youness Alaoui2009-07-241-0/+2
| | | | it's not a void function
* Rename stun_has_cookie into stun_message_has_cookieYouness Alaoui2009-02-231-1/+1
|
* fix stund against strict aliasing issuesYouness Alaoui2008-11-121-7/+12
|
* Merge commit 'tester/nice-stund' into nice-kakarotoYouness Alaoui2008-11-031-6/+17
|\ | | | | | | | | | | Conflicts: stun/tools/stund.c
| * Make the stund try first the new draft before the old stun RFCOlivier Crête2008-10-291-6/+17
| |
* | Replace all references to 3489BIS into RFC 5389 as it has just been releasedYouness Alaoui2008-11-031-1/+1
| |
* | disable stund and stunbdc code because they need non portable function callsYouness Alaoui2008-10-281-0/+11
| |
* | Remove IP_PKTINFO sockopt which is not portable to macYouness Alaoui2008-10-281-3/+0
|/
* stunbdc and stund should use 3489bis to allow the unit tests to runYouness Alaoui2008-10-221-1/+1
|
* stund and stunbdc should be rfc3489 compatibleYouness Alaoui2008-10-161-2/+1
|
* Replace the SERVER attribute with the SOFTWARE attribute per draft 17Olivier Crête2008-08-141-1/+1
|
* stun daemon now needs the USE_FINGERPRINT flagYouness Alaoui2008-08-071-1/+2
|
* Missing limits.h for gcc 4.3, reported by muratasenel from amsn's forumsYouness Alaoui2008-08-041-0/+1
|
* Fixed tools and binding usage to work with new APIYouness Alaoui2008-06-131-20/+38
|
* Moving functions and organizing filesYouness Alaoui2008-05-271-0/+294