14 Commits

Author SHA1 Message Date
Andrea Bondavalli
21690a8589 Replace ip::address_v4::to_ulong() with ip::address_v4::to_uint() to support boost 1.87, see #197 2025-02-27 20:54:39 +01:00
Andrea Bondavalli
efcf95522b Replace ip::address::to_string() with ip::make_address() to support Boost 1.87, see #197 2025-02-27 20:06:17 +01:00
Andrea Bondavalli
201cf28196 Fix for issue #197 2025-02-27 17:57:54 +01:00
Matthew Robbetts
0236b3a1da Match size of std::copy input to its output variable 2023-09-22 17:51:23 -07:00
Andrea Bondavalli
7bf73823c6 Fixed a few minor bugs and removed some code smells 2023-02-25 22:33:55 +01:00
Andrea Bondavalli
dbb593120a Enhancement of daemon reconfiguration and PTP status update notification via shell script. See #82
The daemon can apply a configuration change to the following parameters without a restart:
    sap_interval, syslog_proto, syslog_server, log_severity, sample_rate

The daemon can apply a configuration change to the following parameters without a light restart:
    http_port, rtsp_port, http_base_dir, rtp_mcast_base, sap_mcast_addr, rtp_port, rtp_port, status_file, interface_name, mdns_enabled

A light restart means that the configuration can be applied without interrupting the playback/capture applications

A change to one of following paramters causes a full daemon restart:
    interface_name, tic_frame_size_at_1fs, max_tic_frame_size

On PTP status change the daemon can run in background an external shell script whose path name is specified by the new ptp_status_script Config parameter.
If this parameter is empty, no script is invoked. The PTP clock status is passed as first parameter to the script and it can be unlocked, locking or locked.
A sample script is provided in daemon/scripts/ptp_status.sh
2022-05-19 19:04:26 +02:00
calanor
619cc13570
Fixes bad retrun value in get_interface_index 2021-12-28 17:59:20 +01:00
Andrea Bondavalli
1af74dcbf0 Added support for unicast RTP stream address to daemon and WebUI, see #30
- added address field to Source struct definition to contain the destination address. If this field is left empty the default multicast address is used.
- if a unicast address is provided when creating a new Source the daemon looks in the ARP cache to retrieve the corresponding MAC address.
  If this is not found the daemon tries to connect to echo TCP service of the destination host and looks into the ARP cache up to 3 times and then returns and error.
- added RTP address field in the Source creating form of the WebUI. If this field is left empty the default multicast address is used instead.
- updated documentation and regression test suite
2021-03-04 18:31:34 +01:00
Andrea Bondavalli
9062a82033 - modified daemon code to support startup in case the specified network interface doesn't have an IP address. In this case the daemon waits for an IP address.
- removed not functional daemon option (-i)
- fixed exception handling in SAP::send() method
2020-06-18 19:49:24 +02:00
Andrea Bondavalli
098cebd056 Applied Clang source code formatting to daemon sources 2020-06-16 21:14:44 +02:00
Andrea Bondavalli
0b27a6ee9e Minor changes 2020-06-04 10:26:42 -07:00
Andrea Bondavalli
0f8b9e714e Revised Avahi client integration in mDNS client:
- aligned state handling with avahi-browse tool: browser is started in client callback
- browsing is limited to IPv4 services discovered on the specific daemon network interface only
Additional minor changes.
2020-04-03 09:55:01 -07:00
Andrea Bondavalli
dff3ab3cba Multiple fixes:
- fixed destination MAC address set when adding a source and a sink according to IANA specs
- fixed retrieval of network interface MAC address
- added <list> inclusion to header files using std::list
- fixed regression test suite
- additional minor changes
2020-03-20 18:58:08 +01:00
Andrea Bondavalli
259e99afbc First import 2020-01-28 20:16:30 +01:00