1. 29 Nov, 2021 6 commits
    • Harald Welte's avatar
      wct4xxp: Fix build without VPM_SUPPORT · 85fca6a1
      Harald Welte authored
      85fca6a1
    • Harald Welte's avatar
      dahdi_config: Enable DAHDI_DYNAMIC + DAHDI_DYNAMIC_LOC · 4897f1c2
      Harald Welte authored
      Especially for automatic testing it is quite useful to have virtual
      DAHDI spans with a loopback between them.
      4897f1c2
    • Harald Welte's avatar
      dahdi_config.h: Enable CONFIG_DAHDI_NET · a8450faa
      Harald Welte authored
      a8450faa
    • Harald Welte's avatar
      Fix build with DAHDI_NET on kernel >= 5.15 · b2371828
      Harald Welte authored
      
      Ever since commit ad7eab2ab014748b062507b7ac69f8e856057717
      "net: split out ndo_siowandev ioctl" has been merged in 5.15-rc1,
      DAHDI failed to compile with DAHDI_NET enabled due to slight differences
      in handling the HDLC/WAN device related ioctl.
      Signed-off-by: default avatarHarald Welte <laforge@gnumonks.org>
      b2371828
    • Alexei A. Smekalkine's avatar
      dahdi-base, netdev: send frame via protocol handlers, fix HDLC encapsulation · 9c152d28
      Alexei A. Smekalkine authored
      The HDLC encapsulation module can add its own headers and trailers to
      the packet. For correct operation in this case, it is necessary to send
      a packet from DAHDI to the appropriate HDLC handler. The HDLC handler,
      in turn, should call the device driver procedure to transfer the packet.
      
      Thus, for correct processing of outgoing packets, we should use function
      hdlc_start_xmit from Linux HDLC stack as a ndo_start_xmit procedure.
      
      (Note that if the protocol handler does not provide a xmit procedure,
      then function hdlc_start_xmit will call the hardware driver directly.)
      
      In the case of DAHDI, the packet transfer procedure (device driver xmit
      procedure) is set in function dahdi_ioctl_chanconfig to dahdi_xmit:
      
          dev_to_hdlc(chan->hdlcnetdev->netdev)->xmit = dahdi_xmit;
      
      Asterisk-Issue: DAHLIN-381
      9c152d28
    • Alexander Couzens's avatar
      remove old ioctl code · 97d6b0fd
      Alexander Couzens authored
      With 5.9 the macros HAVE_UNLOCKED_IOCTL and HAVE_COMPAT_IOCTL are gone.
      I didn't figured out when they were added because it predates git (2.6.12).
      
      I don't know if there are any user or if the current dahdi driver even builds with such an old
      linux kernel version.
      97d6b0fd
  2. 11 Sep, 2020 3 commits
  3. 08 May, 2019 15 commits
  4. 27 Nov, 2018 1 commit
  5. 05 Oct, 2018 1 commit
  6. 04 Oct, 2018 3 commits
  7. 03 Oct, 2018 9 commits
  8. 01 Oct, 2018 1 commit
  9. 03 Sep, 2018 1 commit
    • Shaun Ruffell's avatar
      DAHDI in kernel 4.15: Switch to new timer_setup interface. · 6667f1c8
      Shaun Ruffell authored
      Upstream kernel 4.14, in commit (686fef928bba6b "timer: Prepare to change timer
      callback argument type") [1], introduced the timer_setup interface to replace
      the init_timer/setup_timer interfaces. The primary change is that the timer
      callback functions now follow the standard kernel pattern where the structure
      the callback sits in is passed to the callback instead of storing a pointer to
      an unassociated data type.
      
      The setup_timer functions were removed in upstream kernel v4.15, and therefore
      this change is needed in order to compile DAHDI for kernels >= 4.15.
      
      This change follows the same strategy that was done in the kernel to while the
      existing users of setup_timer were migrated to the new interface.
      
      [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=686fef928bba6b
      6667f1c8