1. 27 Dec, 2022 1 commit
  2. 17 Oct, 2022 1 commit
  3. 11 Oct, 2022 6 commits
  4. 06 Oct, 2022 3 commits
  5. 30 Sep, 2022 2 commits
    • Damien Dejean's avatar
      style: get rid of deprecated function prototypes. · 3d4e521d
      Damien Dejean authored
      The CL gets rid of old style function prototypes like:
          int main(argc, argv)
          int argc;
          char *argv[];
      because it is not supported by any C standard anymore and will not
      compile in the future.
    • Damien Dejean's avatar
      style: provide clang-format and gitignore configs. · 6e5e74b2
      Damien Dejean authored
      This CL leverages the style of the source code by providing a clang-format
      configuration for the project. All the files have been formatted with the new
      style. A gitignore file was added to avoid checking in build products.
      To format your files: clang-format --style=file -i <filename>
  6. 29 Sep, 2022 1 commit
  7. 21 Sep, 2022 1 commit
    • Damien Dejean's avatar
      udptarget: fix signal handler and histogram display. · 001033be
      Damien Dejean authored
      On BSD/MacOS the list of syscall considered as reentrant or not interruptible
      by signals and signal-safe is limited. Calling any other function from a signal
      handler may lead to undefined behavior. Before this CL, the signal handler was
      in charge of printing the histogram and a summary of the session.
      The receive loop and the handler are now using a pipe to transmit the 'exit'
      message. On one hand loop uses select to listen on the pipe read end and the
      UDP socket, when the pipe unblocks the select, the loop knows it has to leave.
      On the other end the handler just closes the write end of the pipe (as close()
      is allowed in signal handlers).
      Bonus: there's no need to keep the histogram state as global variables.
  8. 19 Sep, 2022 3 commits
  9. 16 Sep, 2022 1 commit
  10. 22 Mar, 2022 1 commit
  11. 15 Dec, 2021 2 commits
  12. 09 Dec, 2021 2 commits
    • Franck Rousseau's avatar
      CI: enable docker based CI · 4724db2e
      Franck Rousseau authored
      Dockerfile to build the required image. Note that there is a specific
      runner launched with the --sysctl net.ipv6.conf.all.disable_ipv6=0
      docker option to enable IPv6 that is disabled by default.
      Also remove the trap SIGSEGV in one test, it seems useless and crashes
      inside docker with: trap: SIGSEGV: bad trap
    • Franck Rousseau's avatar
      listen: change backlog from 0 to 1 · ba9b91b4
      Franck Rousseau authored
      When the backlog is zero on a Linux kernel without syn_cookies present
      or enabled (check /proc/sys/net/ipv4/tcp_syncookies), connections will
      fail with a log like
      TCP     : request_sock_TCP: Possible SYN flooding on port 13000. Dropping request.  Check SNMP counters.
  13. 15 Nov, 2021 3 commits
  14. 29 Sep, 2021 1 commit
    • Franck Rousseau's avatar
      CFLAGS: add -fcommon to build on latest FreeBSD · 27a5853a
      Franck Rousseau authored
      The default compiler on FreeBSD is set by default with -fno-common,
      triggering loads of multiple definition errors at link time.
      This is a temporary fix, we should instead force no-common and fix code
  15. 14 Jun, 2021 1 commit
  16. 21 Dec, 2017 1 commit
    • Pierre Brunisholz's avatar
      Android compliancy modifications · 3a68b8df
      Pierre Brunisholz authored
      Android cross-compilation environment
      Android ndk: android-ndk-r16b
      Compiler: arm-linux-androideabi-clang
      IPMT modifications
      tcptarget.c, udptarget.c: Change old index(...) call to strchr(...)
      tcpmt.c: Change getdtablesize() call to sysconf(_SC_OPEN_MAX)
  17. 02 Nov, 2017 2 commits
  18. 27 Jul, 2016 1 commit
  19. 08 Jul, 2016 1 commit
    • Franck Rousseau's avatar
      Stats: flush stdout when printing · d2b0c99a
      Franck Rousseau authored
      Stdout was not flushed which caused a problem when not using a
      TTY, output was buffered and displayed all at once at the end of
      a session.
      Testing: check that the stats are printed every second when
      running udpmt -Vr 10 localhost | less
  20. 01 Apr, 2016 1 commit
  21. 08 Jan, 2016 1 commit
  22. 15 Apr, 2015 1 commit
  23. 10 Apr, 2015 3 commits