From: WereCatf Date: Tue, 5 May 2015 17:59:42 +0000 (+0300) Subject: Add option for per-tuner IP-address binding X-Git-Tag: v4.1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b73ad421e9f5784e52ce7640cac8980723cd5de;p=thirdparty%2Ftvheadend.git Add option for per-tuner IP-address binding --- diff --git a/docs/html/config_tvadapters.html b/docs/html/config_tvadapters.html index 15d8a9bab..61921eef7 100644 --- a/docs/html/config_tvadapters.html +++ b/docs/html/config_tvadapters.html @@ -202,6 +202,11 @@ setting this to 100.
Force the delay between RTSP TEARDOWN and RTSP SETUP command (value from 'Next tune delay in ms' is used). Some devices are not able to handle quick continuous tuning.
+

+

Tuner bind IP address
+
Force all network connections to this tuner be made over the specificed + IP-address, similar to the setting for the SAT-IP - device itself. Setting + this overrides the device - specific setting.

diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index a986d6881..4c7bd18bc 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -46,7 +46,7 @@ satip_frontend_find_by_number( satip_device_t *sd, int num ) static char * satip_frontend_bindaddr( satip_frontend_t *lfe ) { - char *bindaddr = lfe->sf_device->sd_bindaddr; + char *bindaddr = lfe->sf_tuner_bindaddr; if (bindaddr == NULL || bindaddr[0] == '\0') bindaddr = lfe->sf_device->sd_bindaddr; return bindaddr; @@ -174,6 +174,13 @@ const idclass_t satip_frontend_class = .opts = PO_ADVANCED, .off = offsetof(satip_frontend_t, sf_teardown_delay), }, + { + .type = PT_STR, + .id = "tunerbindaddr", + .name = "Tuner bind IP address", + .opts = PO_ADVANCED, + .off = offsetof(satip_frontend_t, sf_tuner_bindaddr), + }, {} } }; diff --git a/src/input/mpegts/satip/satip_private.h b/src/input/mpegts/satip/satip_private.h index 104adec8c..340933243 100644 --- a/src/input/mpegts/satip/satip_private.h +++ b/src/input/mpegts/satip/satip_private.h @@ -121,6 +121,7 @@ struct satip_frontend int sf_play2; int sf_tdelay; int sf_teardown_delay; + char *sf_tuner_bindaddr; /* * Reception