1. 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.
      001033be
  2. 19 Sep, 2022 3 commits
  3. 16 Sep, 2022 1 commit
  4. 22 Mar, 2022 1 commit
  5. 15 Dec, 2021 2 commits
  6. 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
      4724db2e
    • 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.
      ba9b91b4
  7. 15 Nov, 2021 3 commits
  8. 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
      accordingly.
      27a5853a
  9. 14 Jun, 2021 1 commit
  10. 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)
      3a68b8df
  11. 02 Nov, 2017 2 commits
  12. 27 Jul, 2016 1 commit
  13. 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
      d2b0c99a
  14. 01 Apr, 2016 1 commit
  15. 08 Jan, 2016 1 commit
  16. 15 Apr, 2015 1 commit
  17. 10 Apr, 2015 3 commits
  18. 08 Apr, 2015 2 commits
  19. 03 Apr, 2015 1 commit
  20. 02 Apr, 2015 4 commits
  21. 30 Mar, 2015 7 commits