nic and Claude Opus 5.5
07179d7eae
fix: set the WS-Discovery probe's interface before sending ( #5257 )
...
WSDiscovery::TransportUDP::send_multi opened its socket with PeerAddr,
which connects it, and called mcast_if afterwards. A connected UDP
socket keeps the route chosen at connect time, so on a host with more
than one network the Probe left through the default route whatever
interface was chosen: the web UI's ONVIF probe (zmonvif-probe.pl probe
<version> <interface>) found no camera on a second network.
Open the socket unconnected, set mcast_if first, and send to the group
with mcast_send. The destination is passed as a packed sockaddr_in:
given as "addr:port", mcast_send in IO::Socket::Multicast 1.12 (Debian
trixie) ends up with port 0 and the send fails with EINVAL. Without an
interface nothing changes: the probe goes out the default route as
before.
tests/perl/test_wsdiscovery_mcast_if.pl records the socket calls and
checks the order and the destination.
fixes #5256
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-12 14:26:40 -04:00
Alejandro Criado-Pérez
8e17d9075b
Onvif corrections
2023-08-13 18:57:36 +02:00
Isaac Connor
16ccac2325
Code style, add some parenthesis to make logic more clear
2023-03-21 10:03:57 -04:00
Isaac Connor
0d71b18097
Merge branch 'release-1.34'
2020-11-20 16:39:40 -05:00
Isaac Connor
1b5448ede4
Handle there being no services in the response
2020-11-20 16:35:48 -05:00
Isaac Connor
8f3a8ee877
spacing
2020-05-12 15:47:44 -04:00
Isaac Connor
f8249251bd
Add a verbose var to ONVIF::CLient and allow it to be set during build.
2020-05-12 15:47:27 -04:00
Isaac Connor
8ed80f320d
Remove SOAP::List stuff
2020-05-09 17:35:03 -04:00
Isaac Connor
75082064fd
Merge branch 'master' of github.com:zoneminder/ZoneMinder into onvif_updated_to_upstream
2020-05-09 16:40:17 -04:00
Isaac Connor
732bb5416f
Merge branch 'master' into onvif_updated
2020-05-09 16:26:29 -04:00
Isaac Connor
2315bed56d
Add set_net_interface function and use the when setting up the multicast socket
2020-02-19 14:27:36 -05:00
Isaac Connor
466468b0fd
code style cleanups and uncomment get_service_urls call in create_services so that we actually parse the ONVIF response.
2020-02-09 13:50:22 -05:00
Isaac Connor
5f702c1905
WHen instantiating the client, can't get services because we havn't set credentials yet
2019-10-03 17:36:57 -04:00
Isaac Connor
c62eff48a7
Turn off debugging that prevents results processing
2019-10-03 17:28:44 -04:00
Isaac Connor
5ae34a7561
Merge branch 'master' into storageareas
2017-01-02 09:39:10 -05:00
Andy Bauer
0f15b3ae62
update gpl 2 mailing address
2016-12-26 10:33:03 -06:00
Isaac Connor
96b5af9021
Merge branch 'fix_onvif' into storageareas
2016-10-04 15:00:28 -04:00
Isaac Connor
df255d3d5d
check for existence of attribute before calling it to break gently
2016-10-04 14:07:11 -04:00
Isaac Connor
866b6fea8c
Fall back to getCapabilities if getServices is not supported.
2016-10-04 14:06:23 -04:00
Isaac Connor
92d32596cc
revert
2016-10-03 21:59:49 -04:00
Isaac Connor
68936b9af9
code style, replace with '
2016-10-03 21:58:57 -04:00
Jan M. Hochstein
2157f22669
Set ->message to prevent undef error
2016-06-18 15:46:05 +02:00
Jan M. Hochstein
1558353672
Force UTF-8 when sending WS-Discovery Probe
2016-04-10 09:37:21 +02:00
Jan M. Hochstein
a6500bc61e
Added XML header in serializer
2016-04-09 16:53:41 +02:00
Isaac Connor
7d346747d6
use Digest::SHA instead of Digest::SHA1. API appears to be the same
2016-03-02 10:18:58 -05:00
Jan M. Hochstein
61932a6470
Corrected file copyrights
2016-02-10 16:36:21 +01:00
Jan M. Hochstein
5c6fe54265
Persistance and UI for ONVIF monitor options
2014-11-14 17:17:09 +01:00
Jan M. Hochstein
a18399af69
Basic support for SOAP 1.1 and 1.2
2014-11-14 17:15:58 +01:00
Jan M. Hochstein
9834841381
Removed references to events
2014-11-14 17:11:23 +01:00
Jan M. Hochstein
12206948fb
Removed references to analytics
2014-11-14 17:11:23 +01:00
Jan M. Hochstein
ef59f0041c
Refactor onvif client code
2014-11-14 17:11:23 +01:00
Jan M. Hochstein
4b896add26
Refactor onvif client code
2014-11-14 17:11:23 +01:00
Andrew Bauer
d290af2c9f
Move ONVIF control script & add dB entry
2014-11-14 17:11:22 +01:00
Andrew Bauer
ecb2ff0c0c
ptz control package name must match filename
2014-11-14 17:10:31 +01:00
Jan M. Hochstein
fb31f7f15f
Added basic ONVIF support
2014-11-14 17:00:16 +01:00
Jan M. Hochstein
5f1fda43a0
Basic support for SOAP 1.1 and 1.2
2014-08-17 21:24:27 +02:00
Jan M. Hochstein
e83bdbbef3
Removed references to events
2014-08-08 18:56:18 +02:00
Jan M. Hochstein
69f1a44622
Removed references to analytics
2014-08-08 18:50:24 +02:00
Jan M. Hochstein
e4155bcfa3
Refactor onvif client code
2014-08-07 18:25:07 +02:00
Jan M. Hochstein
5ab629856c
Refactor onvif client code
2014-08-07 18:25:07 +02:00
Andrew Bauer
254dffa633
Move ONVIF control script & add dB entry
2014-08-03 15:52:59 -05:00
Andrew Bauer
448b69f4a1
ptz control package name must match filename
2014-08-03 13:26:20 -05:00
Jan M. Hochstein
0a2515c00e
Added basic ONVIF support
2014-07-14 20:36:18 +02:00