]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add option for per-tuner IP-address binding
authorWereCatf <werecatf@gmail.com>
Tue, 5 May 2015 17:59:42 +0000 (20:59 +0300)
committerJaroslav Kysela <perex@perex.cz>
Tue, 5 May 2015 21:16:35 +0000 (23:16 +0200)
docs/html/config_tvadapters.html
src/input/mpegts/satip/satip_frontend.c
src/input/mpegts/satip/satip_private.h

index 15d8a9bab613ed72d203221dd58893189d7f832c..61921eef7b93de5393bbcd2c091992652c57905c 100644 (file)
@@ -202,6 +202,11 @@ setting this to 100.</dd>
   <dd>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.</dd>
+<p>
+  <dt><b>Tuner bind IP address</b><dt>
+  <dd>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.</dd>
 
 </dl>
 </p>
index a986d68816e18d96b590c5ea3f71830d2c7d6b21..4c7bd18bc5c35fead3ee45c28f73cb0433a3c899 100644 (file)
@@ -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),
+    },
     {}
   }
 };
index 104adec8ced4c5a04465110e0d1702072b563b2e..34093324332657c11035def165d22eb0d00619e9 100644 (file)
@@ -121,6 +121,7 @@ struct satip_frontend
   int                        sf_play2;
   int                        sf_tdelay;
   int                        sf_teardown_delay;
+  char                      *sf_tuner_bindaddr;
 
   /*
    * Reception